diff 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
line wrap: on
line diff
--- a/dottes.tex	Sun Aug 04 21:28:05 2013 +0100
+++ b/dottes.tex	Sun Aug 04 22:09:25 2013 +0100
@@ -47,8 +47,8 @@
 
 % Show the main tune graphic and optional change.
 % Args are tune name, tune title, tune subtitle, composer, tune graphic
-% filename, change name, change title.
-\newcommand{\showtune}[7]{%
+% filename, change name, change title, credit.
+\newcommand{\showtune}[8]{%
   \vfill
   \begin{center}
   \phantomsection
@@ -63,8 +63,11 @@
   }
   \addcontentsline{toc}{section}{#2}
   \end{center}
+  \ifemptyarg{#8}{}{%
+    From {#8}.
+  }%
   \ifemptyarg{#6}{}{%
-    Change: \hyperlink{#6}{#7}
+    Change: \hyperlink{#6}{#7}.
   }%
 }