Have an account? Sign in
"*" indicates required fields
You agree that CreativePro Network may send you emails, including the newsletter selections above. You can unsubscribe at any time.
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
New user? Create an account
By signing in, you agree to our Terms of Use and acknowledge our Privacy Notice.
I want to change style Based on character count
[^*]{1,100} = Small text — 18pt — This works in my Paragraph style
[^*]{101,250} = Medium text — 16pt — but I lose my styles
[^*]{251,400} = Normal text — 14pt
[^*]{401,1000} = Large text — 10 pt
I see the word Mixed in the Character Style Panel when I test the switches.
Can anyone help? Thanks
Thank you for your feed back!!!!!
Seems both your solutions would apply the same style to the text. I needed separate styles.
Kept searching around before both of your replies:
I’m using this:
Style 1 ^.*CONTRACT IN.*$
Style 2 ^.*SOLD IN.*$
So far that seems to work.
On the same Project — my next challenge is to Change Style based on Character count in a text box… Is that possible with Grep? — should i make a new post?
newbie with Grep and InDesign.. Loving it to control styling. This was the closest clue I could find in the forum. BUT I need the whole string with a changing number.
I need to apply specific styling — mostly changing the font size. I have three styles working.
SOLD (?-i)(SOLD)
JUST LISTED (?-i)(JUST LISTED)
UNDER CONTRACT (?-i)(UNDER CONTRACT)
This will be feed as data to my text — and I can control that the above will always be this text.
Problem:
I need a different font size for “UNDER CONTRACT IN 23 DAYS” & “SOLD IN 23 DAYS” — the number of days may change.
I need to create GREP to find those strings even when the number of days is different. — Right now it only works if I type in “UNDER CONTRACT IN 23 DAYS” exactly I can’t get it to work if the number changes. The style needs to be applied to the entire string.
Thanks in advance for anyone who can shed some light :-)
This site uses cookies, but not the kind you eat. We use cookies to remember log in details, provide secure log in, improve site functionality, and deliver personalized content. By continuing to browse the site, you accept cookies.