Mercurial > dottes
diff makeBookeTunePages.sh @ 312:8bc92e044e0a
Move tune and first line inclusion code into macros.
Also use tune title, not name, as hyperlink targets. This removes the need to pass
the name into the macros.
| author | Jim Hague <jim.hague@acm.org> |
|---|---|
| date | Fri, 12 Jul 2013 11:36:14 +0100 |
| parents | c3b300378738 |
| children | cbe9c10b5a3e |
line wrap: on
line diff
--- a/makeBookeTunePages.sh Thu Jul 11 17:52:11 2013 +0100 +++ b/makeBookeTunePages.sh Fri Jul 12 11:36:14 2013 +0100 @@ -42,21 +42,14 @@ fixtitle "$title" title=$retval - echo -E "\vfill \begin{center}" >> $tunesoutput - echo -E "\phantomsection" >> $tunesoutput - echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{$graphicsdir/$name}}" >> $tunesoutput - echo -E "\addcontentsline{toc}{section}{$title}" >> $tunesoutput - echo -E "\end{center}" >> $tunesoutput - changefile=`$dir/abcfield.py --field N $filename | grep "Change:" | sed -e "s/Change: *//"` changetitle="" if [ -n "$changefile" ]; then changetitle=`$dir/abcfield.py --field T --latex $booke/$changefile` fixtitle "$changetitle" changetitle=$retval - changename=`basename $changefile .abc` - echo -E "Change: \hyperlink{$changename}{$changetitle}" >> $tunesoutput fi + echo -E "\showtune[$changetitle]{$title}{$graphicsdir/$name}" >> $tunesoutput - echo -E "\hyperlink{$name}{$title} & \raisebox{-.25\height}{\includegraphics[width=0.65\textwidth,height=1.3cm]{$graphicsdir/firstline-$name}} \\\\" >> $indexoutput + echo -E "\showfirstline{$title}{$graphicsdir/firstline-$name}" >> $indexoutput done
