In Microsoft Word, for paragraph formatting, you have this option:
"Don't add space between paragraphs of the same style"
Is there a similar feature in InDesign?
Note: this question is also related with this question and this question.
In Microsoft Word, for paragraph formatting, you have this option:
"Don't add space between paragraphs of the same style"
Is there a similar feature in InDesign?
Note: this question is also related with this question and this question.
The short answer: no.
The useful answer: you can do this by making use of "Next Style" in the Paragraph Style definition:
Set up the Paragraph Style for (as an example) body copy with no space before/after. Call it "Body" (or whatever you like).
Set up a Paragraph Style for your lead paragraph. Lead paras often have slightly different styling from the rest of the body copy, but don't have to. Under "Based On" select your body copy style. Under "Next Style" select "Body," or whatever you named that style.
When you paste text, select all and in the Paragraph Styles panel right-click the "Lead Para" style and choose "Apply Lead Para, then Next Style".
For repetitive formatting of text in individual frames, a killer shortcut is to set one up as above, then make it a new Object Style. In the Object Style definition check "Paragraph Styles" and "Apply Next Style". You can then drop text into a new frame and apply all the formatting with one click on the Object Style.
You've defined that your Body style has no extra space. The only time there's extra space around Body is when it's next to something which isn't Body.
So put the space in the other styles — your Headline, Subhead, Scene, whatever. Any running Body copy will have no spaces. Any Headlines will have them.
Adobe InDesign CC 2019 has a new feature that elegantly solves this problem. You can now set “Indents and Spacing” › “Space Between Paragraphs Using Same Style” to 0p0
, which will eliminate the spacing (that is, set the spacing to zero) between same-style paragraphs.
Choosing the value Ignore
for this new option makes InDesign behave as it did prior to the new feature.
If you manipulate the space between same-style paragraphs, then the “Space Before” and “Space After” options allow you to define the spacing before and after the sequence/block of same-style paragraphs.
Use your Styles to define your spacing before and after specific paragraphs...
You'll most likely need to create a custom style (eg. "No space") and define the paragraph spacing within that style. Then when you select that saved style for each of the paragraphs you've stacked, it will adjust the spacing between paragraphs as defined in the style.
One way to set your paragraph spacing...
I would love for Adobe to implement a feature that would behave like the :first-of-type
and :last-of-type
selectors in CSS.
I have a similar problem. In my document, I have these paragraph styles:
Code Listing
uses line numbering and a fixed-pitch font.Code Listing: First Line
is based on Code Listing
but has additional Space Before.Code Listing: Final Line
is based on Code Listing
but has additional Space After.Code Listing: Single Line
is based on Code Listing
but has additional Space Before and Space After.I have to select from these paragraph styles manually. It's an error-prone process. I wish I could include the :first-of-type
and :last-of-type
conditions within the definition of Code Listing
so that ID would take care of the spacing for me, even when I insert or delete lines of code.
But, alas, I don't think there's a way to do that, at least not as of InDesign CC 2018.