GREP Code for Photo Credit Line
- This topic has 0 replies, 1 voice, and was last updated 9 years ago by .
- You must be logged in to reply to this topic.
Learn / Forums / General InDesign Topics / GREP Code for Photo Credit Line
Learn / Forums / General InDesign Topics / GREP Code for Photo Credit Line
Tagged: GREP
I am laying out a large book that contains photos, and therefore, photo captions. The caption copy will vary in length throughout the book depending on the photo; but, in every case the last line of text in the caption will be a photo credit line (“Photo by [photographer’s name].”). This line will be a part of the same paragraph—not in parentheses, and not separated by anything but a period.
My goal is to set up this singular photo credit line to auto-format in a different character style. It seems that the “Next Style” feature and Nested Styles are out since the photo credit line is part of the same paragraph and not separated by a forced line break or hard return. So, I’m thinking perhaps I need to set up a GREP Style. I’m so very new to GREP styles that I haven’t the faintest idea how to create the proper code that will accomplish what I’m trying to do. Can someone please help me generate one?
Thank you!
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!