comparison dottes.tex @ 323:1a240d1e2032

Go back to using the filename as the hyperlink name. Latex hyperlinks don't cope with having accented characters in the hyperlink name.
author Jim Hague <jim.hague@acm.org>
date Thu, 18 Jul 2013 15:37:23 +0100
parents c0262e58abf6
children c1c7e993a180
comparison
equal deleted inserted replaced
322:b4a0161e8870 323:1a240d1e2032
44 \expandafter\@secondoftwo 44 \expandafter\@secondoftwo
45 \fi} 45 \fi}
46 \makeatother 46 \makeatother
47 47
48 % Show the main tune graphic and optional change. 48 % Show the main tune graphic and optional change.
49 % Args are tune title, tune subtitle, composer, tune graphic filename, 49 % Args are tune name, tune title, tune subtitle, composer, tune graphic
50 % change title. 50 % filename, change name, change title.
51 \newcommand{\showtune}[5]{% 51 \newcommand{\showtune}[7]{%
52 \vfill 52 \vfill
53 \begin{center} 53 \begin{center}
54 \phantomsection 54 \phantomsection
55 \begin{tabular*}{\textwidth}{@{} p{0.25\textwidth} @{\extracolsep{\fill}} c >{\raggedleft\arraybackslash}p{0.25\textwidth} @{}} 55 \begin{tabular*}{\textwidth}{@{} p{0.25\textwidth} @{\extracolsep{\fill}} c >{\raggedleft\arraybackslash}p{0.25\textwidth} @{}}
56 & \Large{#1} & \emph{#3} \\ 56 & \Large{#2} & \emph{#4} \\
57 \ifemptyarg{#2}{}{% 57 \ifemptyarg{#3}{}{%
58 & #2 & \\ 58 & #3 & \\
59 }% 59 }%
60 \end{tabular*} 60 \end{tabular*}
61 \hypertarget{#1}{% 61 \hypertarget{#1}{%
62 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#4} 62 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#5}
63 } 63 }
64 \addcontentsline{toc}{section}{#1} 64 \addcontentsline{toc}{section}{#2}
65 \end{center} 65 \end{center}
66 \ifemptyarg{#5}{}{% 66 \ifemptyarg{#6}{}{%
67 Change: \hyperlink{#5}{#5} 67 Change: \hyperlink{#6}{#7}
68 }% 68 }%
69 } 69 }
70 70
71 % Show the tune first line. Generate table row. 71 % Show the tune first line. Generate table row.
72 % Args are the tune title and the first line graphic filename. 72 % Args are the tune name, tune title and the first line graphic filename.
73 \newcommand{\showfirstline}[2]{% 73 \newcommand{\showfirstline}[3]{%
74 \hyperlink{#1}{#1} & % 74 \hyperlink{#1}{#2} & %
75 \raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#2}} \\ 75 \raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#3}} \\
76 } 76 }
77 77
78 % ----- Paper size document setup 78 % ----- Paper size document setup
79 79
80 \input{docsetup.tex} 80 \input{docsetup.tex}