]> pere.pagekite.me Git - text-mekanikerord.git/commitdiff
Correct PDF for printing.
authorPetter Reinholdtsen <pere@hungry.com>
Sat, 31 Jul 2021 06:06:06 +0000 (08:06 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 31 Jul 2021 06:06:12 +0000 (08:06 +0200)
Make links black and add trailing blank page.

pdf.xsl

diff --git a/pdf.xsl b/pdf.xsl
index 825767e363a8f5a5175f28fe0bb7806cc75a4799..e08576c03cecb286a4002e6c7c8ebda548b7e214 100644 (file)
--- a/pdf.xsl
+++ b/pdf.xsl
   <xsl:param name="latex.class.book">book</xsl:param>
   <xsl:param name="latex.class.options">a4paper,openright,twoside</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>
+
   <!-- No use showing table of content, it is empty -->
   <xsl:param name="doc.toc.show">0</xsl:param>
 
@@ -151,4 +155,17 @@ https://github.com/docbook/xslt10-stylesheets/tree/master/gentext/locale .
     </l:l10n>
   </l:i18n>
 
+<!--
+Make final page blank, which is required for PDFs inteneded for
+extended distribution with LuLu.
+-->
+
+<xsl:param name="latex.enddocument">
+  <xsl:text>\pagebreak
+\thispagestyle{empty}
+~
+\end{document}
+  </xsl:text>
+</xsl:param>
+
 </xsl:stylesheet>