diff --git a/.local/bin/compiler b/.local/bin/compiler index 4a6702a1..57135906 100755 --- a/.local/bin/compiler +++ b/.local/bin/compiler @@ -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%.*}" &&