These are simple wrappers of the output format functions like
rmarkdown::html_document(), and they added the capability of
numbering figures/tables/equations/theorems and cross-referencing them. See
References for the syntax. Note you can also cross-reference sections by
their ID's using the same syntax when sections are numbered.
html_document2(..., number_sections = TRUE, pandoc_args = NULL,
base_format = rmarkdown::html_document, clean_highlight_tags = TRUE)tufte_html2(..., number_sections = FALSE)
pdf_document2(...)
tufte_handout2(...)
tufte_book2(...)
word_document2(fig_caption = TRUE, md_extensions = NULL, pandoc_args = NULL,
...)
Arguments to be passed to a
specific output format function. For a function foo2(), its
arguments are passed to foo(), e.g. ... of
html_document2() are passed to rmarkdown::html_document().
Whether to number section headers: if TRUE,
figure/table numbers will be of the form X.i, where X is the
current first-level section number, and i is an incremental number
(the i-th figure/table); if FALSE, figures/tables will be numbered
sequentially in the document from 1, 2, ..., and you cannot cross-reference
section headers in this case.
An output format function to be used as the base format.
Whether to remove the <div> tags around
<pre>, and clean up <a> on all lines in code blocks.
An R Markdown output format object to be passed to
rmarkdown::render().