Mercurial > dottes
comparison makeBooklet.sh @ 266:06e140f48543
Revise scripts for building printed Bookes.
A lot of stuff was being duplicated between different page size. Consolidate where
possible, and in particular put as much into a single source file (dottes.tex) as
possible. Making a single Booke is now potentially quicker, as the tune pages
don't necessarily have to be regenerate every time.
| author | Jim Hague <jim.hague@acm.org> |
|---|---|
| date | Wed, 26 Jun 2013 23:37:45 +0100 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 265:3e5335396f48 | 266:06e140f48543 |
|---|---|
| 1 #!/bin/bash | |
| 2 # | |
| 3 # Assuming the existance of the A5 PDF of the given Booke, produce the | |
| 4 # A4 booklet-that-prints-as-A5. | |
| 5 # | |
| 6 | |
| 7 if [ $# != 1 ]; then | |
| 8 echo "Usage: makeBookelet.sh <book dir name>" | |
| 9 exit 1 | |
| 10 fi | |
| 11 | |
| 12 dir=`pwd` | |
| 13 | |
| 14 builddir=$dir/build | |
| 15 | |
| 16 booke=$1-A5.pdf | |
| 17 # This assumes dottesA5.pdf as input. | |
| 18 booklet=$dir/dottesA5onA4booklet.tex | |
| 19 bookletpdf=$builddir/dottesA5onA4booklet.pdf | |
| 20 | |
| 21 mkdir -p $builddir | |
| 22 | |
| 23 cp $booke $builddir/dottesA5.pdf | |
| 24 | |
| 25 cd $builddir | |
| 26 xelatex $booklet | |
| 27 mv $bookletpdf $dir/${1}-A5bookletA4.pdf |
