Custom-templates | R Documentation |
Using custom document templates
If you want to make more significant changes to the document styles, you can make custom Pandoc templates, using the examples provided with this package.
You will need to have some expertise with LaTeX to do this, but you
can take the templates, such as tintPdf-template.tex
or tintBook-template.tex
, which you can locate on your computer with
system.file("rmarkdown", "templates", "tintPdf", "resources", "tintPdf-template.tex", package="tint")
and
system.file("rmarkdown", "templates", "tintBook", "resources", "tintBook-template.tex", package="tint")
Copy those files to the folder where your RMarkdown file is located and edit them and then
tell tint to use your custom template instead of its built-in ones by using
the YAML attribute template
in your output
block:
output: tint::tintPdf: template: "my-custom-template.tex"
YAML-metadata
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.