Mercurial > dottes
diff makeBooke.sh @ 115:c4efe8b5eea1
Add internal hyperlinks to the book.
Don't put the links in a different colour, so it still prints well.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Fri, 16 Mar 2012 10:37:48 +0000 |
parents | a63e39fc3410 |
children | 19ba410d891f |
line wrap: on
line diff
--- a/makeBooke.sh Fri Mar 16 10:35:37 2012 +0000 +++ b/makeBooke.sh Fri Mar 16 10:37:48 2012 +0000 @@ -45,7 +45,8 @@ title=`$dir/abctitle.py --latex $filename` name=`basename $filename .abc` echo -E "\begin{center}" >> $builddir/$output - echo -E "\includegraphics[width=\textwidth]{$graphicsdir/$name}" >> $builddir/$output + echo -E "\phantomsection" >> $builddir/$output + echo -E "\hypertarget{$name}{\includegraphics[width=\textwidth]{$graphicsdir/$name}}" >> $builddir/$output echo -E "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output echo -E "\end{center}" >> $builddir/$output done @@ -57,7 +58,7 @@ do title=`$dir/abctitle.py --latex $filename` name=`basename $filename .abc` - echo -E "$title & \raisebox{-.25\height}{\includegraphics[width=0.6\textwidth]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output + echo -E "\hyperlink{$name}{$title} & \raisebox{-.25\height}{\includegraphics[width=0.6\textwidth]{$graphicsdir/firstline-$name}} \\\\" >> $builddir/$output done cat dottes.tex.footer >> $builddir/$output