Description Usage Arguments Value Note References
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. In case you want
to enable cross reference in other formats, use markdown_document2
with
base_format
argument.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | html_document2(..., number_sections = TRUE, pandoc_args = NULL,
base_format = rmarkdown::html_document)
tufte_html2(..., number_sections = FALSE)
pdf_document2(...)
tufte_handout2(...)
tufte_book2(...)
markdown_document2(fig_caption = TRUE, md_extensions = NULL, pandoc_args = NULL,
..., base_format)
word_document2(...)
odt_document2(...)
powerpoint_presentation2(...)
rtf_document2(...)
|
..., fig_caption, md_extensions, pandoc_args |
Arguments to be passed to a
specific output format function. For a function |
number_sections |
Whether to number section headers: if |
base_format |
An output format function to be used as the base format. |
An R Markdown output format object to be passed to
rmarkdown::render()
.
These function are expected to work with a single R Markdown document
instead of multiple documents of a book, so they are to be passed to
rmarkdown::render()
instead of bookdown::render_book()
. The
functions tufte_*() are wrappers of funtions in the tufte
package.
https://bookdown.org/yihui/bookdown/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.