Table of Contents using \t
I have a document with many components - each component has 3 levels of headings and I've created tables of contents for those using \b and bookmarks, which work exactly as they should. I'm not trying to create a table of contents of each of these chapters.
I've created new quick styles for the chapter headings, and have created a ToC using \t. The table of contents is generated and the hyperlinks work - all appears as I'd like, but the hyperlinks are absolute or static links; whereas the rest of the ToC's are relative.
What I mean by that is when I mouse-over the \b ToC's, I see the usual "Current Document" tool-tip I would expect to see, and renaming the document or saving as PDF maintains this hyperlink. When I mouse-over the \t ToC, I see a tool-tip that reads "file:///c:\ etc.", pointing towards the file I'm working on. The link therefore works, provided I don't rename or move the file. It also maintains that specific link as a PDF, which is very problematic.
Please could you advise?
The following are examples of the switches I'm using:
{TOC \n \z \h \t "Section Heading,1,SubSection Heading,2,SHEQ Component,3"}
vs
{TOC \o "1-2" \h \z \u \b QMSManual}
Report abuse
Thank you.
Reported content has been submitted
* Please try a lower page number.
* Please enter only numbers.
MS 365 Word MVP since 2005
Volunteer Moderator
MS 365, Win 11 Pro
~~~
Note that I do not work for Microsoft
https://mvp.microsoft.com/
~~~
Please specify Word version & OS in your question
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I can't reproduce this at all. Would you like to share an example document which exhibits the problem you are describing? You can upload the document to SkyDrive, make it public, and post a link here.
MS 365 Word MVP since 2005
Volunteer Moderator
MS 365, Win 11 Pro
~~~
Note that I do not work for Microsoft
https://mvp.microsoft.com/
~~~
Please specify Word version & OS in your question
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I've cut out most of the content, leaving a skeleton for you to play with. https://skydrive.live.com/redir?resid=EFA20C173C60F3CB!130&authkey=!APxoyGD5IRNHLaY
You can imagine the full document having many sections and subsections. The ToC's of each subsection use \b o "1-3" switches and work perfectly, but the section TOC's that don't use the default Word headings 1-9 need to use the \t switch and they are causing the problem for me.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
If you haven't already done so, go to File | Options | Advanced: Web Options | Files and clear the check box for "Update links on save."
Fairhope, Alabama USA
http://ssbarnhill.com
http://wordfaqs.ssbarnhill.com
Screen shots captured with TechSmith's Snagit
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
MS 365 Word MVP since 2005
Volunteer Moderator
MS 365, Win 11 Pro
~~~
Note that I do not work for Microsoft
https://mvp.microsoft.com/
~~~
Please specify Word version & OS in your question
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
The updating is something you can't get around in Word; that's true. Setting the option to update fields on print will be helpful (File tab | Options | Display: "Update fields before printing").
The incorrect hyperlinks after PDF conversion suggest a bug, but whether Microsoft considers it a bug I do not know.
MS 365 Word MVP since 2005
Volunteer Moderator
MS 365, Win 11 Pro
~~~
Note that I do not work for Microsoft
https://mvp.microsoft.com/
~~~
Please specify Word version & OS in your question
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
I've got exactly the issue.
Is there any solution yet?
To narrow it down:
I'm experiencing this behaviour with a table of figures. Most figures are linked correctly to the current document but there are some, that are linked to the concrete file which yields the same PDF issues, Boris described.
The difference is the layout text wrapping: Those figures that are linked correctly are "in line with text". Those that aren't working are "square".
I could edited the layout, but I need to have the text float around the images. So what to do? :(
Report abuse
Thank you.
Reported content has been submitted
Was this reply helpful?
Sorry this didn't help.
Great! Thanks for your feedback.
How satisfied are you with this reply?
Thanks for your feedback, it helps us improve the site.
How satisfied are you with this reply?
Thanks for your feedback.
Question Info
Last updated April 14, 2025 Views 1,006 Applies to: