view makeBooklet.sh @ 282:ced1d1ba42f6

Various revisions of printed book presentation. 1. Purple background on the front and and new blank back pages. 2. UK English for hyphenation and date presentation. 3. Dedication and 'About Havoc' section. 4. Footer just page number in centre of page. 5. Revised copyright discussion. 6. Since it's a book, make content, intro and first lines to chapters. And prompt individual tunes to sections. 7. Omit 'Tunes' chapter heading. It doesn't look good in A5.
author Jim Hague <jim.hague@acm.org>
date Fri, 05 Jul 2013 18:56:34 +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