Skip to main content
Known Participant
January 5, 2017
Answered

Superscript part of a word

  • January 5, 2017
  • 3 replies
  • 1667 views

Hi,

I'm trying to find a GREP for Indesign that will put the last character of a name in superscript. I can't figure out how to look for the name but then only apply the superscript to the last character.

The name is always "Vanessa+" (for ex.) and the plus needs to be in superscript.

I've tried finding "plus/space" but there are also calculations in the text so that is not specific enough.

Anyone any ideas that can help?

Thanks

Vanessa

This topic has been closed for replies.
Correct answer hammer0909

You can do this with a GREP Style. Create a paragraph style to apply to the paragraph and a character style for the superscript. In the paragraph style define the GREP style using a positive loosbehind as shown in the screenshot.

3 replies

Eternal Warrior
Inspiring
January 6, 2017

Either a GREP style or an nested paragraph style would solve this depends on the outcome you need.

Barb Binder
Community Expert
Community Expert
January 5, 2017

The name is always "Vanessa+" (for ex.) and the plus needs to be in superscript.

Is the name always Vanessa+ or is any first name followed by a +?

~Barb at Rocky Mountain Training
hammer0909
Community Expert
hammer0909Community ExpertCorrect answer
Community Expert
January 5, 2017

You can do this with a GREP Style. Create a paragraph style to apply to the paragraph and a character style for the superscript. In the paragraph style define the GREP style using a positive loosbehind as shown in the screenshot.

OutlineGAuthor
Known Participant
January 6, 2017

Arghh - I was sooo close! But you made it work - thank you!!