[scripts] feat: compile main.tex the right way

This commit is contained in:
David JULIEN 2022-07-08 15:26:05 +02:00
parent a035e1ee17
commit dede9bcf79

View File

@ -31,7 +31,7 @@ shebangtest()
}
texcompile() { \
[ -e "main.tex" ] && base="main" && file="$base.tex"
[ "$base" != "notes" ] && [ -e "main.tex" ] && base="main" && file="$base.tex"
cmd="pdflatex"
case "$(head -n 1 $file)" in
*lua*) cmd="lualatex" ;;