Mercurial > dottes
comparison makeBooke.sh @ 120:4b0025be9d22
Try to cope with Squeeze and Sid xetex problems.
On Sid, "xdvipdfmx -p a5 -l" outputs its first page in A4 portrait.
So guess which we're using and use the appropriate invocation.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 13 Apr 2012 16:20:43 +0100 |
parents | 15ce1ecb5ba3 |
children | 295ba8275ab4 |
comparison
equal
deleted
inserted
replaced
119:15ce1ecb5ba3 | 120:4b0025be9d22 |
---|---|
68 | 68 |
69 cd $builddir | 69 cd $builddir |
70 | 70 |
71 # The version of xetex on Squeeze doesn't do pass the A5 landscape instruction | 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. | 72 # down to the PDF generator. So split out and do manually. |
73 xelatex -no-pdf $output | 73 # |
74 xelatex -no-pdf $output | 74 # And, sigh, this fails on Sid. The first page comes out as A4 portrait. |
75 xdvipdfmx -p a5 -l $outputxdv | 75 # So try to work out which we are using and run the appropriate command. |
76 ver=`xetex -version | head -n 1` | |
77 ver=${ver/*TeX Live /} | |
78 ver=${ver/\/*/} | |
79 if [ "$ver" == "2009" ]; then | |
80 xelatex -no-pdf $output | |
81 xelatex -no-pdf $output | |
82 xdvipdfmx -p a5 -l $outputxdv | |
83 else | |
84 xelatex $output | |
85 xelatex $output | |
86 fi | |
76 xelatex $outputa4 | 87 xelatex $outputa4 |
77 | 88 |
78 mv $outputpdf $dir/$1.pdf | 89 mv $outputpdf $dir/$1.pdf |
79 mv $outputa4pdf $dir/${1}-booklet.pdf | 90 mv $outputa4pdf $dir/${1}-booklet.pdf |
80 | 91 |