comparison dottes.tex @ 712:7e9d5852c802

Show parts at top left of tune.
author Jim Hague <jim.hague@acm.org>
date Sun, 08 Oct 2017 20:34:49 +0100
parents 7da70e8900ab
children e338d757fdca
comparison
equal deleted inserted replaced
711:461883995d3d 712:7e9d5852c802
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, tradition, composer, 48 % Args are tune name, tune title, tune subtitle, tradition, composer, parts,
49 % tune graphic, filename, notes, history. 49 % tune graphic, filename, notes, history.
50 \newcommand{\showtune}[8]{% 50 \newcommand{\showtune}[9]{%
51 \phantomsection 51 \phantomsection
52 \begin{tabularx}{\textwidth}{LCR} 52 \begin{tabularx}{\textwidth}{LCR}
53 \addcontentsline{toc}{section}{#2} 53 #6 & \hypertarget{#1}{\Large{#2}} & \emph{#5} \tabularnewline
54 & \hypertarget{#1}{\Large{#2}} & \emph{#5} \tabularnewline
55 \ifemptyarg{#3}{}{% 54 \ifemptyarg{#3}{}{%
56 & #3 & \tabularnewline 55 & #3 & \tabularnewline
57 } 56 }
58 \ifemptyarg{#4}{}{% 57 \ifemptyarg{#4}{}{%
59 & \emph{#4} & \tabularnewline 58 & \emph{#4} & \tabularnewline
60 } 59 }
61 \multicolumn{3}{c}{% 60 \multicolumn{3}{c}{%
62 \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#6}% 61 \includegraphics[width=\textwidth,height=0.8\textheight,keepaspectratio]{#7}%
63 }\tabularnewline 62 }\tabularnewline
64 \end{tabularx} 63 \end{tabularx}
65 #7 64 \addcontentsline{toc}{section}{#2}
66
67 #8 65 #8
66
67 #9
68 \vfill 68 \vfill
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 name, tune title and the first line graphic filename. 72 % Args are the tune name, tune title and the first line graphic filename.