X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/f86fcef6f1f3412bf7036bd62d7a2b302334ca48..2f7e68bf9d6c01898f9f9fa5da7a5e2bc3d7f39f:/myclass.cls?ds=inline

diff --git a/myclass.cls b/myclass.cls
index d4167eb..7f3694d 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}{}
