| pandoc_export_template {pandoc} | R Documentation |
Retrieve Pandoc template for a format
Description
This correspond to the --print-default-template CLI flag. With
this function, one can easily export default LaTeX template for example.
Usage
pandoc_export_template(format = "markdown", output = NULL, version = "default")
Arguments
format |
One of Pandoc format using a text template. (e.g html, latex, revealjs) |
output |
Path where to save the file. If not provided, the default, template content will be print to the console. |
version |
Version to use. Default will be the
|
Value
If output is not provided, the content of the template will be
printed and return as one string (invisibly). If output is provided, the file path of
the output (invisibly).
Examples
pandoc_export_template()
pandoc_export_template("latex", output = "default.tex", version = "system")