changeset 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 3eca51ff33a5
files dottes.tex.a4header dottes.tex.a5header makeBookeA4.sh makeBookeA5.sh
diffstat 4 files changed, 8 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dottes.tex.a4header	Sat Jun 15 14:21:47 2013 +0100
+++ b/dottes.tex.a4header	Sat Jun 15 22:21:02 2013 +0100
@@ -3,6 +3,7 @@
 \usepackage{graphicx}
 \usepackage{fancyhdr}
 \usepackage{longtable}
+\usepackage{float}
 
 \usepackage{hyperref}
 \hypersetup{
--- a/dottes.tex.a5header	Sat Jun 15 14:21:47 2013 +0100
+++ b/dottes.tex.a5header	Sat Jun 15 22:21:02 2013 +0100
@@ -3,6 +3,7 @@
 \usepackage{graphicx}
 \usepackage{fancyhdr}
 \usepackage{longtable}
+\usepackage{float}
 
 \usepackage{hyperref}
 \hypersetup{
--- a/makeBookeA4.sh	Sat Jun 15 14:21:47 2013 +0100
+++ b/makeBookeA4.sh	Sat Jun 15 22:21:02 2013 +0100
@@ -60,11 +60,10 @@
         fixtitle "$title"
         title=$retval
 
-        echo -E "\begin{center}" >> $builddir/$output
+        echo -E "\begin{figure}[H]" >> $builddir/$output
         echo -E "\phantomsection" >> $builddir/$output
-        echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}" >> $builddir/$output
+        echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output
         echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
-        echo -E "\end{center}" >> $builddir/$output
 
         changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"`
         changetitle=""
@@ -75,6 +74,7 @@
             changename=`basename $changefile .abc`
             echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $builddir/$output
         fi
+        echo -E "\end{figure}" >> $builddir/$output
     done
 
 cat dottes.tex.firstlines >> $builddir/$output
--- a/makeBookeA5.sh	Sat Jun 15 14:21:47 2013 +0100
+++ b/makeBookeA5.sh	Sat Jun 15 22:21:02 2013 +0100
@@ -63,11 +63,10 @@
         title=$retval
 
         echo -E "\newpage" >> $builddir/$output
-        echo -E "\begin{center}" >> $builddir/$output
+        echo -E "\begin{figure}[H]" >> $builddir/$output
         echo -E "\phantomsection" >> $builddir/$output
-        echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{$graphicsdir/$name}}" >> $builddir/$output
+        echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output
         echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
-        echo -E "\end{center}" >> $builddir/$output
 
         changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"`
         changetitle=""
@@ -78,6 +77,7 @@
             changename=`basename $changefile .abc`
             echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $builddir/$output
         fi
+        echo -E "\end{figure}" >> $builddir/$output
     done
 
 cat dottes.tex.firstlines >> $builddir/$output