]> pere.pagekite.me Git - text-free-culture-lessig.git/commitdiff
Change PDF build rule to use xmlto with fop, which understand <part> better than...
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 29 Jul 2012 12:45:06 +0000 (14:45 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 29 Jul 2012 12:45:06 +0000 (14:45 +0200)
Makefile
freeculture.xml
xmlto-pdf.xsl [new file with mode: 0644]

index 58bc5f2afc3d183b8167ac4c0e92897511776456..48e4e5835640c35b186275ed55f505f2c504941c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -32,7 +32,12 @@ epub: freeculture.nb.epub
 html: freeculture.html freeculture.nb.html 
 
 %.pdf: %.xml
-       $(DBLATEX) $^ --param=lingua=nb
+#      $(DBLATEX) $^ --param=lingua=nb
+
+# 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 PDF index and footnote handling is worse.
+       xmlto --noautosize -m xmlto-pdf.xsl --with-fop pdf $^
 
 %.html: %.xml
        xmlto html-nochunks $^
index 586d326c0c88a379975e9932eb5c14107ac2863d..cd27cc4efa8edb80acebeba08c7b34d122434005 100644 (file)
@@ -12129,9 +12129,8 @@ controlled by this dead (and often unfindable) hand of the past.
 <!-- PAGE BREAK 264 -->
 </chapter>
 </part>
-<part id="c-conclusion">
+<chapter id="c-conclusion">
 <title>CONCLUSION</title>
-<partintro>
 <para>
 There are more than 35 million people with the AIDS virus
 worldwide. Twenty-five million of them live in sub-Saharan Africa.
@@ -12848,12 +12847,9 @@ potential is ever to be realized.
 <!-- PAGE BREAK 279 -->
 
 </para>
-</partintro>
-<chapter><title></title><para></para></chapter>
-</part>
-<part id="c-afterword">
+</chapter>
+<chapter id="c-afterword">
 <title>AFTERWORD</title>
-<partintro>
 <para>
 
 <!-- PAGE BREAK 280 -->
@@ -14332,9 +14328,7 @@ keep your lawyers away.
 <!-- PAGE BREAK 312 -->
 </section>
 </section>
-</partintro>
-<chapter><title></title><para></para></chapter>
-</part>
+</chapter>
 <chapter id="c-notes">
 <title>NOTES</title>
 <para>
@@ -14422,4 +14416,5 @@ grateful for her perpetual patience and love.
 <!-- PAGE BREAK 338 -->
 
 </chapter>
+<index></index>
 </book>
diff --git a/xmlto-pdf.xsl b/xmlto-pdf.xsl
new file mode 100644 (file)
index 0000000..9fbe604
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">
+<xsl:param name="paper.type">A5</xsl:param>
+</xsl:stylesheet>