X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/1b987c71c43f9381a656a639318dd5e77897e702..0d3fc6baf65fcdb84bb6c71cb4b3ecbd13d705ef:/myclass.cls

diff --git a/myclass.cls b/myclass.cls
index d4167eb..042052c 100644
--- a/myclass.cls
+++ b/myclass.cls
@@ -8,6 +8,7 @@
 
 \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 +60,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 +88,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 
