From 4b6e14d20d74f70899be41240085a33804d1e3b0 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Wed, 7 Aug 2019 08:21:23 +0100 Subject: [PATCH] Update page padding to work with variable length front matter. --- docend.A4.tex | 14 +++++++++++++- docsetup.A4.tex | 4 +++- dottes.tex | 3 +++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/docend.A4.tex b/docend.A4.tex index c48a883..d9432a6 100644 --- a/docend.A4.tex +++ b/docend.A4.tex @@ -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{} diff --git a/docsetup.A4.tex b/docsetup.A4.tex index 9d0ce11..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] diff --git a/dottes.tex b/dottes.tex index c98657d..9c8e583 100644 --- a/dottes.tex +++ b/dottes.tex @@ -270,6 +270,9 @@ in 2018. \tableofcontents +\newcounter{lastfrontmatterpage} +\setcounter{lastfrontmatterpage}{\value{page}} + % ----- \mainmatter