]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - myclass.cls
Updated German and Polish proof reading pages.
[text-madewithcc.git] / myclass.cls
index 042052c2b3b55facdbcd6f4b9cd30aa2d48f989e..355eb86cd8bbe733322d22f36af5b92e48ba9f34 100644 (file)
@@ -4,7 +4,14 @@
 %% Just use the original class and pass the options
 \LoadClassWithOptions{report}
 
 %% Just use the original class and pass the options
 \LoadClassWithOptions{report}
 
+% Place page number at the outer foot edge of content pages
+\usepackage[pagestyles]{titlesec}
+\newpagestyle{mystyle}{\setfoot[\thepage][][]{}{}{\thepage}}
+\pagestyle{mystyle}
+
 \renewcommand{\baselinestretch}{1.2}
 \renewcommand{\baselinestretch}{1.2}
+\newcommand{\beforetitle}{}
+\newcommand{\publisherlogos}{}
 
 \makeatletter
 
 
 \makeatletter
 
@@ -18,7 +25,9 @@
   \titleverso}
 
 \def\titlerecto{\begin{titlepage}%
   \titleverso}
 
 \def\titlerecto{\begin{titlepage}%
+  \beforetitle
   \null\vfil
   \null\vfil
+  \thispagestyle{empty}
   \vskip 160\p@
   \begin{center}%
     {\LARGE \@title \par}%
   \vskip 160\p@
   \begin{center}%
     {\LARGE \@title \par}%
         \@author
       \end{tabular}\par}%
       \vskip 20em%
         \@author
       \end{tabular}\par}%
       \vskip 20em%
-    {\large \DBKpublishername \par}
+    {\large \DBKpublisheraddress \par}
     \vskip .75em%
     \vskip .75em%
-    {\large \DBKpublisheraddress \par}%
+    {\large \DBKpublishername \par}%
+    \publisherlogos
   \end{center}\par
   \vfil\null
   \end{titlepage}}%
   \end{center}\par
   \vfil\null
   \end{titlepage}}%
   \IfFileExists{\titlepagefile}{\input{\titlepagefile}}{}
 }%
 
   \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}
 % Allow line break on hyphen (-) in URLs, to make sure long URLs in
 % footnotes do not pass out of the margins.
 \usepackage[hyphens]{url}