changeset 116:19ba410d891f

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.
author Jim Hague <jim.hague@acm.org>
date Fri, 16 Mar 2012 10:40:09 +0000
parents c4efe8b5eea1
children 9ccdb7c3ec45
files makeBooke.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/makeBooke.sh	Fri Mar 16 10:37:48 2012 +0000
+++ b/makeBooke.sh	Fri Mar 16 10:40:09 2012 +0000
@@ -46,7 +46,7 @@
         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