Hi,
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:call-template>
  </xsl:variable>

  <xsl:if test="//d:figure">
    <xsl:call-template name="page.sequence">
      <xsl:with-param name="master-reference"
                      select="$lot-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"/>
        </xsl:call-template>
      </xsl:with-param>
    </xsl:call-template>

    <!-- repeat for tables, examples, etc. -->
  </xsl:if>

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
b...@sagehill.net

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

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?

Regards


*Kai Alexander Eisele*
SAP CC

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

k.eis...@cenit.de <mailto:k.eis...@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
Bankverbindungen:
Deutsche Bank (BLZ 600 700 70) Kto. 1661 040 IBAN : DE85 6007 0070 0166
1040 00 SWIFT-CODE : DEUTDESS,
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


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to