-
Notifications
You must be signed in to change notification settings - Fork 2
/
install_latex.R
47 lines (43 loc) · 862 Bytes
/
install_latex.R
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
39
40
41
42
43
44
45
46
47
# Install latex packages using tinytex
# This would happen automatically anyways when rendering the Rmd to pdf,
# but requires downloading packages and may not work during updates of Tex Live.
# Better to install to the docker image once and keep them there.
tinytex::tlmgr_update()
latex_packages <- c(
"amsmath",
"latex-amsmath-dev",
"iftex",
"mathspec",
"etoolbox",
"euenc",
"fontspec",
"tipa",
"xunicode",
"geometry",
"auxhook",
"bigintcalc",
"bitset",
"etexcmds",
"gettitlestring",
"hycolor",
"hyperref",
"intcalc",
"kvdefinekeys",
"kvsetkeys",
"letltxmacro",
"ltxcmds",
"pdfescape",
"refcount",
"rerunfilecheck",
"stringenc",
"uniquecounter",
"zapfding",
"pdftexcmds",
"infwarerr",
"kvoptions",
"grffile",
"titling",
"booktabs",
"caption"
)
tinytex::tlmgr_install(latex_packages)