]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - extra/pdf.xsl
Translated using Weblate (German)
[text-madewithcc.git] / extra / pdf.xsl
index 7115facd405772058127d00bf2bde98a8720398a..10aaa5e52f5a2ab8160c510fca8ff3ab9764ce99 100644 (file)
@@ -9,8 +9,8 @@
   <!-- default behaviour, but it didn't work...  -->
   <!-- -->
   <!-- <xsl:param name="paper.type">USletter</xsl:param> -->
-  <xsl:param name="page.width">8.5in</xsl:param>
-  <xsl:param name="page.height">11in</xsl:param>
+  <xsl:param name="page.width">6in</xsl:param>
+  <xsl:param name="page.height">9in</xsl:param>
 
   <xsl:param name="page.margin.inner">1.5in</xsl:param>
   <xsl:param name="page.margin.outer">1.5in</xsl:param>
   <!-- do not list figures -->
   <xsl:param name="doc.lot.show">example</xsl:param>
 
+  <!-- The TOC links in the titles, and in blue. -->
+  <!-- ensure URLs in the text do not end up light gray too -->
+  <xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=black,urlcolor=black,pdfstartview=FitH</xsl:param>
+
   <xsl:param name="latex.begindocument">
     <xsl:text>
 % Trick to avoid many words sticking out of the right margin of the text.
 % 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>