%%% zongbook.sty:	Style sheet for a personal songbook.
%%%			Includes HyperSpace Express & BroadSide logos.
%%%
%%%   Pages default to broadside format so that it's easy to add or change
%%%   pages.  Books with a large number of 1-page songs will benefit from
%%%   setting \compacttrue
%%%   
%%%


\usepackage{fancyhdr}

%%%
%%% Page Margins
%%%
\headheight 2.1\baselineskip
\headsep \baselineskip
%\footheight 2.1\baselineskip
\footskip \baselineskip
\topmargin -.5in
\textheight 9in

\oddsidemargin 0in
\evensidemargin 0in
\textwidth 6.5in

%%% Default formatting with fancyhdr
% should define \inner and \outer for, e.g., ER,OL if twosided, else OL


%%%
%%% Special Pages, Page Headings 
%%%

%%% Define \OUT, \MID, \INN for use in fancyheaders:
\if@twoside
  \newcommand{\OUT}{EL,OR}
  \newcommand{\MID}{EC,OC}
  \newcommand{\INN}{ER,OL}
  \newcommand{\LFT}{EL,OL}
  \newcommand{\RHT}{ER,OR}
\else
  \newcommand{\OUT}{OR}
  \newcommand{\MID}{OC}
  \newcommand{\INN}{OL}
  \newcommand{\LFT}{OL}
  \newcommand{\RHT}{OR}
\fi

%%% Note:  page numbers are inconspicuous by design; they're not particularly
%%% useful in a binder that new songs are frequently added to between
%%% printings.
%%%
\pagestyle{fancy}
\fancyhead[\OUT]{{\bf\large\theSong}}
\fancyhead[ER]{\chord{\theTiming\hskip 1em\bf\theKey}}
\fancyhead[OL]{\chord{\bf\theKey}\hskip 1em\theTiming}
\fancyfoot[\MID]{\thepage}
\fancyfoot[\INN]{\HSXlogo}
\fancyfoot[\OUT]{FiLkTeX songbook}
\renewcommand{\footrulewidth}{0.4pt}
\renewcommand{\footruleskip}{.1\normalbaselineskip}

\setlength{\headwidth}{\textwidth}

\def\HSXlogo{$\hbox{Hyper}\!\int\!\!\hbox{pace}\ \hbox{Expre}\!\int\!\!\int$}
