Copy link to clipboard
Copied
Hi! I'm very new to GREP styles but created one so that all numbers in this paragraph style are bolded.
In many cases, some numbers are superscripted. I do NOT want superscripted numbers to be bold. How can I fix this? Thanks in advance 🙂
You could add a negative lookbehind to exclude digits if they are preceded by a lowercase letter:
Copy link to clipboard
Copied
Is the 5 a footnote number or did you type it yourself?
In my example below, \d+ formats the typed digits but not the note numbers (footnote or endnote).
~Barb
Copy link to clipboard
Copied
And thinking about the alternative, if you are manually adding supercript numbers for some reason beyond footnotes/endnotes, the character style you use to assign the superscript could also change the style to regular without impacting the other digits.
~Barb
Copy link to clipboard
Copied
You could add a negative lookbehind to exclude digits if they are preceded by a lowercase letter:
Copy link to clipboard
Copied
this did it! i knew there was a simple answer I wasn't finding on the internet. thank you so much for the quick response.
Copy link to clipboard
Copied
Glad it works for you, but as @Barb Binder wrote, why don't you use footnotes for the superscrpited numbers?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now