Mercurial > dottes
comparison dottes.tex @ 708:7da70e8900ab build-default-278
First attempt at adding Tradition below subtitle in web and print.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sun, 08 Oct 2017 17:06:09 +0100 |
parents | 49d72092b45e |
children | 7e9d5852c802 |
comparison
equal
deleted
inserted
replaced
707:1bbf0e27389e | 708:7da70e8900ab |
---|---|
43 \expandafter\@secondoftwo | 43 \expandafter\@secondoftwo |
44 \fi} | 44 \fi} |
45 \makeatother | 45 \makeatother |
46 | 46 |
47 % Show the main tune graphic and optional change. | 47 % Show the main tune graphic and optional change. |
48 % Args are tune name, tune title, tune subtitle, composer, tune graphic | 48 % Args are tune name, tune title, tune subtitle, tradition, composer, |
49 % filename, notes, history. | 49 % tune graphic, filename, notes, history. |
50 \newcommand{\showtune}[7]{% | 50 \newcommand{\showtune}[8]{% |
51 \phantomsection | 51 \phantomsection |
52 \begin{tabularx}{\textwidth}{LCR} | 52 \begin{tabularx}{\textwidth}{LCR} |
53 \addcontentsline{toc}{section}{#2} | 53 \addcontentsline{toc}{section}{#2} |
54 & \hypertarget{#1}{\Large{#2}} & \emph{#4} \tabularnewline | 54 & \hypertarget{#1}{\Large{#2}} & \emph{#5} \tabularnewline |
55 \ifemptyarg{#3}{}{% | 55 \ifemptyarg{#3}{}{% |
56 & #3 & \tabularnewline | 56 & #3 & \tabularnewline |
57 } | 57 } |
58 \ifemptyarg{#4}{}{% | |
59 & \emph{#4} & \tabularnewline | |
60 } | |
58 \multicolumn{3}{c}{% | 61 \multicolumn{3}{c}{% |
59 \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#5}% | 62 \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#6}% |
60 }\tabularnewline | 63 }\tabularnewline |
61 \end{tabularx} | 64 \end{tabularx} |
62 #6 | |
63 | |
64 #7 | 65 #7 |
66 | |
67 #8 | |
65 \vfill | 68 \vfill |
66 } | 69 } |
67 | 70 |
68 % Show the tune first line. Generate table row. | 71 % Show the tune first line. Generate table row. |
69 % Args are the tune name, tune title and the first line graphic filename. | 72 % Args are the tune name, tune title and the first line graphic filename. |