/latex-project-template

Primary LanguageNixGNU General Public License v3.0GPL-3.0

<<Name of the Latex Project>>

Introduction

Add some introduction about the content of the latex project

How to autocompile when latex document changes

Just run the script in a command line

sh ./autocompile.sh [MAIN_DOC].tex

Where [MAIN_DOC] is the main latex source file. The autocompile.sh script will run the follwing command

ls *.tex | entr -s 'nix-shell latex.nix --run "rubber --pdf [MAIN_DOC].tex" ; rm -f *.aux *.bbl *.bcf *.blg *.log *.out *.run.xml *.toc'

For the above command to work you will need Nix installed https://nix.dev/tutorials/install-nix. With Nix it is more likely that the project will compile in the far future.

You can remove the nix-shell latex.nix --run in the above command to run on an local installation of latex and rubber.