Ask Your Question

Updating Index Erases Hyperlinks

asked 2019-09-09 11:46:12 +0200

drfrank01 gravatar image

updated 2019-09-09 13:48:13 +0200

I have a document in Writer. I wanted a TOC. I chose the "Insert TOC and Index" option from the INSERT menu.

I named it Table of Contents and chose the option of "table of contents" which was to be set up for the entire document to 10 levels (I only use about 4). I then chose to create it from INDEX marks which I had installed as subject headings. It does this very well but I want to have a TOC which is interactive so I can have the reader click on the entry and go to the subject. I accomplished this by adding BOOKMARKS to the headings and then linking the TOC entry to the proper bookmark.

Unfortunately if I update theTOC (after editing or adding to the document) from the "update index" option when I Right Click the TOC it erases ALL of the Hyperlinks to the preset bookmarks and this being a short document of 40 pages it is a pain in the BUTT to reacquire these links but it would be impossible in a larger document of 300 pages with 10 or more pages of TOC.

Any suggestions would be appreciated.

I have reviewed several times the instructions for adding hyperlinks to the Table of Contents in a writer document (v6.304) and they make no sense to me.... These are the instructions....

You can assign a cross-reference as a hyperlink to entries in a table of contents. 1. Right-click in the table of contents, and then choose Edit Index or Table of Contents. 2. Click the Entries tab.

3. In the Level list click the heading level that you want to assign hyperlinks to. 

4. In the Structure area, click in the ***box in front of E#***, and then click Hyperlink. 

5. Click in the box behind the E, and then click Hyperlink.

4 why not just say which BOX to click into... Which box is IN FRONT OF E#??????

5 Why not just say which box to click into.....WHICH BOX IS BEHIND THE E??????

Thanks ahead of time... This should be easier I think....Used to be simple in Word Perfect a long time ago.....

edit retag flag offensive close merge delete


Something not really clear: do you mean you want to add items which are not Heading n paragraphs in the TOC? By definition, a TOC contains only Heading n paragraphs (more exactly paragraphs tagged to be part of the document outline, usually described as chapter headings). These items may have hyperlinks to jump back from TOC to content.

Other items not pointing to (sub)chapter headings are more commonly found in an "index" table separate from the TOC.

Please edit your question (don't use an answer) to make clear your goal.

ajlittoz gravatar imageajlittoz ( 2019-09-09 12:35:17 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2019-09-09 16:03:20 +0200

ajlittoz gravatar image

There is no need to bookmark the chapter and subchapter headings as long as they are styled Heading n. This styling defined, by itself, implicit bookmarks on the heading.

If you build the TOC from the out-of-the-shelf Insert>TOC & Index>TOC, Index & Bibliography, the Entries tab already contains what is needed to embed links (from TOC to chapter) to jump to the target chapter or subchapter. This is done by the LS and LE (resp. linkk start and link end) markers. Since the link is in the TOC template, it is automatically recomputed when you update the TOC.

If you need the inverse link from chapter heading to TOC item, this is unfortunately not possible. It could be manually tweaked but any update would destroy the painfully added bookmarks in the TOC.

The best you can do is to add a link (manually) from any (sub)chapter heading to the TOC heading (or rather a bookmark immediately preceding the TOC heading). As this bookmark is external to TOC contents, it will survive TOC update.

In case you already did as above, something has gone wrong in your document. Then attach it to your question for examination. A "lorem ipsum" sample exhibiting the unexpected behaviour is enough if you deem the content confidential.

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-09-09 11:46:12 +0200

Seen: 96 times

Last updated: Sep 09 '19