From b90cea80f810c09f209e5f0d2d74a6710eccee87 Mon Sep 17 00:00:00 2001
From: David Dorchies <david.dorchies@inrae.fr>
Date: Thu, 19 Oct 2023 16:07:27 +0000
Subject: [PATCH] fix(ci): LaTeX errors found: ! LaTeX Error: File
 `epstopdf-base.sty' not found

Which is due to error:
$ tlmgr update --self && tlmgr install ec epstopdf-pkg epstopdf-base amsmath
tlmgr: Local TeX Live (2021) is older than remote repository (2023).
Cross release updates are only supported with
  update-tlmgr-latest(.sh/.exe) --update

Refs #184
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 11c48a8..92f30fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -62,7 +62,8 @@ before_script:
 .check:
   stage: check
   script:
-  - tlmgr update --self && tlmgr install ec epstopdf-pkg epstopdf-base amsmath
+  - R -q -e 'tinytex::tlmgr("option repository https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2021/tlnet-final")'
+  - tlmgr update --self && tlmgr install ec epstopdf-pkg amsmath
   - R -q -e 'remotes::update_packages("rcmdcheck")'
   - R -q -e 'rcmdcheck::rcmdcheck(args = c("--as-cran"), error_on = "warning")'
 
-- 
GitLab