Skip to main content
Inspiring
January 2, 2025
Answered

GREP Style for position?

  • January 2, 2025
  • 2 replies
  • 331 views

I need to create a GREP style for a price with a word that I want nested under the superscript cents.
For example, my price is $9.99 EACH. 

My dollar sign and 99(cents) are superscripted. I want to tuck the EACH underneath the 99 cents. I can't find a way to do this. See below. Please advise! Thank.

Correct answer sherry_1442

Never mind. Skipping the GREP style. Cheating it with a paragraph return, indent and baseline shift. Thanks.

2 replies

sherry_1442AuthorCorrect answer
Inspiring
January 2, 2025

Never mind. Skipping the GREP style. Cheating it with a paragraph return, indent and baseline shift. Thanks.

Community Expert
January 2, 2025

Here's a classic example that you don't need GREP to do everything - as nested styles is best for this approach.

You can use GREP if you want but it's not necessary and achieves the same thing but in my opinion a bit over complicated for such needs. 

 

Hope it helps.

 

Here we have before and after

 

Select the text and apply the Price style

 

 

The window doesn't show (extra addeded beneath) them all but set them up like this

 

 

I've attached my example file 

 

You can tweak the settings to get what you need.

Inspiring
January 2, 2025

Thank you! I was overthinking it.