Oops! That was a typo and should have been iShape. I wanted to tidy up my code before posting and overlooked that one. As far as the first field below the inline shape, all are a sequence fields (SEQ Figure). We rarely include the chapter number in captions. You make a good point. I had not considered styleref fields.
I was able to write a macro that checks for the caption style following the inline shape, and it seems to work okay. More often than not, though, authors will use the caption style but not insert a caption to include the number, so I thought looking for a field might be a better approach.
|