# HG changeset patch # User Jim Hague # Date 1371302507 -3600 # Node ID bd69673595d0cc5288f3e36d0c26c8e9222ac0f4 # Parent 1d0cc9a016db35c34516457a0174ae85bdf45b2f 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. diff -r 1d0cc9a016db -r bd69673595d0 makeBookeA4.sh --- a/makeBookeA4.sh Sat Jun 15 00:20:39 2013 +0100 +++ b/makeBookeA4.sh Sat Jun 15 14:21:47 2013 +0100 @@ -95,6 +95,7 @@ xelatex $output xelatex $output +xelatex $output mv $outputpdf $dir/$1-A4.pdf diff -r 1d0cc9a016db -r bd69673595d0 makeBookeA5.sh --- a/makeBookeA5.sh Sat Jun 15 00:20:39 2013 +0100 +++ b/makeBookeA5.sh Sat Jun 15 14:21:47 2013 +0100 @@ -109,10 +109,12 @@ 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