comparison dottes.tex @ 315:b4d568b70c33

Revise first line table. Treat the tune title as a paragraph (ragged right). Set the column widths to give a wider and hence larger first line tune graphic. Keep using the cropped first line graphic, and introduce our own gaps between lines to keep the tune separations clear. I did look at using the grpahics borders, but that gives left and right margins too.
author Jim Hague <jim.hague@acm.org>
date Fri, 12 Jul 2013 14:27:41 +0100
parents 8bc92e044e0a
children 01399eb43c0d
comparison
equal deleted inserted replaced
314:f80bd1e919f7 315:b4d568b70c33
1 \input{docclass.tex} 1 \input{docclass.tex}
2 2
3 \usepackage{array}
3 \usepackage{color} 4 \usepackage{color}
4 \usepackage{fontspec} 5 \usepackage{fontspec}
5 \usepackage[margin=1in]{geometry} 6 \usepackage[margin=1in]{geometry}
6 \usepackage{graphicx} 7 \usepackage{graphicx}
7 \usepackage{fancyhdr} 8 \usepackage{fancyhdr}
62 63
63 % Show the tune first line. Generate table row. 64 % Show the tune first line. Generate table row.
64 % Args are the tune title and the first line graphic filename. 65 % Args are the tune title and the first line graphic filename.
65 \newcommand{\showfirstline}[2]{% 66 \newcommand{\showfirstline}[2]{%
66 \hyperlink{#1}{#1} & % 67 \hyperlink{#1}{#1} & %
67 \raisebox{-.25\height}{\includegraphics[width=0.65\textwidth,height=1.3cm]{#2}} \\ 68 \raisebox{-.4\height}{\includegraphics[width=0.77\textwidth]{#2}} \\
68 } 69 }
69 70
70 % ----- Paper size document setup 71 % ----- Paper size document setup
71 72
72 \input{docsetup.tex} 73 \input{docsetup.tex}
185 186
186 You know the feeling. Everyone has just launched into a well-loved tune. 187 You know the feeling. Everyone has just launched into a well-loved tune.
187 You've heard it before, but don't remember the name. So here's a list of 188 You've heard it before, but don't remember the name. So here's a list of
188 tune first lines to help you figure out what it is in time to join in. 189 tune first lines to help you figure out what it is in time to join in.
189 190
190 \setlength\LTleft{-5pt} 191 {\renewcommand{\arraystretch}{2.5}
192 \setlength\LTleft{0pt}
191 \setlength\LTright{\fill} 193 \setlength\LTright{\fill}
192 \begin{longtable}{lr} 194 \begin{longtable}{@{}>{\raggedright\arraybackslash}m{0.2\textwidth}r@{}}
193 \input{firstlines.tex} 195 \input{firstlines.tex}
194 \end{longtable} 196 \end{longtable}
197 }
195 198
196 % ----- Back cover page. A plain purple page. 199 % ----- Back cover page. A plain purple page.
197 200
198 \backmatter 201 \backmatter
199 202