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

Publisher Table of Contents formatting. How can this be achieved? Plus: BUG


Recommended Posts

Below you  will see a  TOC formatting in one of my (many) books. In order to get the page numbers right-aligned, I need a TAB in front of them. However, when the TOC is generated or updated, it messes it up because the manually added TAB is being removed in the process. Is there any way to avoid/prevent this? (NB: the vertical line is accomplished via an indented "decoration")

And: there is a "bug"  in Publisher as I cannot select ONLY the TOC contents and do a search&replace on it. Publisher searches the entire document, although only the TOC is selected. That brings us to another missing feature.... search&replace in only the selected text. Or have I just missed it somewhere?

TIA,

Helmar

1558883294_Screenshot2022-04-06at10_58_45.jpg.6455b77d3a4076535c266bf32812b906.jpg

Link to comment
Share on other sites

2 hours ago, Helmar said:

However, when the TOC is generated or updated, it messes it up because the manually added TAB is being removed in the process

If you edit the generated TOC by hand then yes, your changes will be removed if you update/regenerate the TOC. You need to make your changes via the TOC panel or by editing the TOC Text Styles via the Text Styles panel.

2 hours ago, Helmar said:

there is a "bug"  in Publisher as I cannot select ONLY the TOC contents and do a search&replace on

That is a missing feature, not a bug. You can add your voice to one of the requests in the Feature Requests section of the forums 

There is a workaround, but it's a bit complex and involves adding some "marker" text before and after the area you want to restrict the changes to, and then incorporating the marker into a Find string for a regular expression operation. I'll dig out an old post about that later.

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

Found it more easily than I expected:

 

 

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

Thanks, Walt, much appreciated! The funny thing is that I constantly use that search and replace using regex in other documents, and I even used it in AFP. So thank you for the heads-up, because that will make it much easier in the future.

Ideal, of course, would be an additional feature that allows prefixing certain elements, because then - as in my case - each style would start with a TAB, making the regex search&replace unnecessary.

Cheers,

Helmar

Link to comment
Share on other sites

41 minutes ago, Helmar said:

because then - as in my case - each style would start with a TAB,

That is something you might be able to handle in the TOC panel, and that's where I would start.

If you provided a sample document someone might be able to show you how.

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

Whether or not to left or right align numbers after a TOC entry is a design choice, but numbers before entries should always be right aligned so I think it's reasonable to consider this a bug. I mean, who would want a TOC that looks like this? But regardless, it would be nice to see this changed or at least an option provided.

image.png.c30649653f0aced6fe27e3528ad6c039.png 

Adobe InDesign has the same flaw, it left aligns numbers before entries and everybody complains and uses difficult workarounds.

Also, the help system is missing an explanation of two of the TOC panel features - if you click the menu icon to the right of a style name you can choose to exclude the page number. I thought Affinity lacked this feature until just now so I was pleased to find it, but it really should be documented. This is also where you go to control the indent level.

image.png.6c5b5f1f1133f4b8edb9612d9a309b24.png

 

 

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

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.