These functions exist only for historical reasons, and should never be called directly. They can be used to configure output formats in YAML, but you are recommended to use the file format names instead of these function names.
html_format(options = NULL, meta = NULL, template = NULL, keep_md = FALSE)latex_format(
options = NULL,
meta = NULL,
template = NULL,
keep_md = FALSE,
keep_tex = FALSE,
latex_engine = "xelatex",
citation_package = "natbib"
)
Arguments to be passed to mark()
.
A template file path.
Whether to keep the intermediate .md
and
.tex
files generated from .Rmd
.
The LaTeX engine to compile .tex
to .pdf
.
The LaTeX package for processing citations. Possible
values are none
, natbib
, and biblatex
.
To configure output formats in the YAML metadata of the Markdown document,
simply use the output format names such as html
or latex
in the output
field in YAML, e.g.,
---
output:
html:
options:
toc: true
keep_md: true
latex:
latex_engine: pdflatex
---
You can also use litedown::html_format
instead of html
(or
litedown::latex_format
instead of latex
) if you like.