From: Gunnar Wolf Date: Fri, 26 Apr 2019 16:10:25 +0000 (-0500) Subject: Modified the class definition's styling of chapters X-Git-Tag: es-printed~86 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/694ecd1d5a49a9864da9763e298792dbdfda11c6?ds=sidebyside Modified the class definition's styling of chapters --- 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}{}