blob: 615287683ea8a60941a9e91847d9b6f62483b329 [file] [log] [blame]
Hao Zhucdd7f922018-01-08 11:39:40 -05001% 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{
7footnote(kable_input, general = NULL, number = NULL, alphabet = NULL,
8 symbol = NULL, footnote_order = c("general", "number", "alphabet",
Hao Zhue0782ab2018-01-09 13:24:13 -05009 "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
17won't be labeled with any notations}
18
19\item{number}{A vector of footnote texts. Footnotes here will be numbered.
20There is no upper cap for the number of footnotes here}
21
22\item{alphabet}{A vector of footnote texts, Footnotes here will be labeled
23with 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
26with 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
32the 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
35be 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 Zhucdd7f922018-01-08 11:39:40 -050045}
46\description{
Hao Zhue0782ab2018-01-09 13:24:13 -050047\code{footnote} provides a more flexible way to add footnote. You
48can add mutiple sets of footnote using differeny notation system. It is
49also possible to specify footnote section header one by one and print
50footnotes as a chunk of texts.
Hao Zhucdd7f922018-01-08 11:39:40 -050051}
Hao Zhu593f57e2018-01-09 13:30:01 -050052\examples{
Hao Zhub1e2e3d2018-01-09 13:31:42 -050053dt <- mtcars[1:5, 1:5]
Hao Zhu593f57e2018-01-09 13:30:01 -050054footnote(knitr::kable(dt, "html"), alphabet = c("Note a", "Note b"))
55
56}