diff --git a/.hgignore b/.hgignore index 400511c..0003815 100644 --- a/.hgignore +++ b/.hgignore @@ -16,3 +16,4 @@ web/Library.*/ web/tunes.*/ Morris-.* Session-.* +Library-.* diff --git a/docend.A4.tex b/docend.A4.tex index c54e624..d9432a6 100644 --- a/docend.A4.tex +++ b/docend.A4.tex @@ -1,3 +1,16 @@ +% Inside back cover. +\newpage +\thispagestyle{empty} +\hbox{} + +% Back cover page - or it it? +\newpage + +% Pad pages to multiple of 4. +\newcounter{frontpages} +\setcounter{frontpages}{3 + \thelastfrontmatterpage} +\padpages{4}{\thefrontpages} + \pagecolor{havocpurple} \thispagestyle{empty} \mbox{} diff --git a/docsetup.A4.tex b/docsetup.A4.tex index 1fde6c9..76c1062 100644 --- a/docsetup.A4.tex +++ b/docsetup.A4.tex @@ -18,10 +18,12 @@ \includegraphics[width=0.5\textwidth,keepaspectratio]{buzzard} \vfill {\Large Compiled by Jim Hague}\\ -% Inside cover + +% Inside front cover \newpage \pagecolor{white} \hbox{} + \newpage {\Large \havocfont{Ye}}\\[\baselineskip] {\Huge \havocfont{Crie Havock}}\\[\baselineskip] @@ -38,5 +40,5 @@ % Page appearance. \newcommand*{\pagestylemod}{} -\newcommand*{\tunestart}{} -\newcommand*{\tuneend}{\vfill} +\newcommand*{\tunestart}{\filbreak\vfill} +\newcommand*{\tuneend}{} diff --git a/dottes.tex b/dottes.tex index ac9659e..9c8e583 100644 --- a/dottes.tex +++ b/dottes.tex @@ -1,11 +1,13 @@ \input{docclass.tex} \usepackage{array} +\usepackage{calc} \usepackage{caption} \usepackage{color} \usepackage{fontspec} \usepackage{graphicx} \usepackage{fancyhdr} +\usepackage{ifthen} \usepackage[defaultlines=4,all]{nowidow} \usepackage{tabularx} \usepackage{longtable} @@ -47,6 +49,15 @@ \fi} \makeatother +% Replace \mainmatter with one that does a \clearpage +% not a \cleardoublepage. +\makeatletter +\renewcommand\mainmatter{% + \clearpage + \@mainmattertrue + \pagenumbering{arabic}} +\makeatother + % Show the main tune graphic and optional change. % Args are: % 1. Tune name @@ -89,6 +100,28 @@ \end{figure} } +% Add blank pages to make total page count up to a multiple +% Args are: +% 1. Multiple desired +% 2. Pages before start of current page count +\newcounter{modpage} +\newcounter{modpageno} +\newcounter{modpagenodiv} +\newcommand{\padpages}[2]{% + \pagestyle{empty}% + \setcounter{modpageno}{\thepage + #2}% + \setcounter{modpagenodiv}{\themodpageno/#1}% + \setcounter{modpage}{\themodpageno - #1*\themodpagenodiv}% + \ifthenelse{\themodpage=0}% + {\relax}% + {\setcounter{modpage}{#1 - \themodpage}% + \whiledo{\themodpage>0}{% + \mbox{}\clearpage\mbox{}% + \setcounter{modpage}{\themodpage - 1}% + }% end whiledo + }% end ifthenelse +}% end padpages + % ----- Paper size document setup \input{docsetup.tex} @@ -237,6 +270,9 @@ in 2018. \tableofcontents +\newcounter{lastfrontmatterpage} +\setcounter{lastfrontmatterpage}{\value{page}} + % ----- \mainmatter @@ -245,8 +281,6 @@ in 2018. % ----- -\cleardoublepage - \chapter{List of tune first lines} You know the feeling. Everyone has just launched into a well-loved tune.