Skip to main content
Known Participant
July 23, 2023
Question

A script to loop a Mutiparagraph Style in indesign

  • July 23, 2023
  • 2 replies
  • 217 views

I am trying to work on a dictionary document. I have created Paragraph styled for each paragraph but I noticed indesign does not allow you to loop more than three multiparagraphs styles in canva. I wanted to know if there was a script for that. 

I have created Paragraph styles that goes like this

1. 'Apply Style 1 to Line A'

2. Apply Style 2 to Line B

3. Apply Style 3 to Line C

4. Apply Style 4 to Line D

5. Apply Style 5 to Line E

 

Sometimes a word might have two meanings so:

6. Apply Style 1 to Line F

7. Apply Style 2 to Line G

7. Apply Style 6 to Line H

 

Is it possible to get a script for multiple paragraph styles like this.

This topic has been closed for replies.

2 replies

Inspiring
July 24, 2023

Hi,

not exactly sure what you meant by 'loop more than three multiparagraphs styles in canva'.

Also not sure what are the paragraph structure for Lines F to H so can't offer a scripting solution.

If you wanted to go with the 'Next Style' method, you could create new paragraph styles for lines F to H, e.g. Style 6 that is based on Style 1 for line F, Style 7 that is based on Style 2 for line G and Style 8 for line H, and each paragraph style has a Next Style set to the next paragraph style (except the last paragraph style). You select each dictionary word paragraphs and right-click the paragraph style 'Style 1' to choose 'Apply Style 1, then Next Style'.

Robert at ID-Tasker
Legend
July 23, 2023

Not sure what do you mean? 

You can have as many ParaStyles defined in your document as you want. 

You can also use NextStyle option. 

If you've your data in a database - maybe you could use DataMerge?

 

As long as it doesn't require human decision - it can be fully scripted / automated - but even if user needs to make a decision at some point - the rest still can be scripted / automated.