comparison dottes.tex @ 326:27f29e8aafea

Add --contains flag to abcfield.py. Currently we rely on any N: field with a Change: subnotice being the first N: field. Add --contains field to abcfield.py to remove this restriction. Also use it to extract new subfield Credit: and add that if present to the tune information in print and on web.
author Jim Hague <jim.hague@acm.org>
date Sun, 04 Aug 2013 22:09:25 +0100
parents 21615733c3f3
children 55afb58d4a9a
comparison
equal deleted inserted replaced
325:21615733c3f3 326:27f29e8aafea
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 name, tune title, tune subtitle, composer, tune graphic 49 % Args are tune name, tune title, tune subtitle, composer, tune graphic
50 % filename, change name, change title. 50 % filename, change name, change title, credit.
51 \newcommand{\showtune}[7]{% 51 \newcommand{\showtune}[8]{%
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{#2} & \emph{#4} \\ 56 & \Large{#2} & \emph{#4} \\
61 \hypertarget{#1}{% 61 \hypertarget{#1}{%
62 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#5} 62 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#5}
63 } 63 }
64 \addcontentsline{toc}{section}{#2} 64 \addcontentsline{toc}{section}{#2}
65 \end{center} 65 \end{center}
66 \ifemptyarg{#8}{}{%
67 From {#8}.
68 }%
66 \ifemptyarg{#6}{}{% 69 \ifemptyarg{#6}{}{%
67 Change: \hyperlink{#6}{#7} 70 Change: \hyperlink{#6}{#7}.
68 }% 71 }%
69 } 72 }
70 73
71 % Show the tune first line. Generate table row. 74 % Show the tune first line. Generate table row.
72 % Args are the tune name, tune title and the first line graphic filename. 75 % Args are the tune name, tune title and the first line graphic filename.