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
This commit is contained in:
parent
48d67d0d1f
commit
9e4c28d5f4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue