changeset 957:2e51b0787a54

Update page padding to work with variable length front matter.
author Jim Hague <jim.hague@acm.org>
date Wed, 07 Aug 2019 08:21:23 +0100
parents c52d237f99d5
children 5efe424fbff6
files docend.A4.tex docsetup.A4.tex dottes.tex
diffstat 3 files changed, 19 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docend.A4.tex	Wed Aug 07 00:01:44 2019 +0100
+++ b/docend.A4.tex	Wed Aug 07 08:21:23 2019 +0100
@@ -1,4 +1,16 @@
-\padpages{4}{8}
+% 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{}
--- a/docsetup.A4.tex	Wed Aug 07 00:01:44 2019 +0100
+++ b/docsetup.A4.tex	Wed Aug 07 08:21:23 2019 +0100
@@ -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]
--- a/dottes.tex	Wed Aug 07 00:01:44 2019 +0100
+++ b/dottes.tex	Wed Aug 07 08:21:23 2019 +0100
@@ -270,6 +270,9 @@
 
 \tableofcontents
 
+\newcounter{lastfrontmatterpage}
+\setcounter{lastfrontmatterpage}{\value{page}}
+
 % -----
 
 \mainmatter