[scripts] feat: compile main.tex the right way
This commit is contained in:
parent
a035e1ee17
commit
dede9bcf79
@ -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" ;;
|
||||
|
Reference in New Issue
Block a user