Results 1 to 6 of 6
  1. #1
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    Oregon, USA
    Posts
    162
    Thanks
    42
    Thanked 2 Times in 2 Posts

    TOC problem in Word 2013

    I have a two-page Table of Contents in a brief. Court rules require certain static text (that does not change and does not reference a page number) be interspersed between the TOC elements (lines) that carry page numbers. I paste the static text between the TOC elements, and two things happen: (1) the static text takes on the same shaded appearance on the screen as the elements (even though the static text has the "Normal" style, and (2) when I refresh the TOC, the static text disappears!

    How do I get the static text to remain?

  2. Subscribe to our Windows Secrets Newsletter - It's Free!

    Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #2
    Super Moderator
    Join Date
    May 2002
    Location
    Canberra, Australian Capital Territory, Australia
    Posts
    3,854
    Thanks
    0
    Thanked 176 Times in 162 Posts
    Because a Table of Contents is a reference field, anything you insert into it will be deleted next time it updates. If you want your 'static' text to appear in the Table of Contents, you need to add it to the headings that the Table of Contents references. There really is no way around this.
    Cheers,

    Paul Edstein
    [MS MVP - Word]

  4. The Following User Says Thank You to macropod For This Useful Post:

    Auggie (2014-08-13)

  5. #3
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,503
    Thanks
    3
    Thanked 140 Times in 133 Posts
    As Paul says, you will need to include the static text in the document proper and include that style/outline level when specifying the TOC entries.

    You can tell the TOC not to include a page number for specific TOC levels. For instance the following TOC field won't show the page numbers for the outline level 1 (Heading 1) styles.
    { TOC \o "1-4" \n "1-1"}
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  6. The Following User Says Thank You to Andrew Lockton For This Useful Post:

    Auggie (2014-08-13)

  7. #4
    2 Star Lounger
    Join Date
    Jun 2001
    Location
    Oregon, USA
    Posts
    162
    Thanks
    42
    Thanked 2 Times in 2 Posts
    Thank you Paul and Andrew! May I confirm my understanding, please?

    The static text exists elsewhere in the document; I understand it's simply a matter of assigning a distinct style to the static text, which will cause the TOC to pull it into the TOC.

  8. #5
    Silver Lounger Charles Kenyon's Avatar
    Join Date
    Jan 2001
    Location
    Madison, Wisconsin, Wisconsin, USA
    Posts
    1,672
    Thanks
    49
    Thanked 61 Times in 59 Posts
    Quote Originally Posted by Auggie View Post
    Thank you Paul and Andrew! May I confirm my understanding, please?

    The static text exists elsewhere in the document; I understand it's simply a matter of assigning a distinct style to the static text, which will cause the TOC to pull it into the TOC.
    You also need to tell the TOC (field) to pull in that Style and what to do with it when it does (i.e. no page number, & format). This is done by modifying the field's switches and by setting the format for TOC styles (the styles for text generated by the TOC, not those which trigger inclusion in the TOC).

    Creating a Table of Contents
    Complex Documents - Generating a Table of Contents
    Charles Kyle Kenyon
    Madison, Wisconsin

  9. The Following User Says Thank You to Charles Kenyon For This Useful Post:

    Auggie (2014-08-13)

  10. #6
    Super Moderator
    Join Date
    Jan 2001
    Location
    Melbourne, Victoria, Australia
    Posts
    3,503
    Thanks
    3
    Thanked 140 Times in 133 Posts
    Auggie

    Yes, it is a matter of assigning a distinct style to that static text and then telling the TOC to include it without page numbers. I would recommend you edit the TOC field directly. eg The following TOC would build using the usual outline levels 1-4 and a style called 'Static' which would appear as a TOC 5 style which would not have a page number.
    { TOC \o "1-4" \t "Static,5" \n "5-5"}

    You could then edit the TOC 5 style to have the appearance you wanted for these entries.
    Andrew Lockton, Chrysalis Design, Melbourne Australia

  11. The Following User Says Thank You to Andrew Lockton For This Useful Post:

    Auggie (2014-08-14)

Tags for this Thread

Posting Permissions

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