blob: 7048246b66f909ba40cb1bf1c55cd81a723f638a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# Build single latex file using xelatex
if [ $# -ne 1 ]; then
echo "Usage: $(basename "$0") FILE"
exit 1
fi
cleanup() {
# cleanup of auxiliary files
rm -f *.aux *.fls *.fdb_latexmk
# rm *.log
}
xelatex $1 || exit # Initial compilation
#bibtex # Bibliography tool
#xelatex $1 || exit # Incorporate bibliography changes
xelatex $1 || exit # Fix cross-references
#xelatex $1 || exit # 4th run just to be safe
cleanup
echo "## Mispelled words:"
pdftotext "${1%.tex}.pdf" - | hunspell -d en_US -i utf-8 -a | sort | uniq
|