/
Custom-templates.Rd
38 lines (36 loc) · 1.18 KB
/
Custom-templates.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pdf.R
\name{Custom-templates}
\alias{Custom-templates}
\title{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 \code{tintPdf-template.tex}
or \code{tintBook-template.tex}, which you can locate on your computer with
\preformatted{
system.file("rmarkdown", "templates", "tintPdf", "resources",
"tintPdf-template.tex", package="tint")
}
and
\preformatted{
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 \code{template} in your \code{output} block:
\preformatted{
output:
tint::tintPdf:
template: "my-custom-template.tex"
}
}
\seealso{
\link{YAML-metadata}
}