diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-16 07:26:03 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-16 07:26:03 +0000 |
commit | 9e4c28d5f41c4c4f04d6c964e1b0142e74e39940 (patch) | |
tree | 53c169faf93b21bcaabd08c4205c13a3d141e9a7 /src | |
parent | 48d67d0d1fa8dd22a0c35439c2cd7b2cc2b62926 (diff) | |
download | pandoc-9e4c28d5f41c4c4f04d6c964e1b0142e74e39940.tar.gz |
markdown2pdf.in: Test for --table-of-contents as
well as --toc.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@733 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'src')
-rw-r--r-- | src/wrappers/markdown2pdf.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrappers/markdown2pdf.in b/src/wrappers/markdown2pdf.in index 7bba44466..fb94b4628 100644 --- a/src/wrappers/markdown2pdf.in +++ b/src/wrappers/markdown2pdf.in @@ -49,7 +49,7 @@ fi } if [ $runs -lt 3 ] && ((grep -q "LaTeX Warning: There were undefined references." $texname.log) || - (echo "$@" | grep -q -- "--toc")); then + (echo "$@" | grep -q -- "--toc\|--table-of-contents")); then runs=$(($runs + 1)) if grep -q "LaTeX Warning:.*[Cc]itation" $texname.log; then bibtex $texname 2>&1 >bibtex.err |