I made a table of content automatically but when I want to remove a line from it, I cannot. How to do it? When I right click and say edit index, it reopes the initial dialogue box. All I want is to manually remove a few lines from table of contents. And no, I do not want to change to main content of my text.
The best way to proceed is to watch what you include in the TOC. By default any paragraph styled Heading n will be included in the TOC.
Consequently if some spurious paragraph ends up in the TOC, assign it another style then Heading n.
If you require exactly the same formatting than the corresponding Heading n, create a derived style from it:
- in the style side pane (
F11
if not already visible), right-click on Heading n name andNew
- give it a name of yours
You’re done. No need to change any attribute. The derived styled, which inherits all attributes from Heading n is not included in TOC hierarchy.
Creating such a style allows you to keep automatic TOC generation (without additional manual step).
In case you insist for manually tweaking the TOC (but you must do it every time you update the TOC), right-click in the TOC and Edit Index
. Uncheck Protect against manual change box.
But again, I warn you: this will cause you more trouble with manual edits than properly styling your document.
I found my solution. I just unchecked “protect against manual entries” when making the TOC
Read my advice above if you want to continue to rely on automatic TOC generation without having to bother for spurious entries.