Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
@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.
Copy link to clipboard
Copied
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. 🙂
Find more inspiration, events, and resources on the new Adobe Community
Explore Now