MikeTO Posted August 16, 2023 Share Posted August 16, 2023 I've created a document with 4 levels of headings and I want the TOC to include just the first 3 levels of headings. The TOC panel generates the TOC for all 4 levels when I insert it and I have to turn off Heading 4. That's easy but it leaves behind an anchor for every Heading 4 in the document. And since I have manually-created anchors I'd have to go through and figure out which ones I didn't want so I could delete them if I didn't have a workaround. This isn't a big deal but I think it might be better if we could customize the TOC options before we insert the TOC. The workaround: Rename Heading 4 to something else, it doesn't matter what. The TOC feature searches for anything that starts with the word "Heading" (or its equivalent in the other supported user interface languages) and adds it to the TOC. Renaming it to H4 will prevent the TOC feature from finding it. walt.farrell 1 Quote Download a free PDF manual for Affinity Publisher 2.5 Download a quick reference chart for Affinity's Special Characters Affinity 2.5 for macOS Sequoia 15.1, MacBook Pro 14" (M4 Pro) Link to comment Share on other sites More sharing options...
GarryP Posted August 17, 2023 Share Posted August 17, 2023 Would an alternative to this be: “Remove automatically-generated anchors for TOC entries for a particular style when that style is removed from the TOC”? Or, having a user setting which tells the software which text style prefix to look for when initially creating the TOC styles? Is there also something a bit strange when a Style is removed from the TOC and then put back? See attached video where the anchors are nicely arranged at the start but they’re not after some removal/adding, with (sometimes) Heading 1’s being ‘inside’ Heading 2’s. (Is this a separate problem?) 2023-08-17 08-03-56.mp4 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.