Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
We have been talking about breaking words, what about not breaking them? And this movie is all about the difference between the no break attributes and a non-breaking space. So in the first paragraph, we have this term Formula One that I have just colored red so we can see it more clearly, broken over a line. Now we don't want this broken over a line, we always want the words Formula One to be together on the same line. You would think that if you were to insert a nonbreaking space between those-- and let me do that, Insert White Space > Nonbreaking Space--that that would solve the problem, but it doesn't. It just prevents the break from happening at the space, which is what's happening up here.
So if I were to remove the nonbreaking space, put it back just a space, we see that the words can be broken at the space, nonbreaking space means you can't break it up the space, but the word is now hyphenated. So that's even worse. So what we want to do instead is apply the No Break attribute. Now that's what I have done to this example down here, No Break, and if I turn that off, we can see that's what we start with, and if I turn it back on that's how No Break is going to affect it, it's going to make sure that that phrase is always held together on one line.
Now just to take that a little bit further No Break up here is rather inconvenient to get to, it doesn't have a keyboard shortcut, we could make a keyboard shortcut right here for it. But better than that I recommend that you make yourself a character style for No Break. And then you can just apply that Character style wherever appropriate. So to do that from your Character Styles panel come and choose New Character Style, and we would call it No Break, it has one attribute on one attribute only, and that is No Break.
So I am going to now turn that on, I can select any word, or string of words, and apply the No Break attribute, and that's going to prevent that phrase, or word, from breaking across a line break. To take it even further, we can dynamically apply this Character Style so that we prevent single words at the end of paragraphs. Now I am not going to show you how to do this, but I know just the person who can. And that is Michael Murphy who has recorded, as part of the online training library, a title called InDesign CS4 Learning GREP.
Now even though at time of recording, we are talking about InDesign CS6, this is just as relevant as it ever was. And if you come and watch this movie in the GREP Styles chapter, this particular movie Dynamically fixing orphaned words with GREP, it's a fantastic technique and tell Michael that I sent you.
Get unlimited access to all courses for just $25/month.Become a member
117 Video lessons · 42844 Viewers
119 Video lessons · 54195 Viewers
65 Video lessons · 14449 Viewers
113 Video lessons · 82871 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Your file was successfully uploaded.