Mercurial > dottes
comparison 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 |
comparison
equal
deleted
inserted
replaced
318:77372a0166fe | 319:cbe9c10b5a3e |
---|---|
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 change title (optional), tune title, tune graphic filename. | 49 % Args are change title (optional), tune title, tune graphic filename. |
50 \newcommand{\showtune}[3][]{% | 50 \newcommand{\showtune}[5]{% |
51 \vfill | 51 \vfill |
52 \begin{center} | 52 \begin{center} |
53 \phantomsection | 53 \phantomsection |
54 \hypertarget{#2}{% | 54 \begin{tabular*}{\textwidth}{@{} p{0.25\textwidth} @{\extracolsep{\fill}} c >{\raggedleft\arraybackslash}p{0.25\textwidth} @{}} |
55 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#3} | 55 & \Large{#1} & \emph{#3} \\ |
56 \ifemptyarg{#2}{}{% | |
57 & #2 & \\ | |
58 }% | |
59 \end{tabular*} | |
60 \hypertarget{#1}{% | |
61 \includegraphics[width=\textwidth,height=0.85\textheight,keepaspectratio]{#4} | |
56 } | 62 } |
57 \addcontentsline{toc}{section}{#2} | 63 \addcontentsline{toc}{section}{#1} |
58 \end{center} | 64 \end{center} |
59 \ifemptyarg{#1}{}{% | 65 \ifemptyarg{#5}{}{% |
60 Change: \hyperlink{#1}{#1} | 66 Change: \hyperlink{#5}{#5} |
61 }% | 67 }% |
62 } | 68 } |
63 | 69 |
64 % Show the tune first line. Generate table row. | 70 % Show the tune first line. Generate table row. |
65 % Args are the tune title and the first line graphic filename. | 71 % Args are the tune title and the first line graphic filename. |