I’m working on an art book in CC2014, and the captions come in embedded into the text like the following example: (I’m using <ital> to show italics because I don’t know how to get them to show in this message)
[FIGURE 9: Shorty Lungkarta Tjungurrayi, <ital>Children’s Water Dreaming (Version 2)<ital>, 1972. Synthetic polymer paint on composition board. Cat. TK.]
The art title is in italics, styled with an italic character style.
I’m trying to use GREP to apply the paragraph style for captions, remove the brackets and the word FIGURE, and add a tab instead of the colon and space. So, it should come out like this: (the <tab> would be a tab character)
9<tab>Shorty Lungkarta Tjungurrayi, <ital>Children’s Water Dreaming (Version 2)<ital>, 1972. Synthetic polymer paint on composition board. Cat. TK.
My GREP find/change looks like this:
Find What: ^\[FIGURE (\d+): (.+)\]
Change to: $1$2
But when I run the find/change, the italic character style gets shifted over by several characters, so it looks like this:
9<tab>Shorty Lungkarta Tjungurrayi, Children’s <ital>Water Dreaming (Version 2), 1972. Syn<ital>thetic polymer paint on composition board. Cat. TK.
The italics are shifted over by several characters. I think it’s not always the same # of characters; but rather the # of characters in the first word of the italicized phrase.
I have tried lots of different configurations of the GREP search; they all work the same way. I’ve tried having it not apply the paragraph style at the same time. I even turned off the character style and had the italics styled as a local override, and ran the GREP and it malfunctioned the same way.
Does anyone have any idea why this is happening and how to prevent it?