From 29e716ff4ec88790a53932bb32354202b45d1fd8 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Sat, 15 Jun 2013 14:21:47 +0100 Subject: [PATCH] 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. --- makeBookeA4.sh | 1 + makeBookeA5.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/makeBookeA4.sh b/makeBookeA4.sh index 79a47a4..8291e0c 100755 --- a/makeBookeA4.sh +++ b/makeBookeA4.sh @@ -93,6 +93,7 @@ cat dottes.tex.footer >> $builddir/$output cd $builddir +xelatex $output xelatex $output xelatex $output diff --git a/makeBookeA5.sh b/makeBookeA5.sh index e6b3c14..ad33820 100755 --- a/makeBookeA5.sh +++ b/makeBookeA5.sh @@ -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