OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Listings placeable at the End of Printed Output?

Yes, it is possible to do this. You could get the stylesheet to do it automatically, but you could also use a special appendix file as you suggest to trigger it only for certain documents. That appendix would need a role attribute to trigger the special processing.

In the template matching on the book element in fo/division.xsl, it calls the "make.book.tocs" template before the content. That template checks the "generate.toc" stylesheet param to see which lists to generate. You would want to set "generate.toc" to just "book toc,title" so it doesn't generate the other lists in the front.

Then you create a custom template for your special appendix to generate the lists of titles, borrowing much of the code from the "make.book.tocs" template, something like:

<xsl:template match="d:appendix[@role = 'lot']">

  <xsl:variable name="lot-master-reference">
    <xsl:call-template name="select.pagemaster">
      <xsl:with-param name="pageclass" select="'lot'"/>

  <xsl:if test="//d:figure">
    <xsl:call-template name="page.sequence">
      <xsl:with-param name="master-reference"
      <xsl:with-param name="element" select="'toc'"/>
      <xsl:with-param name="gentext-key" select="'ListofFigures'"/>
      <xsl:with-param name="content">
        <xsl:call-template name="list.of.titles">
          <xsl:with-param name="titles" select="'figure'"/>
          <xsl:with-param name="nodes" select="//d:figure"/>

    <!-- repeat for tables, examples, etc. -->

Note you need to change the select attribute for figure from .//figure (the context relative to the book element) to //figure so the appendix context can find the figure elements.

This special appendix will also generate an entry in the main TOC, unless you further customize to turn that off or change its appearance.

Bob Stayton
Sagehill Enterprises

On 4/15/2015 3:11 AM, Eisele, Kai Alexander wrote:

Is there any chance to have lists of figures, tables and examples
positioned at the end of printed output (PDF documents)?

By default, the listings appear at the beginning of the documents right
after the actual TOC.

Is it possible to customize a sort of document appendix, that contains
the lists of figures, tables and examples?


*Kai Alexander Eisele*

Industriestraße 52-54
D-70565 Stuttgart
Phone:  +49 (0) 711-78 25-3241
Fax:    +49 (0)711 7825 44-4145

k.eisele@cenit.de <mailto:k.eisele@cenit.de>

www.cenit.com <http://www.cenit.com/en_EN.html>__

CENIT AG, Industriestrasse 52-54, 70565 Stuttgart, Tel.: +49 711
7825-30, Fax: +49 711 7825-4000, Internet: www.cenit.de
Geschaeftsstellen: Berlin, Frankfurt, Hamburg, Hannover, Muenchen,
Oelsnitz, Ratingen, Saarbruecken
Vorstandsmitglieder: Kurt Bengel, Matthias Schmidt
Aufsichtsratsmitglieder: Andreas Schmidt (Vorsitzender des
Aufsichtsrats), Hubert Leypoldt, Andreas Karrer
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166
Commerzbank (BLZ 600 400 71) Kto. 532 015 500 IBAN : DE83 6004 0071 0532
0155 00 SWIFT-Code : COBADEFF600,
Registergericht: Amtsgericht Stuttgart
Handelsregister: HRB Nr. 19117
Umsatzsteuer: ID-Nr. DE 147 862 777

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]