From ccc8b85c586af9be7d2f432d271c098adc4faca7 Mon Sep 17 00:00:00 2001
From: ben <ben@saturne.(none)>
Date: Sat, 1 Aug 2015 21:45:50 +0200
Subject: [PATCH] Method to handle colophon cleanly.

---
 data/pdf.xsl    | 9 +++++++++
 freeculture.xml | 8 --------
 myclass.cls     | 8 ++++++++
 3 files changed, 17 insertions(+), 8 deletions(-)

diff --git a/data/pdf.xsl b/data/pdf.xsl
index 6e53ef2..a3f98b1 100644
--- a/data/pdf.xsl
+++ b/data/pdf.xsl
@@ -37,7 +37,16 @@
 <!-- font for XSL/FOP, see also fop-params.xconf -->
 
 <xsl:param name="body.font.family">Crimson Text</xsl:param>
+<xsl:param name="sans.font.family">Crimson Text</xsl:param>
 <xsl:param name="title.font.family">Crimson Text</xsl:param>
 <xsl:param name="slide.font.family">Crimson Text</xsl:param>
 <xsl:param name="slide.title.font.family">Crimson Text</xsl:param>
+<xsl:param name="monospace.font.family">Nimbus Mono L</xsl:param>
+
+<xsl:template match="colophon">
+  <xsl:text>\begin{colophon}&#10;</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:text>\end{colophon}&#10;</xsl:text>
+</xsl:template>
+
 </xsl:stylesheet>
diff --git a/freeculture.xml b/freeculture.xml
index 020aed3..d0c1c18 100644
--- a/freeculture.xml
+++ b/freeculture.xml
@@ -15636,12 +15636,6 @@ conventional Colophon page.  The disadvantage is a useless blank page
 where the empty chapter title is printed.
 -->
 <title></title>
-<?latex
-\pagebreak
-{\footnotesize
-\setlength{\parskip}{0.5em}%
-\setlength{\parindent}{0pt}%
-?>
 <?latex {\centering
 ?>
 <para>
@@ -15750,7 +15744,5 @@ Please report any problems using the GitHub issue tracker.
 </tgroup>
 </informaltable>
 </para>
-<?latex } %\tiny
-?>
 </colophon>
 </book>
diff --git a/myclass.cls b/myclass.cls
index 985da17..bb8664b 100644
--- a/myclass.cls
+++ b/myclass.cls
@@ -60,6 +60,14 @@
 }
 \makeatother
 
+\newenvironment{colophon}{
+  \pagebreak %
+  \fontsize{7}{8.4}\selectfont %
+  \setlength{\parskip}{0.5em} %
+  \setlength{\parindent}{0pt} %
+}{}
+ 
+
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % Based on ideas from https://bugs.debian.org/684772
 \usepackage{titlesec}
-- 
2.51.0

