GREP and Equations Help

Explorer ,
Dec 26, 2021 Dec 26, 2021

Copy link to clipboard

Copied

I have many equations to format. I created a stylesheet for numbering system.

Font is Times New Roman | Regular | 12pt.

Condition: All equations will have italic letter but normal superscripts and numbers.

How can I achieve this? I want to use GREP Style attached to Paragraph Style.


How is this possible?

 

Grep_Help.png

 

TOPICS
How to , Scripting

Views

67

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 26, 2021 Dec 26, 2021

Copy link to clipboard

Copied

Since in a GREP style you can look for text only, not for any formatting (such as -Superscript), you can't use a GREP style. You'll have to use a GREP query from the Find/Change window.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 26, 2021 Dec 26, 2021

Copy link to clipboard

Copied

\<[\u\l]{1,2}(?=\h?[\d[:sm:]])|[\d[:sm:]]\h?\K[\u\l]{1,2}\>

I am using this right now but there is one issue. This is also applying on two letters.'is'

Let the superscript apart. Can we use xyz, abc or pqr alone?

Image is attached. Grep_Help.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Dec 26, 2021 Dec 26, 2021

Copy link to clipboard

Copied

LATEST

Use the positive look behind if only numbers are found before that the italic character style is applied.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines