Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
We have seen how Nested Styles depend upon consistency in the formatting in order to work, so what if there isn't an identifiable consistency to the text that you want to apply specific formatting to. In this scenario let's imagine that we're formatting some TV listings and every time there's a Film is shown, we want to word FILM to be code out in red, but the position of that word within the paragraph is going to vary. But we're never going to able be say it occurs specifically at this point in the paragraph every time. It's always going to vary. So for this we need a GREP style.
Just as a prelude to that, I'm going to setup this as a repeating style. So starting out with the Paragraph Formats, I'll keep Myriad Pro, and then we'll come and choose New Paragraph Style, and we'll call it tv_ns. So Drop Caps and Nested Styles, I'd like the time of each of the programs to be code in bold so I'm going to say New Nested Style, and I'll make a new one, New Character Style.
I'll call this bold, Basic Character Formats, and I won't include the Font Family, but I'll include the Font Style. Click OK, and there we see what's happening. Bold is now being applied through 1 Word. I should say at this point that if there were a space between the 6.00 and the am, this wouldn't work. So I'm deliberately making sure that my formatting does not include spaces between the numerals and the am or pm. All right! Next, New Nested Style, None, through 1 Word isn't going to work, because Saturday Kitchen that's two words.
Football focus is two words, The Politics Show, three words. So we need a different approach here. What consistent is that we want to bold styling to turn back on again when we get to a digit. So I'm going to say None, in this case I don't want through because that word apply to the first digit itself, I want to say up to 1 Digit, and then I say New Nested Style, and I Repeat the last 2 styles. When we click OK that's what we get.
You can already probably spot a potential flow in this cunning plan of mine, and that is that if you had a numeral in any of the names of the shows, then the whole thing would fall apart, and it has to be said that Nested Styles are sometimes rather fragile. But in this particular case it is going to work. But we need to get that word FILM called out in a color. So for this, I could have done it all at the same time, but I just wanted you to see where we're at before we go and add this next bit, the GREP Style.
So GREP stands for General Record Expression Parser, which tells you actually nothing about what it does, but that's what it stand for. What it's useful for is being able to apply a specific character style to some pattern in your text, and this is the simplest application of a GREP Style because the pattern is the word FILM. GREP Styles are very useful. Let's say that you always want your company name to be called out in a specific font, specific color, specific size, then you can use a GREP Style.
So I'm going to say GREP Style > Apply, what are we applying? Well, I'm going apply this one here that's already set up, but of course you can create it on the fly, and I'm going to apply that. And what I'm applying it to? I'm applying it to the word FILM. Now it is case sensitive, so I'm tying it in the way I have typed it on the page. Click OK, problem solved. Now no matter where the word FILM occurs in this paragraph, it's automatically going to be called out in that particular character styling.
That is a GREP Style applied in this particular instance alongside a Nested Style.
Get unlimited access to all courses for just $25/month.Become a member
119 Video lessons · 49849 Viewers
117 Video lessons · 37140 Viewers
113 Video lessons · 81146 Viewers
65 Video lessons · 10445 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.
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.
Your file was successfully uploaded.