-
1. Re: How to automatically prevent Widows/Orphans in InDesign
pkahrel Feb 28, 2013 8:34 AM (in response to BlueFunk74)To prevent last lines shorter than 10 characters, run this Grep query:
Find what: .{10}$
Change to: <leave empty>
Change format: No Break
Or you can do this as a Grep style.
Widow and orphan prevention is set in the paragraph style, see Keep Options.
Peter
-
2. Re: How to automatically prevent Widows/Orphans in InDesign
P Spier Feb 28, 2013 8:39 AM (in response to BlueFunk74)This comes up from time to time, and usually sparks a discussion about why it might not be adviseable, but I'll dispense with that for now and say that you can create a character style that applies No Break, then use a GREP style to apply it to the last n characters in a paragraph in the GREP Styles section of your Paragraph Style definition. The expression .{n}$ should work, where n = the number of characters you want to keep from breaking.
-
3. Re: How to automatically prevent Widows/Orphans in InDesign
BlueFunk74 Feb 28, 2013 9:13 AM (in response to pkahrel)Thats exactly it! Thanks ever so much Peter!
-
4. Re: How to automatically prevent Widows/Orphans in InDesign
shalanah Apr 1, 2014 4:09 PM (in response to P Spier)I created a grep that assigns a NOBREAK character style the last word of every paragraph: (\s\w+.?)$
This should apply the NOBREAK character style to...
a space (\s)
+ word (\w+)
+ optional punctuation (.?) - really any character
at the end of every paragraph ($)
I think my parenthesis are actually optional as well, and I'm sure I could get more specific with the punctuation part too but this seems to the the trick for me.



