]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Adjust docbook parameters to match what
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 5 Aug 2012 19:38:48 +0000 (21:38 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 5 Aug 2012 19:38:48 +0000 (21:38 +0200)
http://left.subtree.org/2011/04/09/wordpress-blog-to-print-book-a-case-study/
propose for Lulu publishing with 6"x9" format.

Makefile

index 326fb61bd2b4b45cde6ec9a197627b6c5a7f16ba..bc3afbc8d2723493875d5fa30af0d8603520c10e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -44,10 +44,20 @@ html: freeculture.html freeculture.nb.html
 # Alternative processing path to dblatex is to use xmlto using fop to
 # create PDF like this.  The PDF output (visual design) is better, but
 # the footnote handling is worse and images are missing.
-#      xmlto --noautosize --stringparam paper.type=A5 \
+#      xmlto --noautosize \
 #        --stringparam fop1.extensions=1 \
 #        --stringparam insert.xref.page.number=1 \
-#        --with-fop pdf $<
+#        --stringparam page.width=6in \
+#        --stringparam page.height=9in \
+#        --stringparam page.margin.inner=1.0in \
+#        --stringparam page.margin.outer=0.8in \
+#        --stringparam body.start.indent=0pt \
+#        --stringparam body.font.family=Times \
+#        --stringparam title.font.family=Times \
+#        --stringparam dingbat.font.family=Times \
+#        --stringparam generate.toc='book toc title' \
+#        --stringparam hyphenate=false \
+         --with-fop pdf $<
 
 # Third alternative is to use xsltproc and fop directly, as
 # recommended by <URL: http://www.sagehill.net/docbookxsl/index.html > .
@@ -55,9 +65,18 @@ html: freeculture.html freeculture.nb.html
 # broken.
        xsltproc  \
          --output myfile.fo    \
-         --stringparam paper.type A5 \
          --stringparam fop1.extensions 1 \
          --stringparam insert.xref.page.number 1 \
+         --stringparam page.width 6in \
+         --stringparam page.height 9in \
+         --stringparam page.margin.inner 1.0in \
+         --stringparam page.margin.outer 0.8in \
+         --stringparam body.start.indent 0pt \
+         --stringparam body.font.family  Times \
+         --stringparam title.font.family Times \
+         --stringparam dingbat.font.family Times \
+         --stringparam generate.toc 'book toc title' \
+         --stringparam hyphenate false \
          /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \
          $<
        fop -fo myfile.fo -pdf $@