Results 1 to 5 of 5
  1. #1
    4 Star Lounger
    Join Date
    Nov 2002
    Location
    London, Gtr London, England
    Posts
    496
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Table of Contents - conditional contents (2003 SP2)

    Dear Loungers,

    has anyone every played with TOCs to get contents based on a condition. What I am thinking of os this:

    Insert TOC where heading is level 3 or 4 AND like "2.4.*

    so I am inserting it into section 2.4 and want to see the headings within that section at levels 3 & 4

    I can't see a way to do it but haven't tried manipulating TOCs much beyond the obvious,

    thank you.........liz

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Table of Contents - conditional contents (2003 SP2)

    The easiest way to do this is to put a Bookmark around the sections you want to include in the TOC.

    If you include a bookmark called ForTOC and you want heading levels 3 and 4 from that part of the document then the field would look like...

    <code>{ TOC b "ForTOC" t "Heading 3,1,Heading 4,2" } </code>

    StuartR

  3. #3
    Bronze Lounger IanWilson's Avatar
    Join Date
    Dec 2000
    Location
    Bristol, United Kingdom
    Posts
    1,523
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Table of Contents - conditional contents (2003 SP2)

    Can you set the paras with that kind of content to be a different style when you create them? (They could look just like the regular ones but have a different name.) If so you can specify that the table of contents uses those heading styles rather than the regular Heading 3 and Heading 4 for level 3 and 4 in the contents.

    Ian

  4. #4
    4 Star Lounger
    Join Date
    Nov 2002
    Location
    London, Gtr London, England
    Posts
    496
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Re: Table of Contents - conditional contents (2003 SP2)

    Dear Ian & Staur,

    Thank for the replies. The styles idea won't work in this case because of the "real" TOC at the beginning of the document. however the bookmarks one may do the trick so i shall take a look at that.

    liz

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Table of Contents - conditional contents (2003

    If the bookmark idea doesn't work you could try creating TC fields for your headings and using the f switch in your TOC field so that it builds a table from the TC fields instead of using Headings.

    StuartR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •