On Sun, 25 Oct 2015 19:15:56 +0100 "ben.guillon" <ben.guil...@gmail.com> wrote:
> Feel free to do what you think is the best. I have no real idea of > the best option. I guess putting the dedication before the TOC for a > book is a good one. Please then submit your patch. > > In a book I'd expect the dedication to come just > > before the TOC, but in preamble.xsl the dedication > > comes just after the TOC. Patch attached. Apply with cd xsl patch < dedication.patch This was dirt simple. Docbook articles don't have dedications, only books do. Note that while the patch is against the tip of the tree found at sourceforge, I tested by patching dblatex version 0.3.5-2 on Debian Jessie. Note that there are 2 ways to test for a book/article. It seems both more straightforward and more appropriate to test the docbook element for book/article than to test the latex document class. If nothing else, the latex document class can have an arbitrary value. Please let me know if you'd like something different or if you have any questions. Regards, Karl <k...@meme.com> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein
--- preamble.xsl 2015-10-25 18:54:29.564090778 -0500 +++ preamble.xsl.new 2015-10-25 20:52:31.102940298 -0500 @@ -476,6 +476,7 @@ <xsl:if test="contains($layout, 'coverpage ')"> <xsl:text>\maketitle </xsl:text> </xsl:if> + <xsl:apply-templates select="dedication"/> <!-- Print the TOC/LOTs --> <xsl:if test="contains($layout, 'toc ')"> @@ -484,7 +485,7 @@ <!-- Print the abstract and front matter content --> <xsl:apply-templates select="(abstract|$info/abstract)[1]"/> - <xsl:apply-templates select="dedication|preface"/> + <xsl:apply-templates select="preface"/> <!-- Body content --> <xsl:if test="contains($layout, 'mainmatter ')">
------------------------------------------------------------------------------
_______________________________________________ Dblatex-users mailing list Dblatex-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dblatex-users