Results 1 to 7 of 7
  1. #1
    New Lounger
    Join Date
    Jan 2001
    Location
    UK, Cambridgeshire, England
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    TOC Styles (Word97 SR2)

    Can I create two styles of TOC in a single document?(well, no 'I' can't, but is it possible?)

    I require a single column, full page width, Heading 1 TOC at the front of the document and two column Heading 2 and 3 TOC in each section.

    I usually create TOCs by entering the field codes directly, rather than using the menu option.

    TIA

    ChrisP

  2. #2
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: TOC Styles (Word97 SR2)

    Yes Chris, 'You' can.

    You will need to create bookmarks for each section that will need a separate TOC. The TOC fields should be created to look something like this
    {TOC o "1-1"}
    {TOC o "2-3" b "Sect1" }
    where Sect1 is the named bookmark which contains all of the first section

    {TOC o "2-3" b "Sect2" }
    where Sect2 is the named bookmark which contains all of the second section
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  3. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: TOC Styles (Word97 SR2)

    Chris

    Don't run out and use TC fields just yet.

    Try the following
    {TOC t "Heading 1,1"}
    {TOC t "Heading 2,2,Heading 3,3" b "Sect 1"}

    The first builds a TOC across the entire document bringing in every Heading 1 style and using TOC 1 to display it
    The second selects victims from the Sect 1 bookmark and displays the Heading 2 entries using TOC 2 and the Heading 3 entries with a TOC 3

    You can try other variants such as
    {TOC t "Heading 2,5,Title,5,Notes,6"}
    ... where Heading 2, Title and Notes are all styles
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  4. #4
    New Lounger
    Join Date
    Jan 2001
    Location
    UK, Cambridgeshire, England
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TOC Styles (Word97 SR2)

    We/I really ought to get a life, well two lives would be nice, one for the week and ..... oh never mind.

    One more try... No problem with creating tables of contents from sets and subsets of headings. All hunky dory.

    But, say... Table A has headings 1 and 2 in it, table B has headings 2 and 3. Heading 2 uses TOC2 in both tables. But I wish to format TOC2 diferently in each table. I can't, can I? So how do I get around it? Please.

    TIA

    ChrisP

  5. #5
    New Lounger
    Join Date
    Jan 2001
    Location
    UK, Cambridgeshire, England
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TOC Styles (Word97 SR2)

    <P ID="edit" class=small>Edited by ChrisP on 13-Sep-01 13:32.</P>Thanks Andrew, I did!

    But its the styles that are fooling me. The o "1-1" TOC is a full width A4. The o "2-3" is also A4, but two column. Word appears to pick up the same style (TOCn) for both - making the right-tab wrong for one of them. If I modify the tab for two column, not suprisingly it is wrong for the A4. If I create a toc_sub style for the two column fromat, the table reverts to TOC styles when it is updated.

    Unless I am missing the obvious, which would not be the first time, I think the only way forward is with TC fields.

    If that is so, is there a macro out there for automating the creation of TC fields?

    Once again, TIA

    ChrisP

  6. #6
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,852
    Thanks
    4
    Thanked 259 Times in 239 Posts

    Re: TOC Styles (Word97 SR2)

    I must have missed that Heading 2 was appearing in both tables...

    You can't format a style to be different in different section of the document so you have to use different styles for each table by defining which style goes to which TOC style
    {TOC t "Heading 1,1,Heading 2,2"}
    {TOC t "Heading 2,5,Heading 3,6" b "Sect 1"}

    The TOC1 and TOC2 styles appear in the first table
    TOC5 and TOC6 will appear in the second.
    If these styles are independent of each other there should be no problem.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  7. #7
    New Lounger
    Join Date
    Jan 2001
    Location
    UK, Cambridgeshire, England
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: TOC Styles (Word97 SR2)

    Re: the current Lounge thread about thankyous.

    Thank you Andrew, your last post did the trick.

    ChrisP

Posting Permissions

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