Mercurial > dottes
view makeBooklet.sh @ 738:69a7499817c8 build-default-284
On Nook and A5 prints, start a new page with each tune and centre vertically..
A5 mostly did, but ran into trouble with longer comments on a tune.
This may give blank space after tunes where a long comment overflows
onto another page, but I think for now it's better to have each tune
at the top of the page.
Or rather, and this is the other change, in the middle of the page. Centre
the page content for A5 and Nook.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Thu, 12 Oct 2017 14:50:51 +0100 |
parents | 06e140f48543 |
children |
line wrap: on
line source
#!/bin/bash # # Assuming the existance of the A5 PDF of the given Booke, produce the # A4 booklet-that-prints-as-A5. # if [ $# != 1 ]; then echo "Usage: makeBookelet.sh <book dir name>" exit 1 fi dir=`pwd` builddir=$dir/build booke=$1-A5.pdf # This assumes dottesA5.pdf as input. booklet=$dir/dottesA5onA4booklet.tex bookletpdf=$builddir/dottesA5onA4booklet.pdf mkdir -p $builddir cp $booke $builddir/dottesA5.pdf cd $builddir xelatex $booklet mv $bookletpdf $dir/${1}-A5bookletA4.pdf