Forum Replies Created
-
AuthorPosts
-
Geoffrey West
ParticipantThanks, guys!
Just for snips and gibbles, is there a method using one of the look behind/ahead commands that would accomplish this as well?
Just curious if I was on the right track going that route when I first started. I always wanted to use one of the look ahead/behind commands but never know the appropriate instance or styling challenge.
August 31, 2021 at 10:40 am in reply to: Styling an * inside a table with GREP? Or nested styles? #14346765Geoffrey West
ParticipantSorry, I was not clear in my initial write-up. The asterisks are already after the numbers, I was trying to change their colors only separate from the digits themselves. I said “add” but used it incorrectly.
Do I need separate GREP expressions for single and double-digit numbers, or will one work for both?
April 22, 2021 at 8:12 am in reply to: GREP: changing the style of percentages within body copy #14338778Geoffrey West
ParticipantThanks, David!
One last question: What is the benefit or significance of adding the
?within the GREP expression? I’ve seen that randomly when searching for other GREP solutions. I’ve seen it referred to as “lazy,” but what is actually happening within the GREP expression when the question mark is added?April 21, 2021 at 9:25 pm in reply to: GREP: changing the style of percentages within body copy #14338771Geoffrey West
ParticipantOK, hold up… new roadblock!
How do I modify the GREP style to account for partial percentages, such as 4.1% or 39.5%?
Any ideas?
April 21, 2021 at 6:19 pm in reply to: GREP: changing the style of percentages within body copy #14338767Geoffrey West
ParticipantThanks, David.
I actually tried this and it worked out:
\w{2}\%I think that will suffice for my current application, but now that I think about it… any number that’s more than 3 digits won’t work (i.e. 100%).
*switches to InDesign to test*
Yep… ok. You win! Yours is better! Thanks again!
Geoffrey West
ParticipantHi guys. This one caught my eye. I applied the top GREP style from Michael’s first response and that worked great. I set the style to “None” in the GREP style section. I also added a nested style, per Anne-Marie. I did “bold through 1 :” in my Nested Styles section.
So now anything after the colon is regular/book, and anything before (including lines without a colon) are now bold.
Is that a good workflow, you think?
(Wish I could upload pics…)
-
AuthorPosts
