Jump to content

Recommended Posts

Posted

If I have a TOC that's connected to two different Heading paragraph styles can I edit the TOC to display the two different Heading paragraph styles on the same line instead of separate lines?

Posted

You could certainly edit it manually, but then if you click the Update TOC button all your edits will be removed.

Perhaps if you provided additional information and maybe showed us a specific example of what you have in the document and what you want in the TOC we can find some different approaches.

-- 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.3.1, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sequoia 15.0.1

Posted

Another example of the way the TOC would look:

Chapter 1 (H1) - Subtitle 1 (H2)

Chapter 2 (H1) - Subtitle 2 (H2)

Chapter 3 (H1) - Subtitle 3 (H2)

Notice there's a - (minus sign) separating Heading 1 from Heading 2 instead of a paragraph separation. This applies to the TOC, but the source would be separated by a paragraph (see first example).

Posted

The only way I can think of to do this is to format it like this. I used pseudo HTML here just to make it clear where the styles start and end.

<h1>Title <white>–</white> <br>
<subtitle>Subtitle</subtitle></h1>

Define a character style based on Heading 1 with colour = white. Apply that to the en dash after your title. Because it's white it won't be visible in your document. <br> just means insert a line break, not a paragraph break.

Define another character style based on Heading 1 for the subtitle - note that this is a character style and not a paragraph style.

Publisher would then show this in the TOC as:

Title – Subtitle

The white dash would be black in the TOC and the Title and Subtitle would both be formatted with TOC 1: Heading 1.

Cheers

Posted

Thanks Mike for your response, though I'm not clear about how to make this happen. So the pseudo HTML is not something I'm actually suppose to insert in the TOC Heading 1 style? If not then how is changing the character styles going to have such an effect as illustrated by the HTML? I've tried assigning TOC 1: Heading 1 to both Title and Subtitle and I've modified TOC 1: Heading 1 Number character style to be white, but seeing that it's not resulted in much I doubt that that's all I need to do.

Posted
3 hours ago, Scoot said:

Thanks Mike for your response, though I'm not clear about how to make this happen. So the pseudo HTML is not something I'm actually suppose to insert in the TOC Heading 1 style? If not then how is changing the character styles going to have such an effect as illustrated by the HTML? I've tried assigning TOC 1: Heading 1 to both Title and Subtitle and I've modified TOC 1: Heading 1 Number character style to be white, but seeing that it's not resulted in much I doubt that that's all I need to do.

No, the pseudo code was just to show where the tags started and stopped. Sorry, I think like a programmer.

Here's a test document that shows how to do it. Three styles: Heading 1, Heading White, and Heading Subtitle. The text is in the right text frame and the TOC is in the left text frame.

TOC.afpub

798726203_Screenshot2023-03-03at8_52_54AM.png.3d7b5cc2a9dc8c0f27a8a402fd34f054.png

Posted

One note: when using a character style at the end of a line or paragraph (Heading White and Heading Subtitle), pressing Return will not clear the character style. The Next Style feature only applies to paragraph styles. So you must choose No Style (character) when typing the next line or paragraph or the character style will be continued.

Posted

Excellent work @MikeTO,

One change I would make is to get rid of the White Character style and replace it with a clear Character Style. So as to avoid this sort of occurrence, where the first set of headings has the Clear Character style and the second has your White Style.

126924412_ScreenShot2023-03-03at7_33_12AM.png.5f8a6490602f6f00080e996ea416fd92.png

1245446075_ScreenShot2023-03-03at7_34_49AM.png.dd2e6a3bbbca46d367aaddd5cee6182a.png

 

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

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

Posted
2 minutes ago, Old Bruce said:

One change I would make is to get rid of the White Character style and replace it with a clear Character Style. So as to avoid this sort of occurrence, where the first set of headings has the Clear Character style and the second has your White Style.

Agreed, no fill is better than white.

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.