Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create (H) Header and (P) Paragraph style on same line to produce a TOC and 508 Accessible document

Participant ,
Jan 20, 2024 Jan 20, 2024

Create (H) Header and (P) Paragraph style on same line that will pickup the styles when I produce the TOC and make the document accessable. 

 

How do I achive this?

 

Nested Styles and GREP come up when searhcing online but in the +30 years working with InDesign I have never used Nested Styles, and only use basic GREP configurations. 

 

Thank you, Linda

 

TOPICS
How to , Type
545
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 20, 2024 Jan 20, 2024

This basically cannot be done in InDesign. Unlike FrameMaker, ID does not have run-in or side-head style options. Everything in your sample paragraphs would have to be one Paragraph Style, although a GREP or Nested Style could be used to apply a Character Style for those headings. But TOCs work on Paragraph Styles only, so there's no way to snag a heading formatted like that as a separate element.

 

The only way I can see to accomplish this is to use a heading style  combined with a body style t

...
Translate
Community Expert ,
Jan 20, 2024 Jan 20, 2024

This basically cannot be done in InDesign. Unlike FrameMaker, ID does not have run-in or side-head style options. Everything in your sample paragraphs would have to be one Paragraph Style, although a GREP or Nested Style could be used to apply a Character Style for those headings. But TOCs work on Paragraph Styles only, so there's no way to snag a heading formatted like that as a separate element.

 

The only way I can see to accomplish this is to use a heading style  combined with a body style that has zero leading between them (I think the approach is to apply zero leading to the first paragraph), with a fixed starting indent for the body paragraph. That would wrap the copy up to the heading, but with variable space between them on the line and a fixed limit to how long the heading text could be. Very clumsy unless the content is very regular in size (all headings about 25 characters long, for example).

 

(ETA: And in a quick test, I can't make that work — it works only for a single line overall. I am pretty sure I had a method for multi-line body text but can't bring it to mind...)

 

Heading over a body paragraph is the only easy method to achieve your TOC (and probably accessibility) goals. Anything else is going to require some very convoluted layout (such as hidden header paragraphs for the TOC only) that would work for layout but probably be completely incompatible with accessibility.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 22, 2024 Jan 22, 2024

@James Gifford—NitroPress Thank you for taking the time to check into this. I've produced this type of layout but before didn't have to apply it to a TOC or was I previously required to make the layout accessable years back.

 

I'll repost as an "feature request" in uservoice. If a programmer can make it happen in FrameMaker, they should be able to make it work in InDesign. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 22, 2024 Jan 22, 2024
LATEST

I'm pretty sure there are multiple requests for side heads and run-in heads — look for them and add your voice.

 

The wish has gone on a long time, though. I wouldn't hold up any projects waiting for the features to appear. 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines