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:
parent
1730b558ae
commit
29e716ff4e
|
@ -93,6 +93,7 @@ cat dottes.tex.footer >> $builddir/$output
|
|||
|
||||
cd $builddir
|
||||
|
||||
xelatex $output
|
||||
xelatex $output
|
||||
xelatex $output
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue