You will need latexmk
for this script:
To install it in Debian based distributions:
sudo apt install latexmk
And in Archlinux:
sudo pacman -S texlive-core
You can clone this repository with the command below
git clone git@github.com:lulivi/latex-project-example.git
or just click on the "Download as zip" button.
- Firstly, select your favourite pdf viewer. To define it, you should go to the script
update_pdf_latex.sh
and modify the line containing the following text:
PREVIEWER="evince"
Change evince
with whichever pdf viewer you want.
- Secondly, go to your desired directory where you will use the latex template and run this command:
bash /path/to/repository/latex_project_copy.sh
This will copy the required files to your current directory.
- Finally, run the updater script. Use
./update_pdf_latex.sh -h
to show you the help.
I got the idea of this script mainly from two blog entries made by Elbaulp:
- Compilar automáticamente ficheros en latex mientras los modificamos.
- Ejecutar un script al modificar un fichero con inotify.
Also you can checkout the latexmk man page.
You can contact me in luislivilla at gmail.com or directly with Telegram.
Checkout LICENSE