From 0bc05df1122a535e7bba412062d733c529596fc9 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Fri, 21 Jun 2013 21:20:18 +0100 Subject: [PATCH] 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. --- dottes.tex.a4header | 1 - dottes.tex.a5header | 1 - makeBookeA4.sh | 6 +++--- makeBookeA5.sh | 6 +++--- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dottes.tex.a4header b/dottes.tex.a4header index 69826fd..851b361 100644 --- a/dottes.tex.a4header +++ b/dottes.tex.a4header @@ -3,7 +3,6 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} -\usepackage{float} \usepackage[toc]{multitoc} \usepackage{hyperref} diff --git a/dottes.tex.a5header b/dottes.tex.a5header index ade662a..7e7a47e 100644 --- a/dottes.tex.a5header +++ b/dottes.tex.a5header @@ -3,7 +3,6 @@ \usepackage{graphicx} \usepackage{fancyhdr} \usepackage{longtable} -\usepackage{float} \usepackage[toc]{multitoc} \usepackage{hyperref} diff --git a/makeBookeA4.sh b/makeBookeA4.sh index 5c558a0..4f656a1 100755 --- a/makeBookeA4.sh +++ b/makeBookeA4.sh @@ -66,10 +66,11 @@ find $booke -name "*.abc" | sort | 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 @@ find $booke -name "*.abc" | sort | 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 --git a/makeBookeA5.sh b/makeBookeA5.sh index 4de3896..c0777a7 100755 --- a/makeBookeA5.sh +++ b/makeBookeA5.sh @@ -68,10 +68,11 @@ find $booke -name "*.abc" | sort | 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 @@ find $booke -name "*.abc" | sort | 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