TransWikia.com

Post-commit service hook for GitHub repository containing LaTeX?

TeX - LaTeX Asked by argentpepper on February 20, 2021

This question is related to Compiling documents online.

I store my LaTeX documents in a git repository on GitHub. Is there a web service which offers a post-commit hook for GitHub which automatically fetches my document and compiles it?

For example, ReadTheDocs provides compilation for documentation of Python projects stored in GitHub repositories; the documentation is fetched and compiled after each commit to the repository.

5 Answers

Not exactly the answer you want, I guess (and to finish this question):

Have a closer look to ScribTeX. On the website you can read: "Access to your project's git repository" as mentioned in your cited question compiling documents online (see answer of Sharpie).

I do not know other web services offering what you are searching for.

Answered by Mensch on February 20, 2021

https://github.com/dbrgn/github-latex-builder

You'd need to self-host it (note security warnings).

Answered by anps on February 20, 2021

http://latex.aslushnikov.com/

Is what you are searching for. Example of compile git repo from some master LaTeX file:

PDF

Answered by restrepo on February 20, 2021

The ShareLaTeX Cloud Compiler was shut down on the 21st of July 2018. So this answer is not valid any more.

You can use ShareLaTeX on public repos, but the problem is that you can compile only one file in a repo.

Or you can use a payed version and sync your ShareLaTeX account with GitHub too.

Answered by Kpym on February 20, 2021

With GitHub Actions you can accomplish this. There are a few LaTeX actions, the one I found to work most easily is https://github.com/dante-ev/latex-action

You can store the compiled artifact, as I do in my LaTeX git template https://github.com/evanberkowitz/latex-base, so that after every push a new artifact is available for download and after every pull request a PDF with the diffs highlighted is available.

Unfortunately, the latest compiled artifacts' URLs are not stable---there has been an open issue for a bit over a year (as of this writing).

Answered by evanb on February 20, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP