Mercurial > dottes
comparison makeBooke.sh @ 119:15ce1ecb5ba3
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.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 13 Apr 2012 15:57:02 +0100 |
parents | 8f3b50ede59c |
children | 4b0025be9d22 |
comparison
equal
deleted
inserted
replaced
118:8f3b50ede59c | 119:15ce1ecb5ba3 |
---|---|
16 | 16 |
17 booke=$dir/$1 | 17 booke=$dir/$1 |
18 builddir=$dir/build | 18 builddir=$dir/build |
19 graphicsdir=$dir/graphics/$1 | 19 graphicsdir=$dir/graphics/$1 |
20 output=dottes.tex | 20 output=dottes.tex |
21 outputpdf=dottes.pdf | 21 outputxdv=${output/%.tex/.xdv} |
22 outputpdf=${output/%.tex/.pdf} | |
22 outputa4=dottesona4.tex | 23 outputa4=dottesona4.tex |
23 outputa4pdf=dottesona4.pdf | 24 outputa4pdf=dottesona4.pdf |
24 | 25 |
25 mkdir -p $builddir | 26 mkdir -p $builddir |
26 | 27 |
64 cat dottes.tex.footer >> $builddir/$output | 65 cat dottes.tex.footer >> $builddir/$output |
65 | 66 |
66 cp $outputa4 $builddir | 67 cp $outputa4 $builddir |
67 | 68 |
68 cd $builddir | 69 cd $builddir |
69 xelatex $output | 70 |
70 xelatex $output | 71 # The version of xetex on Squeeze doesn't do pass the A5 landscape instruction |
72 # down to the PDF generator. So split out and do manually. | |
73 xelatex -no-pdf $output | |
74 xelatex -no-pdf $output | |
75 xdvipdfmx -p a5 -l $outputxdv | |
71 xelatex $outputa4 | 76 xelatex $outputa4 |
72 | 77 |
73 mv $outputpdf $dir/$1.pdf | 78 mv $outputpdf $dir/$1.pdf |
74 mv $outputa4pdf $dir/${1}-booklet.pdf | 79 mv $outputa4pdf $dir/${1}-booklet.pdf |
75 | 80 |