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.
This commit is contained in:
Jim Hague 2012-03-16 10:40:09 +00:00
parent 694eac1077
commit 552709a281
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ find $booke -name "*.abc" | sort |
name=`basename $filename .abc` name=`basename $filename .abc`
echo -E "\begin{center}" >> $builddir/$output echo -E "\begin{center}" >> $builddir/$output
echo -E "\phantomsection" >> $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 "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
echo -E "\end{center}" >> $builddir/$output echo -E "\end{center}" >> $builddir/$output
done done