Skip to content
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

Location of installed LaTeX packages for caching #159

Closed
PHPirates opened this issue Feb 20, 2018 · 5 comments
Closed

Location of installed LaTeX packages for caching #159

PHPirates opened this issue Feb 20, 2018 · 5 comments

Comments

@PHPirates
Copy link
Contributor

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
Copy link

wopian commented Feb 20, 2018

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

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

@PHPirates
Copy link
Contributor Author

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

@pkgw
Copy link
Collaborator

pkgw commented Feb 24, 2018

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

Mrmaxmeier pushed a commit to Mrmaxmeier/tectonic that referenced this issue Oct 28, 2019
@s-weigand
Copy link

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

@s-weigand
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants