\input{docclass.tex}

\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{fancyhdr}
\usepackage{longtable}

% Non-indented paragraphs with space between them.
\usepackage{parskip}

% 2 column table of contents.
\usepackage[toc]{multitoc}

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

% ----- Common variables

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

% ----- Paper size document setup

\input{docsetup.tex}

% ----- Appearance

\setmainfont{Times New Roman}

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

% -----

\begin{document}

% ----- Title page

\begin{titlepage}
\titleBoD
\end{titlepage}

% ----- Headers and footers

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

% ----- Contents

\tableofcontents

% -----

\section{Introduction}

After every practice or dance-out, the musicians of Cry Havoc Botley
Morris like to have a little music-playing session. And, of course,
the musicians provide the music we dance to.

Havoc musicians come in all shades of experience and ability.
This collection is intended to help those like me who are inexpert with
instrument and folk music generally, but have a little musical background.

\input{intro.txt}

Being folk tunes, many of the tunes herein have many variations.
The music presented here is my attempt at reflecting what the musicians
of Cry Havoc play. I'm in no way suggesting that they are
in any way \emph{correct}. This is just how we go about them.

All tunes in this book are believed to be in the public domain, or at the
very least enjoy widespread currency on the folk music scene. If I have
inadvertantly transgressed on anyone's copyright, please contact me at
\href{mailto:dottes@cryhavoc.org.uk}{\texttt{dottes@cryhavoc.org.uk}} and I will
remove the offending tune.

The Booke of Dottes is a constant work in progress. You can download the latest
version from \url{http://dottes.cryhavoc.org.uk/}.

\section{About Cry Havoc}

Cry Havoc are a mixed Cotswold Morris side based in Botley, Oxford.

This book was first produced to mark Cry Havoc's 20th anniversary in 2013.

% -----

\section{Tunes}

Tunes are arranged in alphabetical order of tune title.

\newpage

\input{tunes.tex}

% -----

\newpage
\section{List of tune first lines}

You know the feeling. Everyone has just launched into a well-loved tune.
You've heard it before, but don't remember the name. So here's a list of
tune first lines to help you figure out what it is in time to join in.

\setlength\LTleft{0pt}
\setlength\LTright{0pt}
\begin{longtable}{lr}
\input{firstlines.tex}
\end{longtable}

% -----

\end{document}
