view makeBooklet.sh @ 650:9982077ac9b2

Update tune format files. In the main one, just remove a couple of now deprecated settings that did nothing anyway. For the web format, which is actually the format used to generate the downloadable PDFs, bring it into line with the main format but leave the margins at the default settings. Also remove the deprecated settings.
author Jim Hague <jim.hague@acm.org>
date Thu, 10 Nov 2016 00:47:55 +0000
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