# HG changeset patch # User Jim Hague # Date 1371846018 -3600 # Node ID 1d9a6aaba9144e9beebeea16425196124c87f5fa # Parent 7b98278d6e8b0a45af333265f373134b3f3f478c Revert attempt at getting Change: notices closer to music in print. My previous attempt appeared to work, but didn't actually centre graphics if the graphic was less than page width. Revert, and instead add a \vfill before the tune to leave more blank space between multiples tunes on a page, It's more obvious then which tune the change belongs to. Not idea, but the best I can do for now. diff -r 7b98278d6e8b -r 1d9a6aaba914 dottes.tex.a4header --- a/dottes.tex.a4header Fri Jun 21 20:00:54 2013 +0100 +++ b/dottes.tex.a4header Fri Jun 21 21:20:18 2013 +0100 @@ -3,7 +3,6 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} -\usepackage{float} \usepackage[toc]{multitoc} \usepackage{hyperref} diff -r 7b98278d6e8b -r 1d9a6aaba914 dottes.tex.a5header --- a/dottes.tex.a5header Fri Jun 21 20:00:54 2013 +0100 +++ b/dottes.tex.a5header Fri Jun 21 21:20:18 2013 +0100 @@ -3,7 +3,6 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} -\usepackage{float} \usepackage[toc]{multitoc} \usepackage{hyperref} diff -r 7b98278d6e8b -r 1d9a6aaba914 makeBookeA4.sh --- a/makeBookeA4.sh Fri Jun 21 20:00:54 2013 +0100 +++ b/makeBookeA4.sh Fri Jun 21 21:20:18 2013 +0100 @@ -66,10 +66,11 @@ fixtitle "$title" title=$retval - echo -E "\begin{figure}[H]" >> $builddir/$output + echo -E "\vfill \begin{center}" >> $builddir/$output echo -E "\phantomsection" >> $builddir/$output - echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output + echo -E "\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="" @@ -80,7 +81,6 @@ 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 diff -r 7b98278d6e8b -r 1d9a6aaba914 makeBookeA5.sh --- a/makeBookeA5.sh Fri Jun 21 20:00:54 2013 +0100 +++ b/makeBookeA5.sh Fri Jun 21 21:20:18 2013 +0100 @@ -68,10 +68,11 @@ fixtitle "$title" title=$retval - echo -E "\begin{figure}[H]" >> $builddir/$output + echo -E "\vfill \begin{center}" >> $builddir/$output echo -E "\phantomsection" >> $builddir/$output - echo -E "{\centering \hypertarget{$name}{\includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{$graphicsdir/$name}}}" >> $builddir/$output + echo -E "\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="" @@ -82,7 +83,6 @@ 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