Jump to content
You must now use your email address to sign in [click for more info] ×

Recommended Posts

My book consists of 21 separate sections. I have a perfectly behaving table of contents (see attached "before" screenshot). However, when I add several pages to a section, delete a second section in its entirety, and update the table of contents, I get the result shown in the "after" screen shot. Notice that the TOC generation has taken a Heading 1 item (Weddings and Children) and placed a copy of it as a Heading 2 item in the preceding section. You can see this additionally for the Humanities section at the bottom of the "After" screenshot. This behaviour is repeated throughout the re-generated TOC. In addition, the regeneration is adding random Heading 1 items to the Heading 1 section in question. Notice the extraneous "Food" items in the Random screenshot, none of which exists in the text. 

The amount of time I am spending trying to overcome problems that occur in AP is really beginning to affect my view of this software.

toc before.png

toc after.png

random.png

Link to comment
Share on other sites

Is that a .afpub file you can share with us? Or would you need a private upload link so you could share it just with the Serif staff?

Or could you prepare a subset of the document, that illustrates the problem, that you could share with everyone here?

-- 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

I would hazard a guess that the Paragraph Style for "Weddings and Children" The Section in the Text is the same as the headers for the pages. Make and use two different Paragraph Styles. Name one Sections for Text and the other Section Page Header.

The Green and Red illustrate where I think you have a problem, am I correct?

slice1.png.dd083321a7ad1f4fb4ba10125144fb16.png

If you want the Page Headers to be exactly the same formatting as the Heading in the Text then just make a new "Section Page Header" based on "Sections for Text" and change nothing except the name.

Mac Pro (Late 2013) Mac OS 12.7.4 
Affinity Designer 2.4.1 | Affinity Photo 2.4.1 | Affinity Publisher 2.4.1 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Link to comment
Share on other sites

There are only three text styles: Heading 1, Heading 2, and Body text. In the example above Heading 1 is applied to the blue Weddings and children item, Heading 2 to Wisdom, Buffalo etc, and Body Text to the text (not seen here) that follows a Heading 2 item. The TOC was generated correctly originally; it was only after editing a section (with no changes made to text styles) that the re-generated TOC started producing extraneous entries (for the avoidance of doubt, all the Heading 2 "Weddings and children" entries are extraneous, and do not exist in the text). I could move the whole project into InDesign, but that would mean learning an entirely new piece of software, although, if it works properly, that might well save me time in the long run. Or, I could just create a manual TOC in Affinity once the project is finalized.

Walt, thank you for your reply. Unfortunately, I can't share the document at the moment, and I don't have the time (for now) to try to create a reproduceable example of the problem.

Link to comment
Share on other sites

2 hours ago, AnthonyMarrian said:

all the Heading 2 "Weddings and children" entries are extraneous, and do not exist in the text

If we look carefully at your screen capture, we can see that — beside the original, expected first entry —, "Weddings and children" appears once for each page, in the first position. 

As @Old Bruce noticed, you should look at these pages and find where that text appears. Il could well be in the header of the page, as a repetition of the Section title. If this text is set in a Paragraph style which is included in the TOC, it will be repeated for every page — as we see. 

Applying to the header a new paragraph style (not used in your TOC definition), even if that style differs only by its name from the original style, should then solve your problem.

 

(There is nothing new in my post, just reformulating what @Old Bruce said earlier, in case it was useful…)

 

Affinity Suite 2.4 – Monterey 12.7.4 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Link to comment
Share on other sites

Thank you Oufti. I will look more closely at this tomorrow. What is perplexing is that the problematic TOC has only occurred after some minor edits to the project, with no alteration to text style. I wonder whether version 2, to which I recently upgraded, has a slightly different method of generating TOCs. I’ll report back. 

Link to comment
Share on other sites

I was supposing it could have occurred after the introduction of a Running header or (Section) Name field. 

https://affinity.help/publisher2/en-US.lproj/index.html?page=pages/Pages/numberingPages.html?title=Page headers and footers

First, find where on the wrong pages is Wedding written. 😊

Affinity Suite 2.4 – Monterey 12.7.4 – MacBookPro 14" 2021 M1 Pro 16Go/1To

I apologise for any approximations in my English. It is not my mother tongue.

Link to comment
Share on other sites

There are only three text styles: Heading 1, Heading 2, and Body text. In the example above Heading 1 is applied to the blue Weddings and children item, Heading 2 to Wisdom, Buffalo etc, and Body Text to the text (not seen here) that follows a Heading 2 item. The TOC was generated correctly originally; it was only after editing a section (with no changes made to text styles) that the re-generated TOC started producing extraneous entries (for the avoidance of doubt, all the Heading 2 "Weddings and children" entries are extraneous, and do not exist in the text). I could move the whole project into InDesign, but that would mean learning an entirely new piece of software, although, if it works properly, that might well save me time in the long run. Or, I could just create a manual TOC in Affinity once the project is finalized.

Walt, thank you for your reply. Unfortunately, I can't share the document at the moment, and I don't have the time (for now) to try to create a reproduceable example of the problem.

Link to comment
Share on other sites

Please can I thank all those who helped me with this problem.? I have seen the error of my ways, made corrections, and the TOC is behaving (almost) perfectly. My last remaining quandary is how to arrange it such that a Heading 1 TOC item does not appear all on its own at the bottom of a page (i.e. without the accompanying Heading 2 items). Of course, I can edit it manually, but I just wondered if there was a Heading 1 / Heading 2 widows and orphans equivalent.

Link to comment
Share on other sites

1 hour ago, AnthonyMarrian said:

but I just wondered if there was a Heading 1 / Heading 2 widows and orphans equivalent.

If every Heading 1 has at least 1 Heading 2, I would try editing the TOC1 Heading 1 Text Style, and changing its Paragraph Flow options. Try setting Keep with Next.

-- 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

On 7/15/2023 at 12:06 PM, walt.farrell said:

If every Heading 1 has at least 1 Heading 2, I would try editing the TOC1 Heading 1 Text Style, and changing its Paragraph Flow options. Try setting Keep with Next.

My flow options for Heading 1 don't have a Keep with Next setting (see screen grab). However, setting the flow options of Heading 2 to "Keep with previous paragraph" seems to have sorted it.

flow options.png

Link to comment
Share on other sites

16 minutes ago, AnthonyMarrian said:

My flow options for Heading 1 don't have a Keep with Next setting (see screen grab).

image.png.15e3ab816841bee9af0f6184c353d06b.png

-- 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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.