tectonic-typesetting / tectonic

A modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive.
https://tectonic-typesetting.github.io/
Other
3.98k stars 162 forks source link

Location of installed LaTeX packages for caching #159

Closed PHPirates closed 6 years ago

PHPirates commented 6 years ago

This is a support question, I have tried asking on the forum but with no response so trying here.

I am using miniconda with tectonic for continuous integration which works awesome, but installing the LaTeX packages every time takes a long time and is like the only disadvantage I found (besides that makeindex is not included, see #115 ). I have successfully cached miniconda, however tectonic still installs all LaTeX packages on every run - I would like to cache those as well.

Question Which folder do I need to include my cache such that the LaTeX packages are retained and tectonic recognizes that?

I am now using, to install tectonic on the linux server,

wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
bash miniconda.sh -b -p $HOME/miniconda -u;
conda config --add channels conda-forge;
conda config --set always_yes yes;
conda update --all;
conda install tectonic;

and caching $HOME/miniconda.

To compare, when using TeX Live was sufficient to cache TEXDIR=/tmp/texlive and $HOME/.texlive.

My full setup is here , referencing issue PHPirates/travis-ci-latex-pdf#3

wopian commented 6 years ago

Tectonic's cache is in $HOME/.cache/Tectonic

Example: https://github.com/wopian/hibari-api/blob/master/.travis.yml

PHPirates commented 6 years ago

@wopian wow thanks for the quick response, I ran the tests and it works! Build time down from five minutes to one. Awesome!

pkgw commented 6 years ago

@PHPirates Sorry for not replying on the forum! Thanks for your patience.

s-weigand commented 4 years ago

Since this was referenced in the Forum, for macOS the path is ~/Library/Caches/Tectonic

s-weigand commented 4 years ago

And as another reference, on Windows it is %LOCALAPPDATA%/TectonicProject/Tectonic. And yes forward slashes are also allowed on Windows 😉.