Custom-templates: Custom document templates

Custom-templatesR Documentation

Custom document templates

Description

Using custom document templates

Details

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"

See Also

YAML-metadata


tint documentation built on Nov. 2, 2022, 1:06 a.m.