library(knitr) library(kableExtra) dt <- mtcars[, 1:2] colnames(dt)[1] <- paste0("mpg", footnote_marker_alphabet(2, "latex"))
dt %>% kable("latex", caption = paste0("test", footnote_marker_symbol(1, "latex")), booktabs = T, escape = F, longtable = T) %>% footnote(NULL, c("number 1; ", "number 2. "), c("a 1; ", "a 2."), c("s 1; ", "s 2."), number_title = "special: ", alphabet_title = "abc: ", footnote_as_chunk = T, title_format = c("italic", "bold"))
mtcars[1:5, 1:5] %>% kable("latex", booktabs = T, caption = "hi") %>% kable_styling(position = "left") %>% footnote(number = c("For this particular use (i.e. a general note) the comments above are adequate. For proper footnotes in tables you should probably use the threeparttable package. You should also probably be using the booktabs package. See this answer to this question", "Note 2"), number_title = "Note: ", threeparttable = T, footnote_as_chunk = T, title_format = c("italic", "bold"))
kable(cars, caption = 'table caption', format = 'latex', escape = TRUE) %>% kableExtra::footnote(general = 'an_underscore', escape = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.