]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Added some formatting bits required by our edit reviewer
authorGunnar Wolf <gwolf@gwolf.org>
Mon, 15 Oct 2018 15:54:16 +0000 (10:54 -0500)
committerGunnar Wolf <gwolf@gwolf.org>
Mon, 15 Oct 2018 15:54:16 +0000 (10:54 -0500)
extra/pdf.xsl
extra/stylesheet-fo.xsl
fixup-docbook.rb
myclass.cls

index 281bc02b13978026fb992bea50eead5188a5e745..7fc8cecd111e7d639c28e9b131003168607176d5 100644 (file)
@@ -2,15 +2,21 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
 
   <xsl:param name="latex.class.book">myclass</xsl:param>
-<!--
-  <xsl:param name="page.width">6in</xsl:param>
-  <xsl:param name="page.height">9in</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.05in</xsl:param>
-  <xsl:param name="page.margin.bottom">0.15in</xsl:param>
+  <!-- Layout for printing on US Letter paper -->
+  <!-- -->
+  <!-- Should be equivalent to next (commented) line, and should match the -->
+  <!-- default behaviour, but it didn't work...  -->
+  <!-- -->
+  <!-- <xsl:param name="paper.type">USletter</xsl:param> -->
+  <xsl:param name="page.width">8.5in</xsl:param>
+  <xsl:param name="page.height">11in</xsl:param>
+
+  <xsl:param name="page.margin.inner">1.5in</xsl:param>
+  <xsl:param name="page.margin.outer">1.5in</xsl:param>
+
+  <xsl:param name="page.margin.top">1in</xsl:param>
+  <xsl:param name="page.margin.bottom">1in</xsl:param>
 
   <xsl:param name="double.sided">1</xsl:param>
   <xsl:param name="latex.class.options">openright,twoside</xsl:param>
@@ -23,7 +29,6 @@
 
   <!-- do not list figures -->
   <xsl:param name="doc.lot.show">example</xsl:param>
-
 <!--
 Make final page blank, which is required for PDFs inteneded for
 extended distribution with LuLu.
index 3ec42a998258a20d0f3927c026fc119e55601e08..30afb8f4530c0dbe98235555dabe3ad022d7436b 100644 (file)
@@ -6,4 +6,16 @@
   <xsl:include href="pdf.xsl" />
   <xsl:param name="fop1.extensions">1</xsl:param>
 
+  <xsl:param name="page.width">8.5in</xsl:param>
+  <xsl:param name="page.height">11in</xsl:param>
+
+  <xsl:param name="page.margin.inner">1.5in</xsl:param>
+  <xsl:param name="page.margin.outer">1.5in</xsl:param>
+
+  <xsl:param name="page.margin.top">1in</xsl:param>
+  <xsl:param name="page.margin.bottom">1in</xsl:param>
+
+  <xsl:param name="preface.tocdepth">1</xsl:param>
+  <xsl:param name="toc.section.depth">1</xsl:param>
+
 </xsl:stylesheet>
index 7924145d25f36f75dfa308b807192a57137aae9b..225b5d076966cb7983d582d258158a9f184641ba 100755 (executable)
@@ -38,8 +38,8 @@ xml.css('articleinfo').each do |node|
 XML
   node.last_element_child.after(<<'XML')
 <publisher>
-    <publishername>Gunnar Wolf</publishername>
-    <address><city>Mexico City</city></address>
+    <publishername>Instituto de Investigaciones Económicas</publishername>
+    <address><city>Universidad Nacional Autónoma de México</city></address>
 </publisher>
 XML
 end
index 2c33c483e97c5f3cd6acb33310f5ab23cf41d1d3..4f509cdd5736a8716e0a0fe16be174bfa020b9ae 100644 (file)
@@ -4,6 +4,8 @@
 %% Just use the original class and pass the options
 \LoadClassWithOptions{report}
 
+\renewcommand{\baselinestretch}{1.2}
+
 \makeatletter
 
 %