Skip to content

Instantly share code, notes, and snippets.

View IllyaStarikov's full-sized avatar

Illya Starikov IllyaStarikov

  • Google
  • San Francisco Bay Area
  • 01:28 (UTC -07:00)
View GitHub Profile
IllyaStarikov / latexerr
Last active March 10, 2017 18:27
A bash script to clean LaTeX temporary files, compiling, and glossaries.
# 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() {
errors=$(pdflatex -shell-escape -interaction=nonstopmode -file-line-error "$argument" | grep ".*:[0-9]*:.*")