Mercurial > dottes
comparison dottes.tex @ 328:8596b328356d
Make target of hyperlink the tune title.
A slight rearrangement of the tune macro.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Mon, 05 Aug 2013 13:39:43 +0100 |
parents | 55afb58d4a9a |
children | 48eb1da4a4c8 |
comparison
equal
deleted
inserted
replaced
327:55afb58d4a9a | 328:8596b328356d |
---|---|
50 % filename, change name, change title, credit. | 50 % filename, change name, change title, credit. |
51 \newcommand{\showtune}[8]{% | 51 \newcommand{\showtune}[8]{% |
52 \vfill | 52 \vfill |
53 \begin{center} | 53 \begin{center} |
54 \phantomsection | 54 \phantomsection |
55 \addcontentsline{toc}{section}{#2} | |
55 \begin{tabular*}{\textwidth}{@{} p{0.25\textwidth} @{\extracolsep{\fill}} c >{\raggedleft\arraybackslash}p{0.25\textwidth} @{}} | 56 \begin{tabular*}{\textwidth}{@{} p{0.25\textwidth} @{\extracolsep{\fill}} c >{\raggedleft\arraybackslash}p{0.25\textwidth} @{}} |
56 & \Large{#2} & \emph{#4} \\ | 57 & \hypertarget{#1}{\Large{#2}} & \emph{#4} \\ |
57 \ifemptyarg{#3}{}{% | 58 \ifemptyarg{#3}{}{% |
58 & #3 & \\ | 59 & #3 & \\ |
59 }% | 60 }% |
60 \end{tabular*} | 61 \end{tabular*} |
61 \hypertarget{#1}{% | 62 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#5} |
62 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#5} | |
63 } | |
64 \addcontentsline{toc}{section}{#2} | |
65 \end{center} | 63 \end{center} |
66 \ifemptyarg{#8}{}{% | 64 \ifemptyarg{#8}{}{% |
67 From {#8}. | 65 From {#8}. |
68 }% | 66 }% |
69 \ifemptyarg{#6}{}{% | 67 \ifemptyarg{#6}{}{% |