I’m struggling with auto-numbered figure captions on a document that goes down to several levels of section numbering. It’s set up with Heading 1 through Heading 5, but not every section goes all of the way down.
When I insert a caption, it asks if I want to refer to Heading 1, Heading 2, or whatever level heading. However, the issue is that it will apply that style to all captions in the document, and it won’t differentiate if there’s another heading in between.
To try to illustrate it, let’s say my document goes like
Section 1 (Heading 1)
Section 1.1 (Heading 2)
Section 1.2 (Heading 2)
Figure 1.2-1
Figure 1.2-2
Section 2 (Heading 1)
Figure 2-1
If I set the captions to Heading 2, any figure that is in a section at a lower level goes to the previous Heading 2. So my Figure 2-1, that’s in Section 2, gets called Figure 1.2-3, because there is no Heading 3 between Section 2 and the figure.
I’ve found that if I open up the Fields, it says {STYLEREF N s}, where N is whatever number heading I had set it to. So if the document is done, I can go into Figure E, edit the field and change the STYLEREF 2 to a STYLEREF 2 and it will look right.
However, where I’m getting caught up is that next time I go through and add a caption, as soon as I hit the “Numbering…” button, it changes all STYLEREFs in the document to whatever I select.
In a perfect world, I’d like to be able to add a caption and have the STYLEREF go to whichever the previous text that is either Heading 1, 2, 3, 4, or 5. I tried {STYLEREF “Heading 1” OR “Heading 2” s} and it gave me an error.
In a less perfect world, I’d be OK with going through each caption and changing the STYLEREF manually, as long as it stays that way. However, the next time I add a new caption anywhere else, every caption changes to that STYLEREF.
Any ideas?