@@ -10,7 +10,7 @@ SYNOPSIS="converts markdown-formatted text to PDF, using pdflatex."
10texname=output
10texname=output
11logfile=$THIS_TEMPDIR/log
11logfile=$THIS_TEMPDIR/log
13−pandoc -s -r markdown -w latex "$@" -o $THIS_TEMPDIR/$texname.tex || exit $?
13+pandoc -s -r markdown -w latex "$@" -o $THIS_TEMPDIR/$texname.tex
15if [ "$OUTPUT" = "-" ]; then
15if [ "$OUTPUT" = "-" ]; then
16 firstinfile="$(echo $ARGS | sed -ne '1p')"
16 firstinfile="$(echo $ARGS | sed -ne '1p')"
@@ -54,7 +54,7 @@ fi
54 ! bibtex $texname >/dev/null 2>&1 >bibtex.err; then
54 ! bibtex $texname >/dev/null 2>&1 >bibtex.err; then
55 if [ $runs -gt 2 ]; then
55 if [ $runs -gt 2 ]; then
56 err "${THIS}: bibtex warning messages:"
56 err "${THIS}: bibtex warning messages:"
57− cat bibtex.err
57+ cat bibtex.err >&2