]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Drop dblatex-endnotes.xsl and move relevant settings into pdf.xsl.
authorPetter Reinholdtsen <pere@hungry.com>
Sat, 29 Aug 2015 10:01:09 +0000 (12:01 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 29 Aug 2015 10:01:09 +0000 (12:01 +0200)
Makefile
data/dblatex-endnotes.xsl [deleted file]
data/pdf.xsl

index 9465f136d4bb0823fea7a2c26659ef4b0868a667..5e2347efde8875402721c87878f7e02e36480130 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,6 @@ DBLATEX_OPTS = \
        -b xetex \
        -r data/dblatex-postprocess \
        --indexstyle=myindexstyle.ist \
-       --xsl-user=data/dblatex-endnotes.xsl \
        --xsl-user=data/user_param.xsl \
        --xsl-user=data/xetex_param.xsl \
        -V \
diff --git a/data/dblatex-endnotes.xsl b/data/dblatex-endnotes.xsl
deleted file mode 100644 (file)
index 5e5731c..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version='1.0'?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
-
-<!--
-Trick to get endnote support.  Should have a way to insert LaTeX code
-outside xetex font values.  As it is missing, reuse the
-latex.begindocument value (aka \begin{document} to get a code fragment
-in front of it.
--->
-  <xsl:param name="footnote.as.endnote" select="1"/>
-
-  <xsl:attribute-set name="endnotes.properties"
-                     use-attribute-sets="endnotes.properties.default">
-<!--
-Increase footnote/endnote size to be more than 6 pts, to avoid
-complaint from Lulu about the font being too small to be printed
-clearly.  Needed at least for pocket size books.  Probably wise to use
-the same size as the colophon page (see myclass.cls)
-
-for \fontsize{x}{y}, use y=1.2*x, x >= 6
--->
-
-    <!--xsl:attribute name="font-size">\fontsize{10}{12}</xsl:attribute-->
-    <xsl:attribute name="font-size">\footnotesize</xsl:attribute>
-    <!--xsl:attribute name="font-size">\normalsize</xsl:attribute-->
-  </xsl:attribute-set>
-
-  <xsl:param name="latex.begindocument">
-    <xsl:text>
-% Trick to avoid many words sticking out of the right margin of the text.
-% Need to add it here with the end notes, as only one
-% latex.begindocument can be active.
-\sloppy
-
-\begin{document}
-    </xsl:text>
-  </xsl:param>
-
-</xsl:stylesheet>
index 197d942e25c46cd095af9f55987b10f268eb3408..6df6e2b05090c24a900ba831c49a798f13993c4e 100644 (file)
@@ -17,6 +17,7 @@
 <xsl:param name="doc.section.depth">0</xsl:param>
 
 <xsl:param name="latex.class.book">myclass</xsl:param>
+<xsl:param name="latex.output.revhistory">0</xsl:param>
 
 <xsl:param name="imagedata.default.scale">maxwidth=15.5cm,maxheight=12cm</xsl:param>
 <xsl:param name="draft.mode">yes</xsl:param>
   <xsl:text>\end{colophon}&#10;</xsl:text>
 </xsl:template>
 
+<!-- transform footnotes to endnotes -->
+  <xsl:param name="footnote.as.endnote" select="1"/>
+  <xsl:attribute-set name="endnotes.properties"
+                     use-attribute-sets="endnotes.properties.default">
+<!--
+Increase footnote/endnote size to be more than 6 pts, to avoid
+complaint from Lulu about the font being too small to be printed
+clearly.  Needed at least for pocket size books.  Probably wise to use
+the same size as the colophon page (see myclass.cls)
+
+make sure \fontsize{x}{y} use y=1.2*x, x >= 6
+-->
+
+    <!--xsl:attribute name="font-size">\fontsize{10}{12}</xsl:attribute-->
+    <xsl:attribute name="font-size">\footnotesize</xsl:attribute>
+    <!--xsl:attribute name="font-size">\normalsize</xsl:attribute-->
+  </xsl:attribute-set>
+
+  <xsl:param name="latex.begindocument">
+    <xsl:text>
+% Trick to avoid many words sticking out of the right margin of the text.
+% Need to add it here with the end notes, as only one
+% latex.begindocument can be active.
+\sloppy
+
+\begin{document}
+    </xsl:text>
+  </xsl:param>
+
 </xsl:stylesheet>