# HG changeset patch # User Jim Hague # Date 1334329022 -3600 # Node ID 15ce1ecb5ba35ffeba929859d36a4b34f5b7234a # Parent 8f3b50ede59c4eb728734d599604efd5e8dc9ffe Fix page size issue on xetex on Squeeze. The version of xetex on Squeeze does not pass the paper size through to the PDF rendered properly. Following a Googled suggestion, split the rendering into two part, and pass the page size explicitly to the PDF generation. This isn't necessary for the booklet because the output is A4 portrait, the default paper size. diff -r 8f3b50ede59c -r 15ce1ecb5ba3 makeBooke.sh --- a/makeBooke.sh Wed Apr 04 11:52:29 2012 +0100 +++ b/makeBooke.sh Fri Apr 13 15:57:02 2012 +0100 @@ -18,7 +18,8 @@ builddir=$dir/build graphicsdir=$dir/graphics/$1 output=dottes.tex -outputpdf=dottes.pdf +outputxdv=${output/%.tex/.xdv} +outputpdf=${output/%.tex/.pdf} outputa4=dottesona4.tex outputa4pdf=dottesona4.pdf @@ -66,8 +67,12 @@ cp $outputa4 $builddir cd $builddir -xelatex $output -xelatex $output + +# The version of xetex on Squeeze doesn't do pass the A5 landscape instruction +# down to the PDF generator. So split out and do manually. +xelatex -no-pdf $output +xelatex -no-pdf $output +xdvipdfmx -p a5 -l $outputxdv xelatex $outputa4 mv $outputpdf $dir/$1.pdf