From the course: InDesign: Advanced Styles

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Automate formatting with GREP styles

Automate formatting with GREP styles - InDesign Tutorial

From the course: InDesign: Advanced Styles

Start my 1-month free trial

Automate formatting with GREP styles

- [Instructor] Nested styles allow you to apply formatting to patterns within a paragraph when that pattern occurs at the beginning or less likely, at the end of a paragraph. But what if you want to apply formatting to particular text within a paragraph when the position of that text varies? That's where a GREP style come in. I have three examples. Firstly, using a GREP style to automatically format fractions. Note, for this to work, you need to be using an OpenType font that includes real fractions. So if you have such a font, when you type in the fraction if you select it and assuming you're using a more recent version of InDesign, you get the option of choosing the real fraction. Now that's an improvement, but it's still manual. We want to automate this. So I'm going to edit the fraction paragraph style. And I'm going to come to my GREP Styles, New GREP Style and I'm going to apply a fraction character style. Let me just show you what that's all about. I'll call it fraction1…

Contents