Debian Codegraph @

man/pandoc_options.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/output_format.R
3 \name{pandoc_options}
4 \alias{pandoc_options}
5 \title{Pandoc options for an output format}
6 \usage{
7 pandoc_options(
8 to,
9 from = rmarkdown_format(),
10 args = NULL,
11 keep_tex = FALSE,
12 latex_engine = c("pdflatex", "lualatex", "xelatex", "tectonic"),
13 ext = NULL,
14 lua_filters = NULL,
15 convert_fun = NULL
16 )
17 }
18 \arguments{
19 \item{to}{Pandoc format to convert to}
20
21 \item{from}{Pandoc format to convert from}
22
23 \item{args}{Character vector of command line arguments to pass to pandoc}
24
25 \item{keep_tex}{Keep the intermediate tex file used in the conversion to PDF
26 (applies only to 'latex' and 'beamer' target formats)}
27
28 \item{latex_engine}{LaTeX engine to producing PDF output (applies only to
29 'latex' and 'beamer' target formats)}
30
31 \item{ext}{File extension (e.g. ".tex") for output file (if \code{NULL}
32 chooses default based on \code{to}). This is typically used to force the
33 final output of a latex or beamer conversion to be \code{.tex} rather than
34 \code{.pdf}.}
35
36 \item{lua_filters}{Character vector of file paths to Lua filters to use with
37 this format. They will be added to pandoc command line call using
38 \code{--lua-filter} argument. See \code{vignette("lua-filters", package =
39 "rmarkdown")} to know more about Lua filters.}
40
41 \item{convert_fun}{A function to convert the input file to the desired output
42 format in \code{\link{render}()}. If not provided,
43 \code{\link{pandoc_convert}()} will be used. If a custom function is
44 provided, its arguments and returned value should match the
45 \code{pandoc_convert()} function. Note that this function does not have to
46 use Pandoc but can also use other tools such as \pkg{commonmark}.}
47 }
48 \value{
49 An list that can be passed as the \code{pandoc} argument of the
50 \code{\link{output_format}} function.
51 }
52 \description{
53 Define the pandoc options for an R Markdown output format.
54 }
55 \details{
56 The \code{from} argument should be used very cautiously as it's important for
57 users to be able to rely on a stable definition of supported markdown
58 extensions.
59 }
60 \seealso{
61 \link{output_format}, \link{rmarkdown_format}
62 }