blob: 8cda4fc685649e2cfb939dc0c3990981f15bb6aa [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{
53x <- mtcars[1:5, 1:5]
54footnote(knitr::kable(dt, "html"), alphabet = c("Note a", "Note b"))
55
56}