]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Tell LaTeX to not right alight chapter titles.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 25 Oct 2020 13:34:01 +0000 (14:34 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 25 Oct 2020 13:41:14 +0000 (14:41 +0100)
extra/pdf.xsl

index 7115facd405772058127d00bf2bde98a8720398a..16d90a33c033af168c763273cebc4c3a2a2d5792 100644 (file)
 % Note, only one latex.begindocument can be active.
 \sloppy
 
 % Note, only one latex.begindocument can be active.
 \sloppy
 
+\usepackage{titlesec}
+
+\titleformat{\chapter}[display]
+  {\raggedright\Huge}
+  {}
+  {0pt}
+  {\thechapter.\ }
+
+\titleformat{name=\chapter,numberless}[display]
+  {\raggedright\Huge}
+  {}
+  {0pt}
+  {}
+
 \begin{document}
     </xsl:text>
   </xsl:param>
 \begin{document}
     </xsl:text>
   </xsl:param>