Skip to content

Instantly share code, notes, and snippets.

Avatar

Illya Starikov IllyaStarikov

  • Google
  • San Francisco Bay Area
View GitHub Profile
@IllyaStarikov
IllyaStarikov / latexerr
Last active Mar 10, 2017
A bash script to clean LaTeX temporary files, compiling, and glossaries.
View latexerr
#!/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]*:.*")