Reply To: Paragraph Style with auto fractions and normal integers

Home Page / Forums / General InDesign Topics (CLOSED) / Paragraph Style with auto fractions and normal integers / Reply To: Paragraph Style with auto fractions and normal integers

#57048
Chuck Nigash
Member

Here is what I've tried. We need a GREP wizzard. :-)

d+[/] will find something as weird as 1024/

d+[/]+d will find 1024/1 but it wont find 1024/128 for instance. Getting the GREP to look to the end of the last digit is the key.

I experimented with Positive Look Behind among other Matches, but did not find a good result.

I also experimented with undocumented GREPs such as p{decimal_digit_number} for digits 0 to 9 but that had no impact as well. That is not capturing whole numbers such as 1024. The GREP must capture all the digits so we can convert them to the character style and create the fraction.

This article was last modified on September 19, 2010

Comments (0)

Loading comments...