Results 1 to 8 of 8
  1. #1
    New Lounger
    Join Date
    Nov 2004
    Location
    Johannesburg, South Africa
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table of Contents (XP&2003)

    Table of contents has been generated using only Heading1 styles. This style has been modified to format the font to bold and underline in the underlying template. The toc is generated to pick up formatting from the template. The toc picks up the bold, but not the underline. If I modify the TOC1 style to have underline, it underlines the clause and the page numbers, which is not what I need.

    Any ideas?
    Attached Files Attached Files

  2. #2
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Hi Heather:
    It is because your hyperlink style is underlined. Bold, underline, italic, etc. are toggle properties. Here, you are asking Word to bold & underline your Heading 1 styles (which WILL be picked up by the TOC) & then the underlying hyperlink style is applying underline again, cancelling the effect. You have two choices: either change the hyperlink style to remove the underline (& then update your TOC) or remove the hyperlink switch from the TOC.

    To remove it:
    <UL><LI>Press Alt+F9 to view the field codes for the TOC
    <LI>Delete the <code>h</code> switch
    <LI>Press F9 to update the entire TOC[/list]The pages will still be hyperlinked, but the entire TOC will not be.
    Hope this helps,

  3. #3
    New Lounger
    Join Date
    Nov 2004
    Location
    Johannesburg, South Africa
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Hi Phil

    Thank you for your suggestions. I have tried both ways, but still have the same problem. Do you think it is because I have generated the toc from the template? Can you suggest anything else?

    Heather

  4. #4
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Tallahassee, Florida, USA
    Posts
    901
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Phil -- I have to admit that I was really looking forward to this being the fix since it's something we've seen in our organization since we started the upgrade to XP. However, once I got to work I checked and the TOC macro we use removes the h switch from the TOC code. Bummer! <img src=/S/sigh.gif border=0 alt=sigh width=15 height=15>
    Karen

  5. #5
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Hi Heather & Karen:
    Sorry, I goofed. The workaround involves one more step. A TOC will pick up direct formatting applied to the styles, but not part of the style definition. Therefore, to have this work, you have to also remove the underline as part of the heading style & then put it back as direct formatting. It really isn't a satisfactory solution, but it can be done. See the attached.

    By the way, it seems like there is some corruption in your document. It took me a long time to open it. I copied everything except the last paragraph mark to a new document & it opens much more quickly.
    Attached Files Attached Files

  6. #6
    New Lounger
    Join Date
    Nov 2004
    Location
    Johannesburg, South Africa
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Dear Phil

    Thank you!!! This worked perfectly.

    About the corruption, though. Is the document corrupt because I have found that with WindowsXP opening a document that was created from a template on a different server takes forever to open. The only workaround I have is to strip the template from the document on a Windows98 pc.

    Heather

  7. #7
    5 Star Lounger
    Join Date
    Oct 2002
    Location
    Wellington, Wellington, New Zealand
    Posts
    621
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Corruption tends to be a function of a particular document.
    I'd suggest that the template you're using is itself corrupted (rather than the operating systems). Use Phil's last paragraph removal trick on that template too.

  8. #8
    5 Star Lounger
    Join Date
    Dec 2000
    Location
    Tallahassee, Florida, USA
    Posts
    901
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Table of Contents (XP&2003)

    Hi, Heather.
    <hr>opening a document that was created from a template on a different server takes forever to open<hr>
    This is because on a Win2000 or WinXP (and I assume also Win2003) network Word uses UNC paths for the attached templates. We were having a similar issue where I work. When someone in our NY office e-mailed a memo to someone in our LA office, openning it would take forever! If the recipient's servers have a similar naming convention, they could be experiencing the same issues. We added a routine to all of our correspondence templates to automatically attach Normal to the resulting document.

    Anyway, you can stop Word from searching your WAN the next time it's opened by going to Tools / Templates and Add-Ins and at the top where it says "Document Template" replace the contents with Normal and click Attach (assuming there is no lingering automation required for the template to function properly). The next time you open it you'll notice it's much faster, and this is a bit quicker than going to a Win98 PC.
    Karen

Posting Permissions

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