This workflow automatically compiles PDFs of your LATEX project on the fly based on the most recent version, all just by clicking a link available to anyone.
Anyone who’s worked on a large writing project knows the pains of manual versioning. GitHub is a popular version control platform. I wanted to build the final link in the chain to enable automatic, web-based LATEX PDF creation.
- Create or use an existing Overleaf project
- Within that project, click on the “GitHub” link in the menu
- This will prompt you to create a repo for the project. For the rest of this sequence to work, it must be public
- Copy GitHub’s repo link
- Enter it into the LATEX Cloud Compiler
- Click “Generate Build URL” and copy the resulting URL in your address bar. This is essentially your new PDF link that can be used to grab the most recent version of your project
You don’t need to use Overleaf to create the repo; it can originate from anywhere. The process is just easier with Overleaf for those who may not be as familiar with manual setup.
- LATEX Cloud Compiler only contains the compilers pdflatex, xelatex, and lualatex. These should work for almost everyone, however.
- PDFs may compile slightly different. On my document, the only difference I noticed was a multicols environment not behaving as expected (with or without the asterisk). It produced a flush end to a section instead of a ragged one like on Overleaf. Using
\twocolumnfixed the problem. Therefore, you may have to troubleshoot similar issues if your document is complex.
Last Updated on