Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now

Using a GREP style to fix runt lines


From:

Designing a Book

with Nigel French

Video: Using a GREP style to fix runt lines

As I pointed out at the end of the last chapter, we have quite a few spacing problems relating to our text. We're going to fix a lot of them in this next step, which is to us a grip style, which will ensure that there're always at least two words at the end of every paragraph. Let me point now a couple of the problems that we currently have. I spotted one on line 16 of page 81. Right there, a single word to end a paragraph.
Expand all | Collapse all
  1. 1m 59s
    1. Welcome
      1m 7s
    2. Using the exercise files
      52s
  2. 4m 43s
    1. Looking at the parts of a book
      1m 4s
    2. Getting to know your text
      2m 32s
    3. Understanding the use of Alice in Wonderland
      1m 7s
  3. 27m 1s
    1. Setting up the page size and format
      6m 6s
    2. Setting margins
      10m 11s
    3. Adding page numbers and running heads
      5m 54s
    4. Adding line numbers
      3m 21s
    5. Understanding the Book feature
      1m 29s
  4. 10m 28s
    1. Placing the text and looking at flow options
      3m 40s
    2. Leveraging Word import options
      2m 40s
    3. Cleaning up text
      4m 8s
  5. 41m 34s
    1. Creating and applying paragraph styles
      2m 30s
    2. Continuing with paragraph styles
      6m 55s
    3. Finishing with paragraph styles
      6m 4s
    4. Applying a style sequence
      2m 27s
    5. Formatting the chapter openers
      3m 23s
    6. Adding pauses
      1m 58s
    7. Styling verse
      5m 14s
    8. Evaluating progress and cleaning up text
      2m 2s
    9. Adding typographic effects
      8m 33s
    10. Applying Optical Margin Alignment
      2m 28s
  6. 30m 13s
    1. An overview of working with images
      2m 35s
    2. Applying and finessing text wraps
      7m 12s
    3. Placing inline graphics
      3m 3s
    4. Strategies for working with object styles and graphics
      8m 2s
    5. Positioning images
      9m 21s
  7. 31m 4s
    1. Creating and applying a master page for the chapter openers
      3m 21s
    2. Using a GREP style to fix runt lines
      6m 4s
    3. Fixing widows and orphans
      10m 32s
    4. Fixing hyphenation and justification issues
      7m 20s
    5. Fixing awkward line endings
      3m 47s
  8. 24m 36s
    1. Adding a half title and title
      10m 40s
    2. Adding a copyright and colophon
      4m 12s
    3. Creating the table of contents
      5m 23s
    4. Numbering the front matter
      2m 10s
    5. Reviewing your work
      2m 11s
  9. 28m 38s
    1. Creating the cover using the Blurb Book Creator plugin
      3m 15s
    2. Creating the cover from scratch with InDesign
      3m 29s
    3. Creating a layout grid
      3m 34s
    4. Adding cover elements
      4m 12s
    5. Designing the front cover
      5m 38s
    6. Designing the spine
      4m 15s
    7. Designing the back cover
      4m 15s
  10. 16m 50s
    1. Preflighting the finished book
      4m 58s
    2. Exporting to print-ready PDF
      3m 53s
    3. Uploading to Blurb
      2m 18s
    4. Uploading to Blurb using the Book Creator plugin
      2m 4s
    5. Archiving the project
      3m 37s
  11. 36m 1s
    1. Generating a screen PDF
      5m 13s
    2. EPUB overview
      1m 37s
    3. Linking an EPUB file to the original document
      4m 59s
    4. Structuring your book for the EPUB format
      5m 33s
    5. Adapting the EPUB file
      6m 15s
    6. Using the Object Export options
      6m 16s
    7. Creating the cover for the EPUB version
      1m 49s
    8. Viewing on an iPad
      1m 7s
    9. Exporting for the Kindle
      3m 12s
  12. 25s
    1. Next steps
      25s

please wait ...
Watch the Online Video Course Designing a Book
4h 13m Intermediate May 21, 2013

Viewers: in countries Watching now:

Explore book design with Nigel French, as he breaks down the components of an elegant and readable layout and jumps into the setup and strategy for designing a book from the ground up in Adobe InDesign. This class covers document setup, placing and styling text, working with images, creating the book cover, preparing the book for print and or distribution as an ebook.

Topics include:
  • Getting to know your text
  • Choosing a page size and format
  • Setting margins
  • Creating and applying paragraph styles
  • Wrapping text around images
  • Creating a table of contents
  • Designing the front cover, spine, and back cover
  • Exporting a print-ready PDF
  • Uploading to Blurb
  • Making an EPUB
Subject:
Design
Software:
InDesign
Author:
Nigel French

Using a GREP style to fix runt lines

As I pointed out at the end of the last chapter, we have quite a few spacing problems relating to our text. We're going to fix a lot of them in this next step, which is to us a grip style, which will ensure that there're always at least two words at the end of every paragraph. Let me point now a couple of the problems that we currently have. I spotted one on line 16 of page 81. Right there, a single word to end a paragraph.

Now, because this is a lot of dialogue in this text, that problem might occur quite frequently and sometimes the solution to the problem might be worse than the problem itself. If that last word is a long word, then it's not a problem at all. But if in this case it's a very short word, then it is a problem. Another issue that I spotted is at the top of page 92, where we have a single word isolated from its paragraph, a single orphaned word. So, obviously we want to fix that as well.

Now, this is not the only thing that we're going to be doing to fix these kind of problems, but it is the more macro solution. So, it's the one that we want to apply first. Let me just point out this very useful course on lynda.com. Learning GREP with InDesign by Michael Murphy. Now, Michael Murphy is my go-to guy whenever I need to brush up on my GREP, which I have to admit is not my strongest suit in InDesign. But whenever I forget something or need a refresher, this is the course that I come to, specifically for what we're doing here.

This movie, dynamically fixing orphaned words with GREP, and I'm going to be adapting these techniques that he outlines in that movie. I'm going to come to my Body style and edit that, and then come to GREP styles. Now, what I want to do is apply a GREP style to a specific text string. So firstly, I need to define the character style that is being applied.

And I'm going to call this no break for obvious reasons because, the main attribute that we want to apply to this character style is no break. But in addition to that, I'm also going to give it a highlight. And this highlight is only going to be temporary, just so that we can see the change very visually. And then once we verified it, we will turn this off. But I'm going to come to my Underline Options, turn the Underline on. And then I'm going to make the weight of the underline ten points, and its offset I am going to make minus 10 points.

Now, that may not look very good, but it's just going to be good enough for our purposes to see where this has been applied. And I'm going to change it's color to yellow. Alright, so now I say what is the text that this character style will be applied to. What we're looking for is the last two words of a paragraph. And then we want to apply a no break to them so that there are always at least two words on the last line. So, firstly I'm going to come down to my Wildcards and choose any word character, and I need to extend that to be any word character one or more times and the symbol for that is Plus.

And then this is going to be followed by a space, and the symbol for that is \s. And then, the space will be followed by any word character, which I can just type in again, \w, one or more times. That will only take us so far. We now need to specify that word space word can be followed by any type of punctuation. And the punctuation is in this section, this Posix Flyout menu. I have no idea what Posix means, but this is where it is. And because some of these paragraphs end not just with a single punctuation point, but in some cases with two full stop followed by a closing quote for example, then that also needs to be followed by a plus.

And then, to finish this off, I need to say, where in the paragraph this occurs, and that is going to be Location > End of Paragraph. And now we can see after a pause, where the no-break style is automatically being applied. And that hasn't entirely solved that problem, because we still have the orphan, but at least we do have two words at the end of that paragraph. But now, let's go to page 81, where we saw the other problem.

And that problem is solved. Now whenever you apply a change like this, something has to give. And in the case of this particular instance, that something is that the word spacing on the preceeding line has now been increased. And it's been increased to a somewhat undesirable extent. But the cure is still preferable to what we had before. So everything from now on is going to be a compromise of some sort. I'm now going to go back to my first page and then just take a page through the document to see where this change has been applied. And for example, if I were to come to page eight, I'm going to now undo that change, Cmd+Z and then we'll revisit page eight.

We can see that there is a problem that has been fixed to make one respectable person. And then if I press Cmd+ShiftZ to redo that change. Go back to page eight, we can see problem solved. Now that we've verified the effect of applying that GREP style, I am going to come to my Character Styles panel. I'm going to edit the no break character style and I'm going to turn off that underline

There are currently no FAQs about Designing a Book.

 
Share a link to this course

What are exercise files?

Exercise files are the same files the author uses in the course. Save time by downloading the author's files instead of setting up your own files, and learn by following along with the instructor.

Can I take this course without the exercise files?

Yes! If you decide you would like the exercise files later, you can upgrade to a premium account any time.

Become a member Download sample files See plans and pricing

Please wait... please wait ...
Upgrade to get access to exercise files.

Exercise files video

How to use exercise files.

Learn by watching, listening, and doing, Exercise files are the same files the author uses in the course, so you can download them and follow along Premium memberships include access to all exercise files in the library.


Exercise files

Exercise files video

How to use exercise files.

For additional information on downloading and using exercise files, watch our instructional video or read the instructions in the FAQ .

This course includes free exercise files, so you can practice while you watch the course. To access all the exercise files in our library, become a Premium Member.

Join now Already a member? Log in

* Estimated file size

Are you sure you want to mark all the videos in this course as unwatched?

This will not affect your course history, your reports, or your certificates of completion for this course.


Mark all as unwatched Cancel

Congratulations

You have completed Designing a Book.

Return to your organization's learning portal to continue training, or close this page.


OK

Upgrade to View Courses Offline

login

With our new Desktop App, Annual Premium Members can download courses for Internet-free viewing.

Upgrade Now

After upgrading, download Desktop App Here.

Become a member to add this course to a playlist

Join today and get unlimited access to the entire library of video courses—and create as many playlists as you like.

Get started

Already a member ?

Exercise files

Learn by watching, listening, and doing! Exercise files are the same files the author uses in the course, so you can download them and follow along. Exercise files are available with all Premium memberships. Learn more

Get started

Already a Premium member?

Exercise files video

How to use exercise files.

Ask a question

Thanks for contacting us.
You’ll hear from our Customer Service team within 24 hours.

Please enter the text shown below:

Exercise files

Access exercise files from a button right under the course name.

Mark videos as unwatched

Remove icons showing you already watched videos if you want to start over.

Control your viewing experience

Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.

Interactive transcripts

Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.

Learn more, save more. Upgrade today!

Get our Annual Premium Membership at our best savings yet.

Upgrade to our Annual Premium Membership today and get even more value from your lynda.com subscription:

“In a way, I feel like you are rooting for me. Like you are really invested in my experience, and want me to get as much out of these courses as possible this is the best place to start on your journey to learning new material.”— Nadine H.

Start your FREE 10-day trial

Begin learning software, business, and creative skills—anytime,
anywhere—with video instruction from recognized industry experts.
lynda.com provides
Unlimited access to over 4,000 courses—more than 100,000 video tutorials
Expert-led instruction
On-the-go learning. Watch from your computer, tablet, or mobile device. Switch back and forth as you choose.
Start Your FREE Trial Now
 

A trusted source for knowledge.

 

We provide training to more than 4 million people, and our members tell us that lynda.com helps them stay ahead of software updates, pick up brand-new skills, switch careers, land promotions, and explore new hobbies. What can we help you do?

Thanks for signing up.

We’ll send you a confirmation email shortly.


Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

Sign up and receive emails about lynda.com and our online training library:

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked
Terms and conditions of use

We've updated our terms and conditions (now called terms of service).Go
Review and accept our updated terms of service.