GREP or Script to get first character
- This topic has 1 reply, 2 voices, and was last updated 7 years, 3 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / GREP or Script to get first character
Learn / Forums / General InDesign Topics / GREP or Script to get first character
Tagged: First character, GREP, script
Hi.
My page layout has a section part like: [T] Travel
And this “T” is in white over a circle. So I always have the section name in some particular color, and its first letter in a colored circle bafore it.
Is there a way to make it automatically get the first character and put it into the circle? I was trying to do something like variables, getting the text from the first block using a specific style, but didn’t get to anywhere.
Any suggestion?
Thanks,
Luiz
Luiz,
I’m curious about this one too. We do “Drop Caps” on our lead paragraph so that the first character is three lines high. If you look in “Paragraph Styles” you’ll find Drop caps and there is a third drop-down that allows you to set a character style. Perhaps you are using a character style to produce the colored circle? If so, I think that could be the answer.
Hope this helps.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!