Hao Zhu | 8dd65a9 | 2018-01-05 20:40:27 -0500 | [diff] [blame] | 1 | --- |
| 2 | title: "add_footnote_adv" |
| 3 | author: "Hao" |
| 4 | date: "1/5/2018" |
| 5 | output: html_document |
| 6 | --- |
| 7 | |
| 8 | ```{r} |
| 9 | library(knitr) |
| 10 | library(kableExtra) |
| 11 | |
| 12 | mtcars[1:5, 1:5] %>% |
Hao Zhu | 1ac13ad | 2018-01-08 16:12:24 -0500 | [diff] [blame^] | 13 | kable("html", caption = paste0("test", footnote_marker_symbol(1))) %>% |
Hao Zhu | 8dd65a9 | 2018-01-05 20:40:27 -0500 | [diff] [blame] | 14 | kable_styling() %>% |
Hao Zhu | cdd7f92 | 2018-01-08 11:39:40 -0500 | [diff] [blame] | 15 | footnote("ccc", c("number 1; ", "number 2. "), c("a 1; ", "a 2."), c("s 1; ", "s 2."), |
Hao Zhu | 8dd65a9 | 2018-01-05 20:40:27 -0500 | [diff] [blame] | 16 | number_title = "special: ", alphabet_title = "abc: ", |
| 17 | footnote_as_chunk = T) |
| 18 | ``` |