view dottes.tex.header @ 116:19ba410d891f

Ensure tune graphic is confined to a single page. Set a maximum height for the graphic of 0.9 text area as well as the current target width of the text width. And also keep the aspect ratio. So if the height is small enough, you get full width. Otherwise the graphic is shrunk enough to keep it all on one page. Perhaps one can then go back and edit the tune to fit it into fewer lines.
author Jim Hague <jim.hague@acm.org>
date Fri, 16 Mar 2012 10:40:09 +0000
parents c4efe8b5eea1
children 9ccdb7c3ec45
line wrap: on
line source

\documentclass[a5paper,landscape,11pt]{article}
\usepackage{graphicx}
\usepackage{helvet}
\usepackage{newcent}
\usepackage{fancyhdr}
\usepackage{longtable}

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

% ----- Common variables

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

% ----- Page setup

\setlength{\parindent}{0pt}

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

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

% -----

\begin{document}

% ----- Headers and footers

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

% ----- Title page and contents

\title{Ye Crie Havock Booke of Dottes \\ \input{subtitle.txt}}

\author{Cry Havoc}

\date{\today}

\maketitle

\newpage

\tableofcontents

\newpage

% -----

\section{Introduction}

\input{intro.txt}

% -----

\section{Tunes}

Tunes are arranged in alphabetical order of tune title.

\newpage