comparison makeBookeA4.sh @ 255:e8ae4d29b52f

Move Change: notice closer to the bottom of the tune graphic. I was using \begin{center}..\end{center} to centre the tune graphic, followed by the change notice, if any. But this leaves a paragraph gap after the center section and hence a gap between tune graphic and change notice. Change to use figures to position the graphic, include the change notice as a caption, and use {\centering} around the image to centre just the image.
author Jim Hague <jim.hague@acm.org>
date Sat, 15 Jun 2013 22:21:02 +0100
parents bd69673595d0
children 7b98278d6e8b
comparison
equal deleted inserted replaced
254:bd69673595d0 255:e8ae4d29b52f
58 name=`basename $filename .abc` 58 name=`basename $filename .abc`
59 title=`$dir/abcfield.py --field T --latex $filename` 59 title=`$dir/abcfield.py --field T --latex $filename`
60 fixtitle "$title" 60 fixtitle "$title"
61 title=$retval 61 title=$retval
62 62
63 echo -E "\begin{center}" >> $builddir/$output 63 echo -E "\begin{figure}[H]" >> $builddir/$output
64 echo -E "\phantomsection" >> $builddir/$output 64 echo -E "\phantomsection" >> $builddir/$output
65 echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}" >> $builddir/$output 65 echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output
66 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output 66 echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
67 echo -E "\end{center}" >> $builddir/$output
68 67
69 changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` 68 changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"`
70 changetitle="" 69 changetitle=""
71 if [ -n "$changefile" ]; then 70 if [ -n "$changefile" ]; then
72 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` 71 changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile`
73 fixtitle "$changetitle" 72 fixtitle "$changetitle"
74 changetitle=$retval 73 changetitle=$retval
75 changename=`basename $changefile .abc` 74 changename=`basename $changefile .abc`
76 echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $builddir/$output 75 echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $builddir/$output
77 fi 76 fi
77 echo -E "\end{figure}" >> $builddir/$output
78 done 78 done
79 79
80 cat dottes.tex.firstlines >> $builddir/$output 80 cat dottes.tex.firstlines >> $builddir/$output
81 81
82 find $booke -name "*.abc" | sort | 82 find $booke -name "*.abc" | sort |