Skip to main content
Participant
April 20, 2021
Answered

Can I create two paragraph styles on one line?

  • April 20, 2021
  • 4 replies
  • 7003 views

Hello!

 

I'm using Adobe InDesign 14.0 x64.

 

For example, my document currently contains the text "Glaukom H40" (images attached). A paragraph format is stored for the text. This paragraph format is then used for the table of contents. The same text "Glaukom H40" appears in the table of contents.
I would like to have the ICD code "H40" displayed separately after the text "Glaucoma" (e.g. with a character format) and NOT include it in the table of contents.

One solution would be to provide two character formats, one character format for "Glaukom" and one character format for "H40". Unfortunately I cannot include character formats in the table of contents. This is only possible with paragraph formats. But - as far as i know -  I can´t have two paragraph formats in one line. 

The only solution seems to be one line with the text "Glaukom" and another extra line with the code "H40", with H40 being pushed up and to the right of the line.

Does anyone knows a better solution?

 

Thank you!

 

Image 1: What I have

 

Image 2: What I want (red circles just for you)

 

indd Dokument <= Link to my document

This topic has been closed for replies.
Correct answer Dave Creamer of IDEAS

No--you can't have run-in heads like in FrameMaker--unfortunately. 

You can try these options:

  1. Put the number on it's own line under the main title with a small leading amount; set it to align right; give it a large baseline shift up.
  2. In the TOC, apply a nested style to the numbers; set the color to none; give it a lot of horz. scale and tracking, and make it a small size.

4 replies

Participant
June 28, 2024

The only way I have managed this is with a workaround. I create the title I want using a paragraph style that isn't included in the TOC but looks identicle to the one that will (displayed as a title on the page, but isn't included in the TOC). Then I create a text frame that sits over it with the actual text that I want to show up in the TOC. I set this text as the correct paragraph style that will appear in the TOC, but right click on it and set its EFFECT>TRANSPARENCY to 0 (making it invisible). This will then display on the TOC but will not be seen. 

James Gifford—NitroPress
Legend
June 28, 2024

There is another workaround, one that's a bit fragile. By using a stack of two paragraph styles, the second with zero leading, you can get two paragraphs on one visual line. All the sorting out of horizontal spacing and flow remains, but for some select situations, this "zero stacking" can solve a layout problem.

 

 

In this example, the blue text is 12/14 with no additional spacing, and the red text is 12/0 with 1pc below. Each is a separate paragraph and para style, for what value that might have for other formatting, indexing etc. needs.

 

A quirky solution but it does work and I have found it to be of use.

Participant
August 4, 2023

You can use a character style which overrides paragraph style for some things as well 

Inspiring
May 5, 2023

Came here looking for an answer to the same question.
Sure would be nice.

Dave Creamer of IDEAS
Community Expert
Dave Creamer of IDEASCommunity ExpertCorrect answer
Community Expert
April 20, 2021

No--you can't have run-in heads like in FrameMaker--unfortunately. 

You can try these options:

  1. Put the number on it's own line under the main title with a small leading amount; set it to align right; give it a large baseline shift up.
  2. In the TOC, apply a nested style to the numbers; set the color to none; give it a lot of horz. scale and tracking, and make it a small size.
David Creamer: Community Expert (ACI and ACE 1995-2023)
KoeniginAuthor
Participant
April 21, 2021

Thank you so much.