forked from CryHavoc/dottes
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
|
cd $builddir
|
||||||
|
|
||||||
|
xelatex $output
|
||||||
xelatex $output
|
xelatex $output
|
||||||
xelatex $output
|
xelatex $output
|
||||||
|
|
||||||
|
|
|
@ -107,12 +107,14 @@ ver=`xetex -version | head -n 1`
|
||||||
ver=${ver/*TeX Live /}
|
ver=${ver/*TeX Live /}
|
||||||
ver=${ver/\/*/}
|
ver=${ver/\/*/}
|
||||||
if [ "$ver" == "2009" ]; then
|
if [ "$ver" == "2009" ]; then
|
||||||
|
xelatex -no-pdf $output
|
||||||
xelatex -no-pdf $output
|
xelatex -no-pdf $output
|
||||||
xelatex -no-pdf $output
|
xelatex -no-pdf $output
|
||||||
xdvipdfmx -p a5 -l $outputxdv
|
xdvipdfmx -p a5 -l $outputxdv
|
||||||
else
|
else
|
||||||
xelatex $output
|
xelatex $output
|
||||||
xelatex $output
|
xelatex $output
|
||||||
|
xelatex $output
|
||||||
fi
|
fi
|
||||||
xelatex $outputa4
|
xelatex $outputa4
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue