The following instructions only apply to Community Edition installations. We highly recommend that our Ayakaleaf Pro users enable Sandboxed Compiles as this provides users with access to almost the same TeX Live images used on overleaf.com as well as providing isolation between project compiles for enhanced security.
sharelatex container.
Getting inside the sharelatex container
To start a shell inside thesharelatex container, run
Determining your current TeX Live version
TeX Live is released every year around the month of April. Steps for usingtlmgr are different depending on whether you are using the current release or an older one. You can check which version of TeX Live you are running with tlmgr --version. For example, this installation runs TeX Live 2021:
The current release of TeX Live can be found on the TeX Live homepage.
bin/upgrade script, or, if you prefer to keep the older TeX Live release, you will first need to tell tlmgr to use a historic repository. You will find instructions for doing so here.
Installing packages
To install a complete TeX Live installation, run this command inside thesharelatex container:
exit or press Control-D to exit the shell.
Saving your changes
The changes you’ve just made have changed thesharelatex container, but they are ephemeral — they will be lost if Docker Compose recreates the container, e.g. as part of updating the config.
To make them persistent, use docker commit to save the changes to a new docker image:
config/version accordingly. Then run bin/up, to recreate the sharelatex container.
You will need to repeat these steps each time you upgrade to a new Overleaf version.

