% Generated by roxygen2: do not edit by hand % Please edit documentation in R/output_format.R \name{pandoc_options} \alias{pandoc_options} \title{Pandoc options for an output format} \usage{ pandoc_options( to, from = rmarkdown_format(), args = NULL, keep_tex = FALSE, latex_engine = c("pdflatex", "lualatex", "xelatex", "tectonic"), ext = NULL, lua_filters = NULL, convert_fun = NULL ) } \arguments{ \item{to}{Pandoc format to convert to} \item{from}{Pandoc format to convert from} \item{args}{Character vector of command line arguments to pass to pandoc} \item{keep_tex}{Keep the intermediate tex file used in the conversion to PDF (applies only to 'latex' and 'beamer' target formats)} \item{latex_engine}{LaTeX engine to producing PDF output (applies only to 'latex' and 'beamer' target formats)} \item{ext}{File extension (e.g. ".tex") for output file (if \code{NULL} chooses default based on \code{to}). This is typically used to force the final output of a latex or beamer conversion to be \code{.tex} rather than \code{.pdf}.} \item{lua_filters}{Character vector of file paths to Lua filters to use with this format. They will be added to pandoc command line call using \code{--lua-filter} argument. See \code{vignette("lua-filters", package = "rmarkdown")} to know more about Lua filters.} \item{convert_fun}{A function to convert the input file to the desired output format in \code{\link{render}()}. If not provided, \code{\link{pandoc_convert}()} will be used. If a custom function is provided, its arguments and returned value should match the \code{pandoc_convert()} function. Note that this function does not have to use Pandoc but can also use other tools such as \pkg{commonmark}.} } \value{ An list that can be passed as the \code{pandoc} argument of the \code{\link{output_format}} function. } \description{ Define the pandoc options for an R Markdown output format. } \details{ The \code{from} argument should be used very cautiously as it's important for users to be able to rely on a stable definition of supported markdown extensions. } \seealso{ \link{output_format}, \link{rmarkdown_format} }