From df9dd8186726bd229fbd8df9d43efac1ed457226 Mon Sep 17 00:00:00 2001 From: Gunnar Wolf Date: Wed, 13 Nov 2019 10:52:15 -0600 Subject: [PATCH] Fix the rules for the layout when opening a Part --- myclass.cls | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/myclass.cls b/myclass.cls index 90a00d2..355eb86 100644 --- a/myclass.cls +++ b/myclass.cls @@ -51,6 +51,27 @@ \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{} }% +% We have specified @openright to allow the chapters to start in +% either page (recto or verso), but we don't want that behavior for +% parts - The part heading should start in the right page (recto) +% always. +% +% When a \part clears the preceding page, we don't want the page +% number in it either. + +\renewcommand\part{% + \clearpage + \thispagestyle{empty}% + \ifodd\value{page} + \null% + \else + \null\newpage\thispagestyle{empty}% + \fi + \null\vfil + \secdef\@part\@spart} + +\def\@endpart{\vfil\newpage} + % Allow line break on hyphen (-) in URLs, to make sure long URLs in % footnotes do not pass out of the margins. \usepackage[hyphens]{url} -- 2.47.2