Add internal hyperlinks to the book.

Don't put the links in a different colour, so it still prints well.
This commit is contained in:
Jim Hague 2012-03-16 10:37:48 +00:00
parent ffd3f18fcc
commit 694eac1077
2 changed files with 13 additions and 2 deletions

View File

@ -5,6 +5,16 @@
\usepackage{fancyhdr} \usepackage{fancyhdr}
\usepackage{longtable} \usepackage{longtable}
\usepackage{hyperref}
\hypersetup{
bookmarks=true,%
colorlinks=true,%
citecolor=black,%
filecolor=black,%
linkcolor=black,%
urlcolor=black
}
% ----- Common variables % ----- Common variables
\def \build {\input{buildno.txt}} \def \build {\input{buildno.txt}}

View File

@ -45,7 +45,8 @@ find $booke -name "*.abc" | sort |
title=`$dir/abctitle.py --latex $filename` title=`$dir/abctitle.py --latex $filename`
name=`basename $filename .abc` name=`basename $filename .abc`
echo -E "\begin{center}" >> $builddir/$output 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 "\addcontentsline{toc}{subsection}{$title}" >> $builddir/$output
echo -E "\end{center}" >> $builddir/$output echo -E "\end{center}" >> $builddir/$output
done done
@ -57,7 +58,7 @@ find $booke -name "*.abc" | sort |
do do
title=`$dir/abctitle.py --latex $filename` title=`$dir/abctitle.py --latex $filename`
name=`basename $filename .abc` 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 done
cat dottes.tex.footer >> $builddir/$output cat dottes.tex.footer >> $builddir/$output