docbook-apps

Removing blank space in chapter TOC

  • 1.  Removing blank space in chapter TOC

    Posted 10-22-2011 02:14
      |   view attached
    I am generating chapter tocs with a two-column
    layout, and
    the toc generates with a space before the toc title (attached screenshot). I
    have tried to modify both
    <xsl:templatematch="d:preface|d:chapter|d:appendix|d:article"mode="toc"> and
    <xsl:templatename="division.toc">
    by applying margin-top to the relevant blocks (e.g. <fo:block></fo:block>
    id
    ="toc.{$cid}.{$id}">
    ), and even trying to use fo:inline instead of fo:block (based on the
    assumption that fo:block generates a one-line space). I thought the fo:block

    that
    contains the toc is somehow adding something like a ‘space-before’
    property (or to that effect) before
    the first content (which is the title). I’ve experimented by applying
    negative margin-top
    and padding-top attributes to no avail. I’d like some guidance please on
    what I
    need to modify.



    Thanks,



    Dave Gardiner

    </xsl:templatename="division.toc"></xsl:templatematch="d:preface|d:chapter|d:appendix|d:article"mode="toc">

    Attachment(s)

    doc
    chapter toc block.doc   223 KB 1 version