# HG changeset patch # User Jim Hague # Date 1331894409 0 # Node ID 19ba410d891fc14f6b71f6151ce2293f2a05d0a3 # Parent c4efe8b5eea1972c3fcefd2b276cef8b21448392 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. diff -r c4efe8b5eea1 -r 19ba410d891f makeBooke.sh --- 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