Retravail complet

This commit is contained in:
2024-12-07 19:04:46 -04:00
parent 32ba36a08f
commit d86ebbdc14
9 changed files with 555 additions and 31 deletions

26
compile.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
run_lualatex() {
local jobname=$1
local texinput=$2
# Sequentially run the lualatex command twice
for i in 1 2 3; do
lualatex -jobname="$jobname" -shell-escape "$texinput"
done
}
current_dir=$(basename "$(pwd)")
# Run each job in the background to achieve parallel execution
run_lualatex "$current_dir" "\PassOptionsToClass{handout}{beamer}\input{main.tex}"
rm -f *.aux *.log *.toc *.out *.lof *.lot *.bbl *.blg *.fls *.fdb_latexmk *.synctex.gz *.nav *.snm
run_lualatex "$current_dir-presentation" "main.tex"
rm -f *.aux *.log *.toc *.out *.lof *.lot *.bbl *.blg *.fls *.fdb_latexmk *.synctex.gz *.nav *.snm
run_lualatex "$current_dir-print-portrait" "\PassOptionsToClass{handout}{beamer}\def\printportrait{1}\input{main.tex}"
rm -f *.aux *.log *.toc *.out *.lof *.lot *.bbl *.blg *.fls *.fdb_latexmk *.synctex.gz *.nav *.snm
run_lualatex "$current_dir-print-landscape" "\PassOptionsToClass{handout}{beamer}\def\printlandscape{1}\input{main.tex}"
rm -f *.aux *.log *.toc *.out *.lof *.lot *.bbl *.blg *.fls *.fdb_latexmk *.synctex.gz *.nav *.snm
# Wait for all background jobs to complete
wait