Call rmarkdown::pdf_document and mark the return value as inheriting pdf_document
Arguments
- ...
Arguments passed on to
rmarkdown::pdf_documenttocTRUEto include a table of contents in the outputtoc_depthDepth of headers to include in table of contents
number_sectionsTRUEto number section headingsfig_widthDefault width (in inches) for figures
fig_heightDefault height (in inches) for figures
fig_cropWhether to crop PDF figures with the command
pdfcrop. This requires the toolspdfcropandghostscriptto be installed. By default,fig_crop = TRUEif these two tools are available.fig_captionTRUEto render figures with captionsdevGraphics device to use for figure output (defaults to pdf)
df_printMethod to be used for printing data frames. Valid values include "default", "kable", "tibble", and "paged". The "default" method uses a corresponding S3 method of
print, typicallyprint.data.frame. The "kable" method uses theknitr::kablefunction. The "tibble" method uses the tibble package to print a summary of the data frame. The "paged" method creates a paginated HTML table (note that this method is only valid for formats that produce HTML). In addition to the named methods you can also pass an arbitrary function to be used for printing data frames. You can disable thedf_printbehavior entirely by setting the optionrmarkdown.df_printtoFALSE. See Data frame printing section in bookdown book for examples.highlightSyntax highlighting style passed to Pandoc.
Supported built-in styles include "default", "tango", "pygments", "kate", "monochrome", "espresso", "zenburn", "haddock", and "breezedark".
Two custom styles are also included, "arrow", an accessible color scheme, and "rstudio", which mimics the default IDE theme. Alternatively, supply a path to a .theme file to use a custom Pandoc style. Note that custom theme requires Pandoc 2.0+.
Pass
NULLto prevent syntax highlighting.templatePandoc template to use for rendering. Pass "default" to use the rmarkdown package default template; pass
NULLto use pandoc's built-in template; pass a path to use a custom template that you've created. See the documentation on pandoc online documentation for details on creating custom templates.keep_texKeep the intermediate tex file used in the conversion to PDF. Note that this argument does not control whether to keep the auxiliary files (e.g.,
.aux) generated by LaTeX when compiling.texto.pdf. To keep these files, you may setoptions(tinytex.clean = FALSE).keep_mdKeep the markdown file generated by knitting.
latex_engineLaTeX engine for producing PDF output. Options are "pdflatex", "lualatex", "xelatex" and "tectonic".
citation_packageThe LaTeX package to process citations,
natbiborbiblatex. Usedefaultif neither package is to be used, which means citations will be processed via the commandpandoc-citeproc.includesNamed list of additional content to include within the document (typically created using the
includesfunction).md_extensionsMarkdown extensions to be added or removed from the default definition of R Markdown. See the
rmarkdown_formatfor additional details.output_extensionsPandoc extensions to be added or removed from the output format, e.g.,
"-smart"means the output format will belatex-smart.pandoc_argsAdditional command line options to pass to pandoc
extra_dependenciesA LaTeX dependency
latex_dependency(), a list of LaTeX dependencies, a character vector of LaTeX package names (e.g.c("framed", "hyperref")), or a named list of LaTeX package options with the names being package names (e.g.list(hyperef = c("unicode=true", "breaklinks=true"), lmodern = NULL)). It can be used to add custom LaTeX packages to the .tex header.
