mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-01-30 09:48:11 +01:00
Merge branch 'patch-2' of https://github.com/ssnailed/voidrice into ssnailed-patch-2
This commit is contained in:
commit
1a37b0bc99
@ -18,6 +18,8 @@ cd "$dir" || exit 1
|
|||||||
|
|
||||||
textype() { \
|
textype() { \
|
||||||
command="pdflatex"
|
command="pdflatex"
|
||||||
|
texroot=$(grep -Poi "^ *% *\! *tex root *= *\w+(?:\.\w*)?" "$file" | cut -d "=" -f 2 | tr -d "[:blank:]")
|
||||||
|
[ -n "$texroot" ] && base=$texroot && echo "Compiling from TeX root: $texroot"
|
||||||
( head -n5 "$file" | grep -qi 'xelatex' ) && command="xelatex"
|
( head -n5 "$file" | grep -qi 'xelatex' ) && command="xelatex"
|
||||||
$command --output-directory="$dir" "$base" &&
|
$command --output-directory="$dir" "$base" &&
|
||||||
grep -qi addbibresource "$file" &&
|
grep -qi addbibresource "$file" &&
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user