-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No PNG images with new TeXLive: Use version-stable TinyTeX #152
Comments
Usage of version-stable TinyTeX implemented with 0a69df4 in a feature branch, where we use as date Successfully tested in the feature branch via git checkout feature/152-version-stable-tinytex
docker build --pull -f Dockerfile -t mirai/smarp:152-version-stable-tinytex .
docker run -p 80:80 mirai/smarp:152-version-stable-tinytex |
Note that, in general, we shall reconsider if we want to keep using This can be addressed as part of #130. |
Originally posted by @riccardoporreca in rocker-org/rocker-versioned#169 (comment) It then makes sense to use the TeXLive 2016 release from the tlnet archive, i.e. http://www.texlive.info/tlnet-archive/2017/04/13/tlnet as This is even more relevant for SmaRP, where we are doing a first release where we switch from the debian |
…elease. * See comments in #152.
There is an issue when running SmaRP from the Docker container as the usual test in the release process: The PNG images of the Swiss pension system and Tax benefits in the PDF report are not shown.
Originally posted by @riccardoporreca in #151 (comment)
After some investigation, the root cause is a problem recently introduced in the
graphicx
LaTeX package (see jgm/pandoc#5848), preventing images to be included with the xelatex engine we currently use for the PDF report.There is a fundamental issue with the way we use TeXLive (via TinyTeX, see #91), which is meant to always install the latest version of TeXLive and LaTeX packages. This is unfortunately a source of issue since in any new build of SmaRP as new versions will kick-in in a possibly uncontrolled way. This is sort of against the version-stable approach behind the version-stable Rocker images we leverage on. Note that the version-stable Rocker images use the same approach to the TinyTeX installation we use in SmaRP and hence are subject to similar problems => see corresponding issue rocker-org/rocker-versioned#169
There is however good news: A tlnet archive is now available with TeXLive snaphots of CTAN (similar to the MRAN), see also https://www.tug.org/texlive/pkginstall.html. TinyTex in fact supports specifying a custom CTAN repo via the environment variable CTAN_REPO:
https://github.com/yihui/tinytex/blob/9efbce0c77179eac2f6800f08b768aefa1917085/tools/install-base.sh#L5
so we could set it to make our TinyTeX install version-stable.
The text was updated successfully, but these errors were encountered: