@@ -42,16 +42,32 @@ RUN apt-get update \
4242 && rm -rf /var/lib/apt/lists/*
4343
4444# install TeX system and fonts
45- ARG TEX_APT="\
46- texlive-xetex \
47- texlive-fonts-recommended \
48- texlive-fonts-extra \
49- lmodern \
50- "
51- RUN apt-get update \
52- && apt-get install -y --no-install-recommends $TEX_APT \
53- && tlmgr init-usertree \
54- && rm -rf /var/lib/apt/lists/*
45+ ARG TEX_APT="\
46+ texlive-xetex \
47+ texlive-fonts-recommended \
48+ texlive-fonts-extra \
49+ lmodern \
50+ "
51+ RUN apt-get update \
52+ && apt-get install -y --no-install-recommends $TEX_APT \
53+ && tlmgr init-usertree \
54+ && rm -rf /var/lib/apt/lists/*
55+
56+ # install tex package dependencies
57+ ARG CTAN_REPO=https://www.texlive.info/tlnet-archive/2019/12/31/tlnet/
58+
59+ ARG TEX_DEPS="\
60+ geometry \
61+ hyperref \
62+ l3packages \
63+ mdframed \
64+ needspace \
65+ tools \
66+ xcolor \
67+ zref \
68+ "
69+
70+ RUN tlmgr --repository $CTAN_REPO install $TEX_DEPS
5571
5672# install R package dependencies
5773ARG PKG_DEPS="\
@@ -81,22 +97,6 @@ RUN Rscript -e "\
8197 remotes::install_cran(pkg_deps); \
8298 "
8399
84- # install {tinytex} and TeX packages
85- ARG TEX_DEPS="\
86- geometry \
87- mdframed \
88- multicol \
89- needspace \
90- xcolor \
91- xparse \
92- zref \
93- "
94- RUN Rscript -e "\
95- tex_deps <- strsplit(trimws(gsub('[\\\] +', '', '$TEX_DEPS')), '[[:space:]]+')[[1]]; \
96- remotes::install_cran('tinytex'); \
97- tinytex::install_tinytex(extra_packages = tex_deps); \
98- "
99-
100100# copy in PACTA repos
101101COPY pacta-data /pacta-data
102102COPY pacta.executive.summary /pacta.executive.summary
0 commit comments