Hao Zhu | cdd7f92 | 2018-01-08 11:39:40 -0500 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/footnote.R |
| 3 | \name{footnote} |
| 4 | \alias{footnote} |
| 5 | \title{Add footnote (new)} |
| 6 | \usage{ |
| 7 | footnote(kable_input, general = NULL, number = NULL, alphabet = NULL, |
| 8 | symbol = NULL, footnote_order = c("general", "number", "alphabet", |
Hao Zhu | e0782ab | 2018-01-09 13:24:13 -0500 | [diff] [blame^] | 9 | "symbol"), footnote_as_chunk = FALSE, escape = TRUE, |
| 10 | general_title = "Note: ", number_title = "", alphabet_title = "", |
| 11 | symbol_title = "") |
| 12 | } |
| 13 | \arguments{ |
| 14 | \item{kable_input}{HTML or LaTeX table generated by \code{knitr::kable}} |
| 15 | |
| 16 | \item{general}{Text for general footnote comments. Footnotes in this section |
| 17 | won't be labeled with any notations} |
| 18 | |
| 19 | \item{number}{A vector of footnote texts. Footnotes here will be numbered. |
| 20 | There is no upper cap for the number of footnotes here} |
| 21 | |
| 22 | \item{alphabet}{A vector of footnote texts, Footnotes here will be labeled |
| 23 | with abc. The vector here should not have more than 26 elements.} |
| 24 | |
| 25 | \item{symbol}{A vector of footnote texts, Footnotes here will be labeled |
| 26 | with special symbols. The vector here should not have more than 20 elements.} |
| 27 | |
| 28 | \item{footnote_order}{The order of how to arrange \code{general}, \code{number}, |
| 29 | \code{alphabet} and \code{symbol}.} |
| 30 | |
| 31 | \item{footnote_as_chunk}{T/F value. Default is FALSE. It controls whether |
| 32 | the footnotes should be printed in a chunk (without line break).} |
| 33 | |
| 34 | \item{escape}{T/F value. It controls whether the contents and titles should |
| 35 | be escaped against HTML or LaTeX. Default is TRUE.} |
| 36 | |
| 37 | \item{general_title}{Section header for general footnotes. Default is |
| 38 | "Note: ".} |
| 39 | |
| 40 | \item{number_title}{Section header for number footnotes. Default is "".} |
| 41 | |
| 42 | \item{alphabet_title}{Section header for alphabet footnotes. Default is "".} |
| 43 | |
| 44 | \item{symbol_title}{Section header for symbol footnotes. Default is "".} |
Hao Zhu | cdd7f92 | 2018-01-08 11:39:40 -0500 | [diff] [blame] | 45 | } |
| 46 | \description{ |
Hao Zhu | e0782ab | 2018-01-09 13:24:13 -0500 | [diff] [blame^] | 47 | \code{footnote} provides a more flexible way to add footnote. You |
| 48 | can add mutiple sets of footnote using differeny notation system. It is |
| 49 | also possible to specify footnote section header one by one and print |
| 50 | footnotes as a chunk of texts. |
Hao Zhu | cdd7f92 | 2018-01-08 11:39:40 -0500 | [diff] [blame] | 51 | } |