]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Modified the class definition's styling of chapters
authorGunnar Wolf <gwolf@gwolf.org>
Fri, 26 Apr 2019 16:10:25 +0000 (11:10 -0500)
committerGunnar Wolf <gwolf@gwolf.org>
Fri, 26 Apr 2019 16:10:25 +0000 (11:10 -0500)
Makefile
myclass.cls

index 46ddb4044f5d712b16bc72e6a4e28e516dfe075c..810292e5aa707ecd7060ff9176a9b1657d711321 100644 (file)
--- 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
index d4167eb2b4597a33a47cb0c3d5b29eadd7cc38cd..7f3694dd094869f882c2d443b97bbb3c267c0434 100644 (file)
@@ -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}{}