Description Usage Arguments Details Value Examples
Use knitr and pandoc to convert an R Markdown file into a TeX file, and run xelatex (and biber) on the converted file to produce a PDF.
1 2 |
file |
the location and name of the R Markdown file to be rendered. |
template |
the location and name of the pandoc latex template to use during the conversion from R Markdown to TeX. |
biber |
logical flag indicating if biber (or biblatex) backend should be run after xelatex is called. |
saveTmpFiles |
logical flag indicating if intermediary files should be
kept after PDF file is created. If |
There's no markdown (yet) that allows for LaTeX preamble to be specified
inside a .md file. To get around this, we have to redefine a Pandoc latex
template using the preamble we'd normally use if we were using the LaTeX or
knitr templates. The template, inst/rmarkdown/thesis_template.latex
,
is a modification of the default template found via
pandoc -D latex
. If you need to add more packages to your preamble,
e.g. \usepackage{amsmath}
, modify thesis_template.latex
accordingly.
Temporary files (e.g. .md's, .log's, .aux's, etc.) are stored in a temporary
(sub)directory, tmp/
.
The name of the xelatex rendered PDF.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.