From 7c1ef1ec5e8d54dc9f13f26a6a258a533c181c04 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Wed, 20 May 2020 18:21:07 +0300 Subject: changes to doccompiler to compile new tex docs with bibs --- dotfiles/.local/bin/doccompiler | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dotfiles/.local/bin') 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 ;; -- cgit v1.2.3