Run Latex a third time to get the page numbers right.

If the page of contents goes over a page, a third run of Latex is
necessary to get the page numbers right.
This commit is contained in:
Jim Hague 2013-06-15 14:21:47 +01:00
parent 1730b558ae
commit 29e716ff4e
2 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,7 @@ cat dottes.tex.footer >> $builddir/$output
cd $builddir
xelatex $output
xelatex $output
xelatex $output

View File

@ -107,12 +107,14 @@ ver=`xetex -version | head -n 1`
ver=${ver/*TeX Live /}
ver=${ver/\/*/}
if [ "$ver" == "2009" ]; then
xelatex -no-pdf $output
xelatex -no-pdf $output
xelatex -no-pdf $output
xdvipdfmx -p a5 -l $outputxdv
else
xelatex $output
xelatex $output
xelatex $output
fi
xelatex $outputa4