]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - myclass.cls
Translated using Weblate (Russian)
[text-madewithcc.git] / myclass.cls
index ec23feedfe574837f8f648f16910c5a32c467b27..355eb86cd8bbe733322d22f36af5b92e48ba9f34 100644 (file)
@@ -10,6 +10,8 @@
 \pagestyle{mystyle}
 
 \renewcommand{\baselinestretch}{1.2}
+\newcommand{\beforetitle}{}
+\newcommand{\publisherlogos}{}
 
 \makeatletter
 
@@ -23,7 +25,9 @@
   \titleverso}
 
 \def\titlerecto{\begin{titlepage}%
+  \beforetitle
   \null\vfil
+  \thispagestyle{empty}
   \vskip 160\p@
   \begin{center}%
     {\LARGE \@title \par}%
         \@author
       \end{tabular}\par}%
       \vskip 20em%
-    {\large \DBKpublishername \par}
+    {\large \DBKpublisheraddress \par}
     \vskip .75em%
-    {\large \DBKpublisheraddress \par}%
+    {\large \DBKpublishername \par}%
+    \publisherlogos
   \end{center}\par
   \vfil\null
   \end{titlepage}}%
   \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}