dotfiles/.scripts/compile_latex

12 lines
500 B
Plaintext
Raw Normal View History

2021-11-19 16:25:54 +01:00
#!/bin/bash
DOCUMENT_NAME=$1
# The actual script
pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" >/dev/null 2>&1
makeglossaries $DOCUMENT_NAME >/dev/null 2>&1
pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" >/dev/null 2>&1
biber "$DOCUMENT_NAME"
pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" >/dev/null 2>&1
pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex"