Mercurial > dottes
comparison dottes.tex.a4header @ 181:6a0bdabfb255
Add a A4 portrait book with multiple tunes per page.
Also add a script to make all variants of a single book, and
look for <tune name>.tex files, and if one exists add it after the tune.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Sat, 26 Jan 2013 13:47:01 +0000 |
parents | |
children | af1d1009305f |
comparison
equal
deleted
inserted
replaced
180:3acc7c6ba9fc | 181:6a0bdabfb255 |
---|---|
1 \documentclass[a4paper,11pt]{article} | |
2 \usepackage{fontspec} | |
3 \usepackage{graphicx} | |
4 \usepackage{fancyhdr} | |
5 \usepackage{longtable} | |
6 | |
7 \usepackage{hyperref} | |
8 \hypersetup{ | |
9 bookmarks=true,% | |
10 colorlinks=true,% | |
11 citecolor=black,% | |
12 filecolor=black,% | |
13 linkcolor=black,% | |
14 urlcolor=black | |
15 } | |
16 | |
17 % ----- Common variables | |
18 | |
19 \def \build {\input{buildno.txt}} | |
20 | |
21 % ----- Appearance | |
22 | |
23 %\setmainfont{Century Schoolbook L} | |
24 \setmainfont{Times New Roman} | |
25 | |
26 % ----- Page setup | |
27 | |
28 \setlength{\parindent}{0pt} | |
29 | |
30 % Adjust margins for A4 portrait. Increase width by 4cm and height by 4cm. | |
31 \addtolength{\textwidth}{4cm} | |
32 \addtolength{\hoffset}{-2cm} | |
33 | |
34 \addtolength{\textheight}{4cm} | |
35 \addtolength{\voffset}{-2cm} | |
36 | |
37 % Move the top margin up a further cm. | |
38 \addtolength{\textheight}{1cm} | |
39 \addtolength{\voffset}{-1cm} | |
40 | |
41 % ----- | |
42 | |
43 % Don't show section numbers. | |
44 \setcounter{secnumdepth}{-1} | |
45 | |
46 % ----- | |
47 | |
48 \begin{document} | |
49 | |
50 % ----- Headers and footers | |
51 | |
52 \pagestyle{fancyplain} | |
53 \fancyhf{} | |
54 \lfoot{Issue \build} | |
55 \rfoot{\thepage} | |
56 \renewcommand{\headrulewidth}{0pt} | |
57 | |
58 % ----- Title page and contents | |
59 | |
60 \title{Ye Crie Havock Booke of Dottes \\ \input{subtitle.txt}} | |
61 | |
62 \author{Cry Havoc} | |
63 | |
64 \date{\today} | |
65 | |
66 \maketitle | |
67 | |
68 \newpage | |
69 | |
70 \tableofcontents | |
71 | |
72 \newpage | |
73 | |
74 % ----- | |
75 | |
76 \section{Introduction} | |
77 | |
78 \input{intro.txt} | |
79 | |
80 This book is a work in progress. You can download the latest version from | |
81 \url{http://dottes.cryhavoc.org.uk/}. | |
82 | |
83 % ----- | |
84 | |
85 \section{Tunes} | |
86 | |
87 Tunes are arranged in alphabetical order of tune title. | |
88 | |
89 \newpage |