Skip to content

Instantly share code, notes, and snippets.

@thomasantony
Created December 7, 2014 00:19
Show Gist options
  • Save thomasantony/ae0ef4b9d773515b5b1d to your computer and use it in GitHub Desktop.
Save thomasantony/ae0ef4b9d773515b5b1d to your computer and use it in GitHub Desktop.
#!/bin/bash
# Place in ~/Library/TexShop/Engines/LatBibNomTex/engine
pdflatex "$1"
for file in *.aux ; do
bibtex $file
bfname=$(dirname "$1")/"`basename "$1" .tex`"
makeindex "$bfname".nlo -s nomencl.ist -o "$bfname".nls
done
pdflatex "$1"
# pdflatex "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment