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

Paragraph indent style?

New Here ,
Apr 23, 2023 Apr 23, 2023

Copy link to clipboard

Copied

Hey, does anyone know how to format paragraphs in InDesign like the example below. So where the last line of a paragraph ends, dictates where the first line of the next paragraph starts.
 
Perhaps even if someone can tell me what this paragraph style is called?
 
--------
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ridiculus mus mauris vitae ultricies leo integer malesuada nunc vel. Tincidunt vitae semper quis lectus nulla at volutpat.
                                        At lectus urna duis convallis. Malesuada fames ac turpis egestas integer eget aliquet nibh. Erat imperdiet sed euismod nisi porta. Convallis aenean et tortor at risus viverra. Nibh sit amet commodo nulla facilisi nullam. Vitae suscipit tellus mauris a diam maecenas sed enim ut.
                                                                                                                                   Enim diam vulputate ut pharetra sit amet. Dignissim enim sit amet venenatis urna cursus eget nunc scelerisque. Elementum sagittis vitae et leo duis ut. Elementum sagittis vitae et leo.
----------
 
I can do this manually but that would take a really long time! I know there's a way to do it where InDesign formats it automatically, but I don't know how and I can't find how to anywhere!
TOPICS
How to

Views

527

Translate

Translate

Report

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 , Apr 24, 2023 Apr 24, 2023

I can do this manually but that would take a really long time!

 

Select a range of paragraphs and try this script:

 

 

var s = app.activeDocument.selection[0].paragraphs.everyItem().getElements();
var eho, b, tfl;
for (var i = 0; i < s.length-1; i++){
    tfl = s[i].parentTextFrames.length;
    b = s[i].parentTextFrames[tfl-1].geometricBounds[1];
    try {
        eho = s[i].characters[-1].horizontalOffset - b;
        s[i+1].firstLineIndent = eho
    }catch(e) { }  
};   

 

 

Before:

Screen Shot 8.png

 

After:

Screen Shot 9.png

Votes

Translate

Translate
New Here ,
Apr 23, 2023 Apr 23, 2023

Copy link to clipboard

Copied

Sorry that did not come out right!!! I mean like the image i've attached onto here.

 

Screenshot 2023-04-23 at 12.59.10 pm.png

Votes

Translate

Translate

Report

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 ,
Apr 23, 2023 Apr 23, 2023

Copy link to clipboard

Copied

Hi @ÄLSAFFAR , There’s no style property that would do that, but it could be scripted.

Votes

Translate

Translate

Report

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 ,
Apr 24, 2023 Apr 24, 2023

Copy link to clipboard

Copied

I can do this manually but that would take a really long time!

 

Select a range of paragraphs and try this script:

 

 

var s = app.activeDocument.selection[0].paragraphs.everyItem().getElements();
var eho, b, tfl;
for (var i = 0; i < s.length-1; i++){
    tfl = s[i].parentTextFrames.length;
    b = s[i].parentTextFrames[tfl-1].geometricBounds[1];
    try {
        eho = s[i].characters[-1].horizontalOffset - b;
        s[i+1].firstLineIndent = eho
    }catch(e) { }  
};   

 

 

Before:

Screen Shot 8.png

 

After:

Screen Shot 9.png

Votes

Translate

Translate

Report

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
New Here ,
Apr 25, 2023 Apr 25, 2023

Copy link to clipboard

Copied

LATEST

Thank you so much for this! That explains why I couldn't find anything online!

Votes

Translate

Translate

Report

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