2024-08-08 12:24:57 -05:00
#!/bin/bash
cd " $( dirname " $0 " ) "
2024-09-20 15:27:15 -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. MUST be commented out when modifying/running locally. I'm not gonna maintain two copies just for that automation, especially while I'm still actively creating stuff
2024-08-08 12:24:57 -05:00
#git fetch --all
#git reset --hard origin/master
2024-09-20 15:27:15 -05:00
printf "\n-_-_-_-_-_-_-_-_- Main -_-_-_-_-_-_-_-_-\n"
2024-08-08 12:24:57 -05:00
pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname= Recipes main.tex
2024-10-01 11:43:42 -05:00
printf "\n-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-\n\n\n"
2024-08-08 12:24:57 -05:00
pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname= Recipes main.tex
2024-09-20 15:27:15 -05:00
printf "\n-_-_-_-_-_-_-_-_- Booklet -_-_-_-_-_-_-_-_-\n"
2024-10-01 11:43:42 -05:00
# 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-12-04 11:19:18 -06:00
mv -v -t /home/david/fileshare/LaTeX/Recipes Recipes.pdf Recipes-book.pdf
2024-09-20 15:27:15 -05:00
#printf "\n-_-_-_-_-_-_-_-_- Meal Planner -_-_-_-_-_-_-_-_-\n"
#pdflatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname="Meal Planner" meal-planner.tex
#pdflatex -file-line-error -interaction nonstopmode -shell-escape -jobname="Meal Planner" meal-planner.tex
2024-10-01 11:43:42 -05:00
#mv -v -t /home/david/fileshare/LaTeX/Recipes "Meal Planner.pdf"
2024-12-04 11:19:18 -06:00
rm *.aux *.out *.log *.toc *.fls *.fdb_latexmk
2024-09-20 15:27:15 -05:00
#printf "\n-_-_-_-_-_-_-_-_- Meme -_-_-_-_-_-_-_-_-\n"
#cd meme
#lualatex -file-line-error -interaction nonstopmode -draftmode -shell-escape -jobname=Meme main.tex
#lualatex -file-line-error -interaction nonstopmode -shell-escape -jobname=Meme main.tex
#rm *.aux *.out *.log *.toc
2024-10-01 11:43:42 -05:00
#mv -v -t /home/david/fileshare/LaTeX/Recipes Meme.pdf