Jump to content

Table of Contents


Recommended Posts

Hi Team

I am using or trying to use Affinity Publisher 2.1.1 and I am having serious problems with the Table of Contents. The contents panel does not show my created headings so that I can select them. I have tried for several hours now and I cannot find any tutorials on YouTube for my version of the software. Please tell me where I can find what I am after or is it a bug. The information in the manual is very sparse on the subject and is barely a heading. I tried looking at a sample document, the Alice in wonderland one and low and behold the tick boxes are there, but on my book they are not. I have attached a screen shot and on it in the TOC are listed Body and List Paragraph but none of my headings.

Please Help

Roy

Affinity Publisher 2 TOC 2023-08-04 .jpg

Link to comment
Share on other sites

MAC mini M4 | MacOS Sequoia 15.1.1 | 16 GB RAM | 256 GB SSD 
AMD Ryzen 7 5700X | INTEL Arc A770 LE 16 GB  | 32 GB DDR4 3200MHz | Windows 11 Pro 24H2 (26100.2161)

Affinity Suite V 2.5.6 & Beta 2.6 (latest)
Interested in a free (selfhosted) PDF Solution? Have a look at Stirling PDF

Ferengi Acquisition Rule No. 49: “A deal is a deal is a deal.”

Link to comment
Share on other sites

It seems odd that Body and List Paragraph would show up as available styles to select from in the TOC panel, when according to the Text Styles panel those styles do not exist in the document.

Given that oddity, I'm not sure what to suggest, unless you can share a copy of the .afpub file with us. Even a subset file would be useful, so you could save a copy of the file, then in the copy delete most of the text. We would just need a few pages that make use of the Text Styles you want to appear in the TOC.

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

3 hours ago, RoyKO1405 said:

Hi Walt

I have attached my file for you to have a look at. I hope that you find something to put me back onto the right road.

Hi Roy, the problem is you have created your heading styles as Character Styles instead of as Paragraph Styles. The Table of Contents feature works with Paragraph Styles.

You can see this at a glance by looking at the Text Styles panel - character styles have an "a" icon to their left while paragraph styles have a "¶" icon.

You should be able to fix this by editing the styles and changing their type but I'm going to do some investigation because there seems to be a bug with that.

Link to comment
Share on other sites

You should be able to fix your document with these steps:

  1. Edit the styles that should be paragraph styles and on the Style pane change Type from Character to Paragraph. You have three heading styles so do this for each of them.
  2. Insert the Table of Contents somewhere. Select the three heading styles in the TOC panel to include them.

That should be it but your document has a problem, some of them have two character styles applied to the same range of text which is supposed to be impossible. This likely happened due to a bug that occurs when you redefine a paragraph style as a character style.

For example, the Glossary heading on page 34 has the Heading 1 Challenge and Heading 2 Challenge Chapter character styles applied to it. One of these was originally a paragraph style.

I suggest you fix your document with these steps:

  1. Create new paragraph styles similar to the Heading 1, 2, and 3 character styles
  2. Apply these styles to each of your document's headings. After you apply the right style to each heading, select <No Style> for its character style (not for its paragraph style).
  3. Delete the three old "heading" character styles
  4. Insert the Table of Contents somewhere. Select the three heading styles in the TOC panel to include them.

Good luck!

Edited by MikeTO
clarification
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.