docbook-apps

  • 1.  TOC position in the document

    Posted 08-16-2010 14:19
    Hi List.
    I would like to set the position in the document where the TOC should be
    displayed. I got several sections, and my which would be to set it to
    appear after a certain section. Is there a way I can achieve this using
    Docbook (v5, the output being PDF with FOP, but should not matter) ?

    Thanks a lot in advance
    Regards,
    Fabien





  • 2.  RE: TOC position in the document

    Posted 08-20-2010 16:53
    There is a parameter in the FO transforms that might be helpful. We use empty toc elements to indicate where to generate a ToC and set this parameter accordingly:

    http://docbook.sourceforge.net/release/xsl/current/doc/fo/process.empty.source.toc.html

    Our transforms have considerable customization and are still based on 4.2, but this should do what you are asking. Not that it interacts with the generate.toc parameter so you may have to tinker with both.

    Regards,
    Larry Rowland




  • 3.  RE: TOC position in the document

    Posted 08-24-2010 16:02
    Hi Larry.
    Nice and more simple than adding some customization as I have done.
    Will use this method, as it allows to change where the TOC is to be placed dynamically (depending on the source document).


    Thanks !
    Regards,
    Fabien


    -----Message d'origine-----
    De : Rowland, Larry [mailto:larry.rowland@hp.com]
    Envoyé : vendredi 20 août 2010 18:53
    À : Fabien Tillier; docbook-apps@lists.oasis-open.org
    Objet : RE: TOC position in the document

    There is a parameter in the FO transforms that might be helpful. We use empty toc elements to indicate where to generate a ToC and set this parameter accordingly:

    http://docbook.sourceforge.net/release/xsl/current/doc/fo/process.empty.source.toc.html

    Our transforms have considerable customization and are still based on 4.2, but this should do what you are asking. Not that it interacts with the generate.toc parameter so you may have to tinker with both.

    Regards,
    Larry Rowland