dotfiles/.local/bin/scripts/tx

8 lines
194 B
Plaintext
Raw Normal View History

2022-11-22 12:24:52 +00:00
#!/bin/sh -e
# LaTeX fixed
dir=/tmp/latexmk
filename="$(basename "${1%.tex}.pdf")"
TEXMF="" pdflatex -shell-escape -recorder -output-directory="$dir" "$@"
mv -v "$dir/$filename" .
b "$filename"