Skip to content

Instantly share code, notes, and snippets.

View IllyaStarikov's full-sized avatar
🇺🇦
https://u24.gov.ua

Illya Starikov IllyaStarikov

🇺🇦
https://u24.gov.ua
  • Google
  • San Francisco Bay Area
  • 13:45 (UTC -07:00)
View GitHub Profile
@IllyaStarikov
IllyaStarikov / latexerr
Last active March 10, 2017 18:27
A bash script to clean LaTeX temporary files, compiling, and glossaries.
#!/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]*:.*")