]> pere.pagekite.me Git - text-free-culture-lessig.git/blobdiff - data/pdf.xsl
Update from Transifex, more proof reading.
[text-free-culture-lessig.git] / data / pdf.xsl
index c113541ca0a46fa998e23483fb4c2fa42930055e..197d942e25c46cd095af9f55987b10f268eb3408 100644 (file)
@@ -2,7 +2,9 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
 
 <!-- The TOC links in the titles, and in blue. -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
 
 <!-- The TOC links in the titles, and in blue. -->
-<xsl:param name="latex.hyperparam">linktocpage,colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param>
+<!-- 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="callout.linkends.hot">0</xsl:param>
 
 <!-- Put the dblatex logo -->
 <xsl:param name="callout.linkends.hot">0</xsl:param>
 
 <!-- Put the dblatex logo -->
@@ -11,8 +13,9 @@
 <!-- List the examples and equations too, no tables and figures -->
 <xsl:param name="doc.lot.show">example</xsl:param>
 
 <!-- List the examples and equations too, no tables and figures -->
 <xsl:param name="doc.lot.show">example</xsl:param>
 
-<!-- Avoid incorrect chapter numbers -->
-<xsl:param name="doc.section.depth">-2</xsl:param>
+<!-- Only want chapter numbers -->
+<xsl:param name="doc.section.depth">0</xsl:param>
+
 <xsl:param name="latex.class.book">myclass</xsl:param>
 
 <xsl:param name="imagedata.default.scale">maxwidth=15.5cm,maxheight=12cm</xsl:param>
 <xsl:param name="latex.class.book">myclass</xsl:param>
 
 <xsl:param name="imagedata.default.scale">maxwidth=15.5cm,maxheight=12cm</xsl:param>
 
 <xsl:param name="insert.xref.page.number">1</xsl:param>
 
 
 <xsl:param name="insert.xref.page.number">1</xsl:param>
 
-<!-- xsl:include href="lulu.xsl" / -->
+<xsl:include href="lulu.xsl" />
+<!-- xsl:include href="createspace.xsl" /-->
 <!-- xsl:include href="licentia.xsl" /-->
 
 <!-- xsl:include href="licentia.xsl" /-->
 
-<xsl:include href="origsize.xsl" />
+<!-- xsl:include href="origsize.xsl" /-->
 
 
-<!-- fall back to simplex A4 if not creating PDF for a specific size. -->
+<!-- fall back to duplex A4 if not creating PDF for a specific size. -->
 <!-- xsl:param name="paper.type">A4</xsl:param -->
 <!-- xsl:param name="paper.type">A4</xsl:param -->
-<xsl:param name="double.sided">0</xsl:param>
-<xsl:param name="latex.class.options">a4paper</xsl:param>
-
-<!-- font for XSL/FOP -->
-<!-- FIXME figure out why the font name 'Crimson Text' is not recoginized by fop -->
-<!--
-<xsl:param name="body.font.family" select="'Crimson Text'"/>
-<xsl:param name="title.font.family" select="'Crimson Text'"/>
--->
-<!-- <xsl:param name="dingbat.font.family">Crimson Text</xsl:param> -->
-<!-- <xsl:param name="monospace.font.family" select="'Courier,MS Gothic'"/> -->
+<xsl:param name="double.sided">1</xsl:param>
+<xsl:param name="page.margin.inner">0.8in</xsl:param>
+<xsl:param name="page.margin.outer">0.55in</xsl:param>
+<xsl:param name="page.margin.top">0.55in</xsl:param>
+<xsl:param name="page.margin.bottom">0.55in</xsl:param>
+<xsl:param name="latex.class.options">a4paper,openright,twoside</xsl:param>
+
+<!-- font for XSL/FOP, see also fop-params.xconf -->
+<!-- The original book used Adobe Caslon, and this free font is pretty similar -->
+<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>
 
 </xsl:stylesheet>