From 694ecd1d5a49a9864da9763e298792dbdfda11c6 Mon Sep 17 00:00:00 2001 From: Gunnar Wolf Date: Fri, 26 Apr 2019 11:10:25 -0500 Subject: [PATCH] Modified the class definition's styling of chapters --- Makefile | 2 +- myclass.cls | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 46ddb40..810292e 100644 --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ pdf: $(SOURCE).pdf $(MAKE) $(SOURCE).$$LANG.pdf ; \ done DBLATEX_OPTS = -T simple -t pdf -b xetex -p extra/pdf.xsl -%.pdf: %.xml extra/pdf.xsl +%.pdf: %.xml extra/pdf.xsl myclass.cls dblatex $(DBLATEX_OPTS) $^ epub: $(SOURCE).epub 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}{} -- 2.47.2