Mercurial > dottes
annotate dottes.tex.a5header @ 230:4800e1f12632
Add a flashier title page to the LaTeX documents.
| author | Jim Hague <jim.hague@acm.org> | 
|---|---|
| date | Sat, 23 Feb 2013 13:48:06 +0000 | 
| parents | f606da6f8718 | 
| children | 440172d9f5d6 | 
| rev | line source | 
|---|---|
| 
201
 
f606da6f8718
Revert Havoc font change. Doesn't work on build machine.
 
Jim Hague <jim.hague@acm.org> 
parents: 
194 
diff
changeset
 | 
1 \documentclass[a5paper,landscape,11pt]{article} | 
| 
118
 
8f3b50ede59c
Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
 
Jim Hague <jim.hague@acm.org> 
parents: 
117 
diff
changeset
 | 
2 \usepackage{fontspec} | 
| 13 | 3 \usepackage{graphicx} | 
| 
40
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
4 \usepackage{fancyhdr} | 
| 
50
 
e666306c5ab1
Add list of tune first lines.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
40 
diff
changeset
 | 
5 \usepackage{longtable} | 
| 
230
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
6 \usepackage[svgnames]{xcolor} | 
| 
40
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
7 | 
| 
115
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
8 \usepackage{hyperref} | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
9 \hypersetup{ | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
10 bookmarks=true,% | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
11 colorlinks=true,% | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
12 citecolor=black,% | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
13 filecolor=black,% | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
14 linkcolor=black,% | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
15 urlcolor=black | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
16 } | 
| 
 
c4efe8b5eea1
Add internal hyperlinks to the book.
 
Jim Hague <jim.hague@acm.org> 
parents: 
50 
diff
changeset
 | 
17 | 
| 
40
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
18 % ----- Common variables | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
19 | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
20 \def \build {\input{buildno.txt}} | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
21 | 
| 
118
 
8f3b50ede59c
Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
 
Jim Hague <jim.hague@acm.org> 
parents: 
117 
diff
changeset
 | 
22 % ----- Appearance | 
| 
 
8f3b50ede59c
Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
 
Jim Hague <jim.hague@acm.org> 
parents: 
117 
diff
changeset
 | 
23 | 
| 
 
8f3b50ede59c
Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
 
Jim Hague <jim.hague@acm.org> 
parents: 
117 
diff
changeset
 | 
24 %\setmainfont{Century Schoolbook L} | 
| 
 
8f3b50ede59c
Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
 
Jim Hague <jim.hague@acm.org> 
parents: 
117 
diff
changeset
 | 
25 \setmainfont{Times New Roman} | 
| 
 
8f3b50ede59c
Switch to XeTeX to render. Opens up random OpenType fonts and UTF-8.
 
Jim Hague <jim.hague@acm.org> 
parents: 
117 
diff
changeset
 | 
26 | 
| 
40
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
27 % ----- Page setup | 
| 13 | 28 | 
| 29 \setlength{\parindent}{0pt} | |
| 30 | |
| 
122
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
31 % Adjust margins for A5 landscape. Increase width by 4cm and height by 4cm. | 
| 
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
32 \addtolength{\textwidth}{4cm} | 
| 
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
33 \addtolength{\hoffset}{-2cm} | 
| 
19
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
34 | 
| 
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
35 \addtolength{\textheight}{4cm} | 
| 
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
36 \addtolength{\voffset}{-2cm} | 
| 
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
37 | 
| 
122
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
38 % Move the top margin up a further cm. | 
| 
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
39 \addtolength{\textheight}{1cm} | 
| 
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
40 \addtolength{\voffset}{-1cm} | 
| 
 
295ba8275ab4
Make output larger where possible.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
118 
diff
changeset
 | 
41 | 
| 13 | 42 % ----- | 
| 43 | |
| 
181
 
6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
176 
diff
changeset
 | 
44 % Don't show section numbers. | 
| 
 
6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
176 
diff
changeset
 | 
45 \setcounter{secnumdepth}{-1} | 
| 
 
6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
176 
diff
changeset
 | 
46 | 
| 
 
6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
176 
diff
changeset
 | 
47 % ----- | 
| 
 
6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
176 
diff
changeset
 | 
48 | 
| 
230
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
49 % Title page | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
50 \newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
51 \newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
52 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
53 \newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
54 \centering % Center all text | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
55 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
56 \def\CP{\textit{\Huge Ye Crie Havock Booke of Dottes}} % Title | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
57 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
58 \settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
59 {\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
60 \textcolor{Sienna}{\CP} \\[\baselineskip] % Print title | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
61 {\color{RosyBrown}\Large \input{subtitle.txt}} \\ % Tagline or further description | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
62 {\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
63 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
64 \vfill % Whitespace between the title and the author name | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
65 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
66 {\Large\textbf{Cry Havoc}}\\ % Author name | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
67 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
68 \vfill % Whitespace between the author name and the rest | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
69 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
70 \today % Date published | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
71 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
72 \endgroup} | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
73 | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
74 % ----- | 
| 
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
75 | 
| 13 | 76 \begin{document} | 
| 77 | |
| 
40
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
78 % ----- Headers and footers | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
79 | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
80 \pagestyle{fancyplain} | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
81 \fancyhf{} | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
82 \lfoot{Issue \build} | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
83 \rfoot{\thepage} | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
84 \renewcommand{\headrulewidth}{0pt} | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
85 | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
86 % ----- Title page and contents | 
| 
 
93955def7313
Revise page footers, and add build number.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
39 
diff
changeset
 | 
87 | 
| 
230
 
4800e1f12632
Add a flashier title page to the LaTeX documents.
 
Jim Hague <jim.hague@acm.org> 
parents: 
201 
diff
changeset
 | 
88 \titleBC | 
| 13 | 89 | 
| 
19
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
90 \newpage | 
| 
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
91 | 
| 13 | 92 \tableofcontents | 
| 93 | |
| 
19
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
94 \newpage | 
| 
 
305e701c5dc2
Set output to A5 landscape. Begin content and content on fresh page.
 
Jim Hague <jim.hague@acm.org> 
parents: 
16 
diff
changeset
 | 
95 | 
| 13 | 96 % ----- | 
| 97 | |
| 98 \section{Introduction} | |
| 99 | |
| 
39
 
9681f6cd9c2b
Change subtitle and intro files to .txt extension.
 
Jim Hague <jim.hague@laicatc.com> 
parents: 
38 
diff
changeset
 | 
100 \input{intro.txt} | 
| 13 | 101 | 
| 
117
 
9ccdb7c3ec45
Add reference to web location.
 
Jim Hague <jim.hague@acm.org> 
parents: 
115 
diff
changeset
 | 
102 This book is a work in progress. You can download the latest version from | 
| 176 | 103 \url{http://dottes.cryhavoc.org.uk/}. | 
| 
117
 
9ccdb7c3ec45
Add reference to web location.
 
Jim Hague <jim.hague@acm.org> 
parents: 
115 
diff
changeset
 | 
104 | 
| 13 | 105 % ----- | 
| 106 | |
| 107 \section{Tunes} | |
| 16 | 108 | 
| 109 Tunes are arranged in alphabetical order of tune title. | |
| 110 | |
| 111 \newpage | 
