dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit cc3b0abdd98f9271f361b903b32bac2ec756561b
parent 034de027c1c964d215340e6be10313e801a67f86
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 29 Jun 2020 10:41:24 +0200

Drop latexmk dependency

Diffstat:
M.local/bin/compile | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/.local/bin/compile b/.local/bin/compile @@ -32,15 +32,12 @@ handle_target() { if [ -e "$1" ]; then case "$1" in *\.tex) - preview="-pv-" - if [ "$open" = 1 ]; then - preview="-pv" - fi - if [ "$continuous" = 1 ]; then - latexmk -pvc -pdf -f "$1" - else - latexmk -pdf $preview -f "$1" + pdflatex "$1" + if [ "$bibtex" = 1 ]; then + bibtex "${1%.tex}.aux" + pdflatex "$1" fi + pdflatex "$1" ;; *\.gp) run_compile "gnuplot '$1'" "$1" @@ -76,11 +73,14 @@ handle_target() { fi } +bibtex=0 verbose=0 continuous=0 open=0 while :; do case "$1" in + -b) + bibtex=1;; -h|-\?) show_help exit 0