Scoot Posted March 2, 2023 Posted March 2, 2023 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? Quote
walt.farrell Posted March 2, 2023 Posted March 2, 2023 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. Quote -- 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
Scoot Posted March 3, 2023 Author Posted March 3, 2023 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). Quote
MikeTO Posted March 3, 2023 Posted March 3, 2023 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 Old Bruce 1 Quote Download a free PDF manual for Affinity Publisher 2.6 Download a quick reference chart for Affinity's Special Characters Affinity 2.6 for macOS Sequoia 15.3, MacBook Pro (M4 Pro) and iPad Air (M2)
Scoot Posted March 3, 2023 Author Posted March 3, 2023 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. Quote
MikeTO Posted March 3, 2023 Posted March 3, 2023 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 Scoot 1 Quote Download a free PDF manual for Affinity Publisher 2.6 Download a quick reference chart for Affinity's Special Characters Affinity 2.6 for macOS Sequoia 15.3, MacBook Pro (M4 Pro) and iPad Air (M2)
Scoot Posted March 3, 2023 Author Posted March 3, 2023 Now I see what your saying. Wow that was a sly way of doing it. Great idea! MikeTO 1 Quote
MikeTO Posted March 3, 2023 Posted March 3, 2023 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. Quote Download a free PDF manual for Affinity Publisher 2.6 Download a quick reference chart for Affinity's Special Characters Affinity 2.6 for macOS Sequoia 15.3, MacBook Pro (M4 Pro) and iPad Air (M2)
Old Bruce Posted March 3, 2023 Posted March 3, 2023 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. MikeTO 1 Quote 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.
MikeTO Posted March 3, 2023 Posted March 3, 2023 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. Quote Download a free PDF manual for Affinity Publisher 2.6 Download a quick reference chart for Affinity's Special Characters Affinity 2.6 for macOS Sequoia 15.3, MacBook Pro (M4 Pro) and iPad Air (M2)
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.