]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - myclass.cls
Translated using Weblate (Greek)
[text-madewithcc.git] / myclass.cls
index d4167eb2b4597a33a47cb0c3d5b29eadd7cc38cd..ec23feedfe574837f8f648f16910c5a32c467b27 100644 (file)
@@ -4,10 +4,16 @@
 %% 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}
 
 \makeatletter
 
+\usepackage{hyphenat}
 %
 % Customize the titlepage: remove the date, place the publisher name, and
 % load a specific file for the verso page, containing some legal notices
@@ -59,7 +65,7 @@
 }{}
 
 \usepackage{titlesec}
-\titleformat{\chapter}{\huge}{\chaptertitlename\ \thechapter}{20pt}{\Huge}
+\titleformat{\chapter}{\huge}{\thechapter.}{20pt}{\hyphenpenalty=10000 \Huge}
 \titleformat{\section}{\Large}{\thesection}{1em}{}
 \titleformat{\subsection}{\large}{\thesubsection}{1em}{}
 %% \titleformat{\paragraph}{\normalsize}{\theparagraph}{1em}{}
@@ -87,3 +93,7 @@
 }%
 {\large}         % unnumbered format
 {\hfill \contentspage}         % filler-page-format, e.g dots
+
+% We have many short chapters. Avoid them all starting on right-side
+% pages, as it wastes too much space
+\let\cleardoublepage\clearpage