]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - data/pdf.xsl
Review: In chapter 10 "Property": 'Why Hollywood Is Right', 'Beginning', 'Law: Duration'.
[text-free-culture-lessig.git] / data / pdf.xsl
index 6df6e2b05090c24a900ba831c49a798f13993c4e..2a77f6bd94ce0cf40426bcf16fd1f0e5bcc3d10e 100644 (file)
@@ -3,7 +3,7 @@
 
 <!-- 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=blue,urlcolor=blue,pdfstartview=FitH</xsl:param>
+<xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=black,urlcolor=black,pdfstartview=FitH</xsl:param>
 
 <xsl:param name="callout.linkends.hot">0</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:param name="monospace.font.family">Latin Modern Mono</xsl:param>
 
 <!-- transform footnotes to endnotes -->
-  <xsl:param name="footnote.as.endnote" select="1"/>
-  <xsl:attribute-set name="endnotes.properties"
+<xsl:param name="footnote.as.endnote" select="1"/>
+
+<!-- configure the endnotes package -->
+<xsl:attribute-set name="endnotes.properties"
                      use-attribute-sets="endnotes.properties.default">
 <!--
 Increase footnote/endnote size to be more than 6 pts, to avoid
@@ -69,10 +65,23 @@ 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: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>
+
+<!-- the endnotes are grouped by part, chapter, and preface -->
+<xsl:param name="endnotes.heading.groups" select="'part chapter preface'"/>
+<xsl:param name="endnotes.heading.style" select="'select:title'"/>
+<xsl:param name="endnotes.heading.command" select="'\enoteheader*'"/>
+
+<xsl:template match="preface" mode="endnotes">
+  <xsl:call-template name="endnotes.add.header"/>
+</xsl:template>
+
+<!-- even if grouped, never reset the endnotes counter, so clear the rule -->
+<xsl:param name="endnotes.counter.resetby"/>
+
 
   <xsl:param name="latex.begindocument">
     <xsl:text>