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 | 9f91748 | 2018-01-08 18:09:33 -0500 | [diff] [blame^] | 13 | kable("html", caption = paste0("test", footnote_marker_alphabet(1))) %>% |
Hao Zhu | 8dd65a9 | 2018-01-05 20:40:27 -0500 | [diff] [blame] | 14 | kable_styling() %>% |
Hao Zhu | 9f91748 | 2018-01-08 18:09:33 -0500 | [diff] [blame^] | 15 | footnote(general = "ccc", |
| 16 | number = c("number 1; ", "number 2. "), |
| 17 | alphabet = c("a 1; ", "a 2."), |
| 18 | symbol = c("s 1; ", "s 2.")) |
| 19 | ``` |
| 20 | |
| 21 | ```{r} |
| 22 | mtcars[1:5, 1:5] %>% |
| 23 | kable("html", caption = paste0("test", footnote_marker_alphabet(1))) %>% |
| 24 | kable_styling() %>% |
| 25 | footnote(general = "ccc", |
| 26 | number = c("number 1; ", "number 2. "), |
| 27 | alphabet = c("a 1; ", "a 2."), |
| 28 | symbol = c("s 1; ", "s 2."), |
| 29 | general_title = "", |
| 30 | number_title = "special: ", |
| 31 | alphabet_title = "abc: ", |
| 32 | symbol_title = "triangle: ", |
| 33 | footnote_as_chunk = T) |
Hao Zhu | 8dd65a9 | 2018-01-05 20:40:27 -0500 | [diff] [blame] | 34 | ``` |