2024-08-08 12:24:57 -05:00
#!/bin/bash
cd " $( dirname " $0 " ) "
2024-08-15 13:48:30 -05:00
# these are so that later it can be edited through the web on gitea and automagically recompile without having to run anything on the webserver manually.
2024-08-08 12:24:57 -05:00
#git fetch --all
#git reset --hard origin/master
pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname= Recipes main.tex
2024-08-16 23:28:14 -05:00
echo
echo -_-_-_-_-_-_-_-_- Final run -_-_-_-_-_-_-_-_-
echo
2024-08-08 12:24:57 -05:00
pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname= Recipes main.tex
2024-08-16 23:28:14 -05:00
echo
echo -_-_-_-_-_-_-_-_- Booklet -_-_-_-_-_-_-_-_-
echo
# https://github.com/jenom/pdfbook2
2024-08-26 11:16:41 -05:00
pdfbook2 --no-crop --top-margin= 5 --bottom-margin= 5 --outer-margin= 0 --inner-margin= 0 --short-edge --paper= letterpaper Recipes.pdf
2024-08-15 13:48:30 -05:00
rm *.aux *.out *.log *.toc
2024-08-16 23:28:14 -05:00
mv -v Recipes.pdf /home/david/fileshare/LaTeX/Recipes
2024-08-26 11:16:41 -05:00
mv -v Recipes-book.pdf /home/david/fileshare/LaTeX/Recipes/Recipes-booklet.pdf