Mobile app version of vmapp.org
Login or Join
Chiappetta793

: InDesign: Limit the minimal number of characters in the last line of the paragraph Is it possible to automatically limit the minimal number of characters in the last line of the paragraph, so

@Chiappetta793

Posted in: #AdobeIndesign #Typesetting

Is it possible to automatically limit the minimal number of characters in the last line of the paragraph, so that when InDesign Paragraph Composer does its job and hyphenates the paragraph, it ensures that the last line is at least N character wide?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Chiappetta793

1 Comments

Sorted by latest first Latest Oldest Best

 

@Chiappetta793

Eureka! Create a new character style NoBreak based on [None]. Tick "No Break" for it in "Basic Character Formats". Then in your paragraph styles add a new GREP style so that apply NoBreak style to text .{10}$. Instead of 10 fill in any number you need as a minimum number of characters in the last line of the paragraph. That's it!

To make the solution more general, one can change regular expression to something like (?<=.{55}).{10}$. Instead of 55 fill in an average width of a line in your paragraph measured in characters. In this case the style will only be applied if a paragraph has more than or equal to 55 + 10 characters in it.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme