view dottes.tex.a5header @ 235:50dccc8f1ac0

Automated merge with ssh://hg.cryhavoc.org.uk/dottes
author Jim Hague <jim.hague@laicatc.com>
date Sun, 31 Mar 2013 20:51:02 +0100
parents 4800e1f12632
children 440172d9f5d6
line wrap: on
line source

\documentclass[a5paper,landscape,11pt]{article}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{longtable}
\usepackage[svgnames]{xcolor}

\usepackage{hyperref}
\hypersetup{
    bookmarks=true,%
    colorlinks=true,%
    citecolor=black,%
    filecolor=black,%
    linkcolor=black,%
    urlcolor=black
}

% ----- Common variables

\def \build {\input{buildno.txt}}

% ----- Appearance

%\setmainfont{Century Schoolbook L}
\setmainfont{Times New Roman}

% ----- Page setup

\setlength{\parindent}{0pt}

% Adjust margins for A5 landscape. Increase width by 4cm and height by 4cm.
\addtolength{\textwidth}{4cm}
\addtolength{\hoffset}{-2cm}

\addtolength{\textheight}{4cm}
\addtolength{\voffset}{-2cm}

% Move the top margin up a further cm.
\addtolength{\textheight}{1cm}
\addtolength{\voffset}{-1cm}

% -----

% Don't show section numbers.
\setcounter{secnumdepth}{-1}

% -----

% Title page
\newcommand*{\rotrt}[1]{\rotatebox{90}{#1}} % Command to rotate right 90 degrees
\newcommand*{\rotlft}[1]{\rotatebox{-90}{#1}} % Command to rotate left 90 degrees

\newcommand*{\titleBC}{\begingroup % Create the command for including the title page in the document
\centering % Center all text

\def\CP{\textit{\Huge Ye Crie Havock Booke of Dottes}} % Title

\settowidth{\unitlength}{\CP} % Set the width of the curly brackets to the width of the title
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotrt{$\}$}}} \\[\baselineskip] % Print top curly bracket
\textcolor{Sienna}{\CP} \\[\baselineskip] % Print title
{\color{RosyBrown}\Large \input{subtitle.txt}} \\ % Tagline or further description
{\color{LightGoldenrod}\resizebox*{\unitlength}{\baselineskip}{\rotlft{$\}$}}} % Print bottom curly bracket

\vfill % Whitespace between the title and the author name

{\Large\textbf{Cry Havoc}}\\ % Author name

\vfill % Whitespace between the author name and the rest

\today % Date published

\endgroup}

% -----

\begin{document}

% ----- Headers and footers

\pagestyle{fancyplain}
\fancyhf{}
\lfoot{Issue \build}
\rfoot{\thepage}
\renewcommand{\headrulewidth}{0pt}

% ----- Title page and contents

\titleBC

\newpage

\tableofcontents

\newpage

% -----

\section{Introduction}

\input{intro.txt}

This book is a work in progress. You can download the latest version from
\url{http://dottes.cryhavoc.org.uk/}.

% -----

\section{Tunes}

Tunes are arranged in alphabetical order of tune title.

\newpage