Update compiler

This commit is contained in:
Emre AKYÜZ 2024-01-07 13:32:55 +03:00 committed by GitHub
parent aad277f071
commit 859ca43c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ case "${ext}" in
scad) openscad -o "${base}.stl" "${file}" ;;
sent) setsid -f sent "${file}" 2> "/dev/null" ;;
tex)
textarget="$(get_comp_root.sh "${file}" || echo "${file}")"
textarget="$(getcomproot "${file}" || echo "${file}")"
command="pdflatex"
head -n5 "${textarget}" | grep -qi "xelatex" && command="xelatex"
${command} --output-directory="${textarget%/*}" "${textarget%.*}" &&