This functions renders an R Markdown document without YAML header to a TeX fragment inside
an appendix
environment.
render_appendix(x, options = NULL, quiet = TRUE)
Character. Input file name.
Character. Vector of options passed to pandoc_convert
.
Logical. Suppresses pandoc command line output; see render
.
If FALSE
output will be included in the document.
By default x
is converted to a TeX file which can be included in an R Markdown document
as include
:
output: pdf_document: include: after_body: appendix.tex
If render_appendix
is called form an R Markdown document with a target document type other
than a PDF file a Markdown document is created and a warning returned (includes are only supported
in PDF documents).
Default chunk options and hooks are set to those used in the R Markdown document from
which render_appendix
is called; otherwise defaults of md_document
are
used. It is, therefore, recommended to include render_appendix
in your parent document.