aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-05-20 18:21:07 +0300
committerYaroslav <contact@yaroslavps.com>2020-05-20 18:21:07 +0300
commit7c1ef1ec5e8d54dc9f13f26a6a258a533c181c04 (patch)
treeaa1d052690886ee410aa4e780df4ab72314e3dc7 /dotfiles
parente53a7d928babf47f984d891e5635cc3f4d675ae3 (diff)
downloadswayrice-7c1ef1ec5e8d54dc9f13f26a6a258a533c181c04.tar.gz
swayrice-7c1ef1ec5e8d54dc9f13f26a6a258a533c181c04.zip
changes to doccompiler to compile new tex docs with bibs
Diffstat (limited to 'dotfiles')
-rwxr-xr-xdotfiles/.local/bin/doccompiler6
1 files changed, 3 insertions, 3 deletions
diff --git a/dotfiles/.local/bin/doccompiler b/dotfiles/.local/bin/doccompiler
index b95d7a3..03eb21e 100755
--- a/dotfiles/.local/bin/doccompiler
+++ b/dotfiles/.local/bin/doccompiler
@@ -10,15 +10,15 @@ base="${file%.*}"
cd "$dir" || exit
-textype() { \
+textype() {
command="pdflatex -interaction=nonstopmode"
( sed 5q "$file" | grep -i -q 'xelatex' ) && command="xelatex"
- $command --output-directory="$dir" "$base" &&
+ $command --output-directory="$dir" "$base"
grep -i addbibresource "$file" >/dev/null &&
biber --input-directory "$dir" "$base" &&
$command --output-directory="$dir" "$base" &&
$command --output-directory="$dir" "$base"
- }
+}
case "$file" in
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;