This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# USAGE: ./script FILE --clean --glossary | |
extensions_to_delete=(gz fls fdb_latexmk blg bbl log aux out nav toc snm glg glo xdy) | |
compile_and_open() { | |
argument="$1" | |
auxname="${argument%.tex}.aux" | |
errors=$(pdflatex -shell-escape -interaction=nonstopmode -file-line-error "$argument" | grep ".*:[0-9]*:.*") |