Ociel Posted January 10, 2022 Share Posted January 10, 2022 Affinity Publisher 1.10.4.1198 Windows 10 reproducable: yes Steps to reproduce the bug Create a text box with a text style (e.g. header 1) Duplicate it and replace the text, so you can see the bug Create a table of content, where only elements with text style header 1 are shown Change the order of the text boxes, so that the first one is behind the second one. Switch the content of the text boxes. Update the table of content. Result: The order in the table of content doesn't reflect the order of the elements in the document (see the attached screenshot). Expected result: The order should reflect the order of the elements in the document. I hope, my description is understandable🙂 Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted January 10, 2022 Share Posted January 10, 2022 47 minutes ago, Ociel said: Result: The order in the table of content doesn't reflect the order of the elements in the document (see the attached screenshot). TOC entries are created in a specific order: Start with the first page of the document. Start with the bottom layer in the Layers panel stack for the page you're on, as the bottom layer is assumed to have been created first. Look for relevant/selected text styles in that layer, and include them in the TOC. Move up to the next higher layer in the Layers panel. If none, move to the next document page, and resume at step 2. Otherwise, resume at step 3. (I have omitted some aspects related to Pinned text frames, and possibly a few others, but that is the basic approach.) The layout as it appears visually on the page is not relevant. The processing is driven by the order in the Layers panel, from bottom to top. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
MikeTO Posted January 10, 2022 Share Posted January 10, 2022 I don't believe this is a bug. The order of entries in a table of contents is dependent on the layer position of the text frames. The TOC engine searches for entries starting at the bottom layer on a page, not the top, which is correct. Here's a fixed version of your example - you need to position Content 1 below Content 1 in the Layers studio (or use send to back). Quote Download a free manual for Publisher 2.4 from this forum - expanded 300-page PDF My system: Affinity 2.4.2 for macOS Sonoma 14.4.1, MacBook Pro 14" (M1 Pro) Link to comment Share on other sites More sharing options...
Ociel Posted January 10, 2022 Author Share Posted January 10, 2022 Thanks for your explanation, @walt.farrell and @MikeTO! I understand. Still, from a user's point of view, who doesn't know how the entries are ordered in the TOC, it may be weird and seems to be a bug. But, I guess, it would be more difficult, to implement it to look at the layout because there may be cases, where it isn't clear, which element should come first. Quote Link to comment Share on other sites More sharing options...
walt.farrell Posted January 10, 2022 Share Posted January 10, 2022 8 minutes ago, Ociel said: from a user's point of view, who doesn't know how the entries are ordered in the TOC Some users will already be familiar with that, as it applies in other areas. For example, in Designer if you have multiple Artboards, and export your document as a PDF, the PDF pages are generated from 1 to n based on the bottom-to-top order in the Layers panel. But some may be surprised, as you were. And this does not seem to be covered in the Help. Quote -- Walt Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases PC: Desktop: Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 Laptop: Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU. iPad: iPad Pro M1, 12.9": iPadOS 17.4.1, Apple Pencil 2, Magic Keyboard Mac: 2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.4.1 Link to comment Share on other sites More sharing options...
Dennison Posted January 11, 2022 Share Posted January 11, 2022 Thank you. I was struggling with this took. 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.