-b xetex \
-r data/dblatex-postprocess \
--indexstyle=myindexstyle.ist \
+ --xsl-user=data/dblatex-endnotes.xsl \
--xsl-user=data/user_param.xsl \
--xsl-user=data/xetex_param.xsl \
-p data/pdf.xsl
--- /dev/null
+<?xml version='1.0'?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
+
+<!--
+Trick to get endnote support. Should have a way to insert LaTeX code
+outside xetex font values. As it is missing, reuse the
+latex.begindocument value (aka \begin{document} to get a code fragment
+in front of it.
+-->
+
+ <xsl:param name="latex.begindocument">
+ <xsl:text>
+\usepackage{endnotes}
+\let\footnote=\endnote
+\def\enoteheading{\mbox{}\par\vskip-\baselineskip }
+\begin{document}
+ </xsl:text>
+
+ </xsl:param>
+</xsl:stylesheet>
+
<xsl:param name="double.sided">1</xsl:param>
<!-- used by dblatex -->
-<xsl:param name="latex.class.book">scrreprtmargins</xsl:param>
<xsl:param name="latex.class.options">paper=6in:9in,pagesize=pdftex,headinclude=on,footinclude=on,twoside</xsl:param>
</xsl:stylesheet>
<xsl:param name="title.font.family">Crimson Text</xsl:param>
<xsl:param name="dingbat.font.family">Crimson Text</xsl:param>
-<xsl:param name="latex.class.book">scrreprtmargins</xsl:param>
<xsl:param name="latex.class.options">pagesize=pdftex,headinclude=on,footinclude=on,twoside</xsl:param>
<!-- from http://cygwin.com/ml/docbook-apps/2004-q2/msg00107.html -->
<!-- fall back to simplex A4 if not creating PDF for a specific size. -->
<!-- xsl:param name="paper.type">A4</xsl:param -->
<xsl:param name="double.sided">0</xsl:param>
-<xsl:param name="latex.class.book">scrreprtmargins</xsl:param>
<xsl:param name="latex.class.options">a4paper</xsl:param>
<!-- font for XSL/FOP -->
+++ /dev/null
-%%
-%% This style is derivated from the scrbook one. Partly based on
-%% <URL: http://www.vetta.org/2008/07/latex-and-lulucom/ > and
-%% <URL: http://dblatex.sourceforge.net/example/manual.pdf >.
-%% http://tex.stackexchange.com/questions/19497/how-do-you-setup-a-tex-document-to-self-publish-a-book-online
-%%
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{book6x9}[2007/04/04 My 6'' x 9'' book Style]
-
-%% Just use the original class and pass the options
-\LoadClassWithOptions{scrreprt}
-% report, book, memoir, scrreprt or scrbook ?
-
-%% Replace footnotes par end notes
-\usepackage{endnotes}
-\let\footnote=\endnote
-
-% Let user define its own endnote heading section(s)
-\def\enoteheading{\mbox{}\par\vskip-\baselineskip }
-
-% Insert this in the docbook code where the notes should be inserted
-%<?latex \theendnotes ?>