Mercurial > dottes
diff dottes.tex @ 319:cbe9c10b5a3e
Render tune title, subtitle and composer in Latex/HTML and not in the image.
This way the titles remains a constant size even if the image needs to be scaled.
And we have that text appearance under our control.
I can't find a way of switching off the tune title in abcm2ps, and have worked around
by setting the title format to Y0. Y is not a defined ABC header and is not found in
any Dottes tune.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Tue, 16 Jul 2013 16:35:07 +0100 |
parents | 01399eb43c0d |
children | c0262e58abf6 |
line wrap: on
line diff
--- a/dottes.tex Tue Jul 16 16:27:49 2013 +0100 +++ b/dottes.tex Tue Jul 16 16:35:07 2013 +0100 @@ -47,17 +47,23 @@ % Show the main tune graphic and optional change. % Args are change title (optional), tune title, tune graphic filename. -\newcommand{\showtune}[3][]{% +\newcommand{\showtune}[5]{% \vfill \begin{center} \phantomsection - \hypertarget{#2}{% - \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#3} + \begin{tabular*}{\textwidth}{@{} p{0.25\textwidth} @{\extracolsep{\fill}} c >{\raggedleft\arraybackslash}p{0.25\textwidth} @{}} + & \Large{#1} & \emph{#3} \\ + \ifemptyarg{#2}{}{% + & #2 & \\ + }% + \end{tabular*} + \hypertarget{#1}{% + \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#4} } - \addcontentsline{toc}{section}{#2} + \addcontentsline{toc}{section}{#1} \end{center} - \ifemptyarg{#1}{}{% - Change: \hyperlink{#1}{#1} + \ifemptyarg{#5}{}{% + Change: \hyperlink{#5}{#5} }% }