From 552709a281022d298f06b0d4543a69f0de0bc28a Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Fri, 16 Mar 2012 10:40:09 +0000 Subject: [PATCH] Ensure tune graphic is confined to a single page. Set a maximum height for the graphic of 0.9 text area as well as the current target width of the text width. And also keep the aspect ratio. So if the height is small enough, you get full width. Otherwise the graphic is shrunk enough to keep it all on one page. Perhaps one can then go back and edit the tune to fit it into fewer lines. --- makeBooke.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makeBooke.sh b/makeBooke.sh index 23bbb8e..5afaa61 100755 --- a/makeBooke.sh +++ b/makeBooke.sh @@ -46,7 +46,7 @@ find $booke -name "*.abc" | sort | name=`basename $filename .abc` echo -E "\begin{center}" >> $builddir/$output echo -E "\phantomsection" >> $builddir/$output - echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth]{$graphicsdir/$name}}" >> $builddir/$output + echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,height=0.9\textheight,keepaspectratio]{$graphicsdir/$name}}" >> $builddir/$output echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output echo -E "\end{center}" >> $builddir/$output done