]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Add new lulu.xsl for Lulu specific PDF setup. Enable for non-spanish.
authorPetter Reinholdtsen <pere@hungry.com>
Thu, 5 Dec 2019 07:05:52 +0000 (08:05 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 5 Dec 2019 07:05:52 +0000 (08:05 +0100)
Makefile
extra/lulu.xsl [new file with mode: 0644]

index ce2d91520d618cc85fb846de514ec74071a54de0..c337a153fa89fa4ec2ed83f7e95bb2414de2a118 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -120,7 +120,7 @@ DBLATEX_OPTS = -T simple -t pdf -b xetex
        rm -f extra/pdf_es.xsl myclass_es.cls
 
 %.pdf: %.xml extra/pdf.xsl myclass.cls
-       dblatex $(DBLATEX_OPTS) -p extra/pdf.xsl $^
+       dblatex $(DBLATEX_OPTS) -p extra/pdf.xsl --xsl-user=extra/lulu.xsl $^
 
 epub: $(SOURCE).epub
        for LANG in $(LANGS); do \
diff --git a/extra/lulu.xsl b/extra/lulu.xsl
new file mode 100644 (file)
index 0000000..f4a7c53
--- /dev/null
@@ -0,0 +1,27 @@
+<?xml version='1.0' encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+
+<!-- settings for LuLu PDF version -->
+<!--
+https://amyrhoda.wordpress.com/2012/05/25/latex-to-lulu-the-making-of-aosa-geometry-and-headers-and-footers/
+http://connect.lulu.com/t5/ISBN-Distribution/Mandatory-Print-Book-Distribution-Requirements/ta-p/33632
+http://www.lulu.com/create/books
+-->
+
+<xsl:param name="doc.collab.show">0</xsl:param>
+
+<!-- See "Global Page Setup" in the dblatex PDF manual for details -->
+<!-- FIXME change when page size changes -->
+<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>
+
+<!-- reduce from 0.55in, to ignore header and footer in margin calculation -->
+<!-- FIXME figure out the proper number to use -->
+<xsl:param name="page.margin.top">0.05in</xsl:param>
+<xsl:param name="page.margin.bottom">0.15in</xsl:param>
+
+<xsl:param name="body.start.indent">0pt</xsl:param>
+<xsl:param name="double.sided">1</xsl:param>
+</xsl:stylesheet>