Motljus Posted July 4, 2023 Share Posted July 4, 2023 Whenever I have headings separate from the body text fields, Affinity fails to set the order correctly in Table of Contents according to how they appear on the page (top to bottom). There doesn't seem to be any logic to what order it picks and it really looks random. See example. faulty_index_example.afpub Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted July 4, 2023 Share Posted July 4, 2023 How it appears on the page is not the relevant factor. What's important is the order in the Layers panel. As with painting on a canvas, items lower in the stack are assumed to have happened earlier. Thus, within a page, items lower in the layer stack were created first (or are assumed to have been), and will appear earlier in the TOC. (It's actually a bit more complex, but that should get you started.) thomaso and PaoloT 2 Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. Laptop 2: Windows 11 Pro 24H2, 16GB memory, Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) 12 Core CPU 4.01 GHz, Qualcomm(R) Adreno(TM) X1-85 GPU iPad: iPad Pro M1, 12.9": iPadOS 18.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1 Link to comment Share on other sites More sharing options...
Motljus Posted July 5, 2023 Author Share Posted July 5, 2023 But other DTP programs follow how the text fields are ordered visually from top to bottom on the page. And even if I order the layers, the TOC still ignore the layer hierarchy. faulty_index_example.afpub walt.farrell 1 Quote Link to comment Share on other sites More sharing options...
GarryP Posted July 5, 2023 Share Posted July 5, 2023 (edited) Hmm… There’s something strange about that TOC. The Frame Text containing the word “Index” is above the TOC layer in the layer stack but, even though the TOC has “Include entries before TOC” switched OFF, the word “Index” is still in the TOC. I would not have expected that. The Indent Levels of the Styles seem to be correct. Deleting the TOC layer, adding a new text frame, and then inserting a new TOC into it removes the “Index” entry but it doesn’t fix the TOC ordering. The layers seem to be ordered correctly in the layer stacks but the TOC isn’t putting them in the right order. Making the text flow from the frame text on page 2 to the frame text on page 3 seems to create more of a problem where “Heading 2b” now seems to be 'grouped' with the “Heading 1”s. [Edit: This is actually fine.] It’s all a bit odd. I’m not sure what to suggest next. Edited July 5, 2023 by GarryP Added clarification. Quote Link to comment Share on other sites More sharing options...
Motljus Posted July 5, 2023 Author Share Posted July 5, 2023 43 minutes ago, GarryP said: Hmm… There’s something strange about that TOC. The Frame Text containing the word “Index” is above the TOC layer in the layer stack but, even though the TOC has “Include entries before TOC” switched OFF, the word “Index” is still in the TOC. I would not have expected that. The Indent Levels of the Styles seem to be correct. Deleting the TOC layer, adding a new text frame, and then inserting a new TOC into it removes the “Index” entry but it doesn’t fix the TOC ordering. The layers seem to be ordered correctly in the layer stacks but the TOC isn’t putting them in the right order. Making the text flow from the frame text on page 2 to the frame text on page 3 seems to create more of a problem where “Heading 2b” now seems to be 'grouped' with the “Heading 1”s. It’s all a bit odd. I’m not sure what to suggest next. Yeah, it's just a demonstration file of what I have been experiencing in my real book projects. Just wanted to create a "clean" new file so that no other stuff was affecting the ordering. Quote Link to comment Share on other sites More sharing options...
MikeTO Posted July 5, 2023 Share Posted July 5, 2023 4 hours ago, GarryP said: The Frame Text containing the word “Index” is above the TOC layer in the layer stack but, even though the TOC has “Include entries before TOC” switched OFF, the word “Index” is still in the TOC. I would not have expected that. The Indent Levels of the Styles seem to be correct. Deleting the TOC layer, adding a new text frame, and then inserting a new TOC into it removes the “Index” entry but it doesn’t fix the TOC ordering. The layers seem to be ordered correctly in the layer stacks but the TOC isn’t putting them in the right order. Hmm, this is confusing. I think that when considering whether to "Include entries before TOC", Publisher searches the layer stack from top to bottom instead of bottom to top. That should probably be changed. Deleting the TOC layer and adding a new one works around the issue because you're reversing the layer order. 5 hours ago, Motljus said: But other DTP programs follow how the text fields are ordered visually from top to bottom on the page. And even if I order the layers, the TOC still ignore the layer hierarchy. That's correct, some other DTP apps search layers from the top to the bottom. Serif chose to search from bottom to top. There is no right or wrong way, it's just something to be aware of. Here's your document again. I re-ordered your layers to work the way Publisher needs them to be, and also reordered the Index heading layer the opposite way to accommodate what Garry pointed out. faulty_index_example.afpub 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...
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.