Preventing error in caption numbering
Word 2010. I have outlined numbered headings in a template.
Table captions include chapter number (ie Table 1.1, Table 2.1 etc).
Headings in Appendix section use heading style 6 and return appendix character of heading 6 style (ie Table A1, Table B1).
If heading 1 style is changed to no numbering to avoid an error, I've included in the code "{If {STYLEREF 1\s}<> "Error*"{STYLEREF 1\s}}.{SEQ Table \* ARABIC \s 1}"
After a heading 6 style "{SEQ Table \* ARABIC \s 6}".
My question is this, is there a way to combine the code using an If statement or something?? so that it doesn't matter whether the previous heading style is 1 or 6, if the numbered style is present, then Table 1.1 or Table A1 will be returned.
If heading 1 style is unnumbered, then Table 1 will be returned, but still return Table A1 after heading 6 style.
To complicate this further, there is a period "." between the IF STYLEREF field and the SEQ field for captions linked to heading 1 style. I'd like this to be eliminated also. The user needs to have the choice of numbering or not, without messing up caption numbering and cross-referencing. Can this be done?
I'd appreciate ANY help. Thank you.
Last edited by Charles Kenyon; 05-19-2017 at 07:11 AM.
Reason: Add paragraphs so I can read it.
|