284849f36516ebdb9f76573a1630a56baa61b313
5 [ "$#" > "0" ] && cd "$1"
13 for f
in $
(find -name "*.tex"); do
14 # Only main tex files are interesting
15 grep -q "\documentclass" "$f" ||
continue
20 if ! pdflatex
-output-directory "$tmpdir" $
(basename $f) < /dev
/null
> /dev
/null
; then
22 echo >&2 "pdflatex failed on '$f'."