From: Petter Reinholdtsen Date: Sun, 29 Jul 2012 12:45:06 +0000 (+0200) Subject: Change PDF build rule to use xmlto with fop, which understand better than... X-Git-Tag: edition-2015-10-10~2020 X-Git-Url: https://pere.pagekite.me/gitweb/text-free-culture-lessig.git/commitdiff_plain/87cc4559990fa3f63563c185a8e5be7d523807a4 Change PDF build rule to use xmlto with fop, which understand better than dblatex. --- diff --git a/Makefile b/Makefile index 58bc5f2..48e4e58 100644 --- 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 $^ diff --git a/freeculture.xml b/freeculture.xml index 586d326..cd27cc4 100644 --- a/freeculture.xml +++ b/freeculture.xml @@ -12129,9 +12129,8 @@ controlled by this dead (and often unfindable) hand of the past. - + CONCLUSION - 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. - - - - + + AFTERWORD - @@ -14332,9 +14328,7 @@ keep your lawyers away. - - - + NOTES @@ -14422,4 +14416,5 @@ grateful for her perpetual patience and love. + diff --git a/xmlto-pdf.xsl b/xmlto-pdf.xsl new file mode 100644 index 0000000..9fbe604 --- /dev/null +++ b/xmlto-pdf.xsl @@ -0,0 +1,4 @@ + + +A5 +