This can be useful if you simply want to play around with TeX Live without having to build or install it yourself. You can pull it up on your instance easily in bash:
heroku run bash
As an alternative you can also use a local docker build:
docker build . -t heroku-tex docker run -ti -v path/to/my/tex/files:/app heroku-tex
heroku buildpacks:add git://github.com/Thermondo/heroku-buildpack-tex.git#VERSION_NUMBER
scheme-smallto have a working minimal setup.
Since we are not using a prepackaged version of TeX Live, the initial install can take some time. But in doing so you also gain more freedom with the selection of your packages.
You can add a file called
texlive.packages in your repo:
collection-bibtexextra collection-fontsextra collection-langgerman collection-xetex
It looks similar to the default
texlive.profile, but without the
the end. The buildpack runs
tlmgr install on every line in this file.
So you can use single packages or these collections.
When you add custom packages, keep in mind that Heroku has a maximum compressed slug-size, see here. A full TeX Live installation is very large.
You can customize the
TEXMFHOME directory by adding a file called
texlive.texmfhome to your project. It should contain only the path to the directory
you wish to use for the texmfhome directory. For example:
By default the latest TeX Live version will be installed. You can customize the
path to the repository to be used by adding a file called
to your project. It should contain only the path to the location of the TeX Live
repository that you want to use without trailing
/. For example:
This will install the latest TeX Live 2016 release.
Copy the snippet above into CLI.