I need to set up autonumbering so that I get headings numbered as follows:
Appendix A (for H1)
A.1 (for H2)
A.2
A.2.1 (for H3)
A.2.2
A.3
Appendix B
B.1
B.2
B.3
etc, etc.
I'm sure this should be straightforward. Can anyone help?
h1.Appendix
{
mc-auto-number-format: 'Appendix {chapnum}. ';
}
h1
{
mc-auto-number-format: 'A:Section {Gn+}:{ =0} ';
}
h2
{
mc-auto-number-format: 'A:{Gn}.{Gn+} ';
}
h3
{
mc-auto-number-format: 'A:{Gn}.{Gn}.{Gn+} ';
}
h4
{
mc-auto-number-format: 'A:{Gn}.{Gn}.{Gn}.{Gn+} ';
}
body.appendix h1
{
mc-auto-number-format: 'O:Appendix {A+}:{ =0} ';
}
body.appendix h2
{
mc-auto-number-format: 'O:{A}.{n+} ';
}
body.appendix h3
{
mc-auto-number-format: 'O:{A}.{n}.{n+} ';
}
Nita Beck wrote:You'll need only to set up one heading style, for the h1, using the {chapnum} autonumber. Here's what mine looks like:
- Code: Select all
h1.Appendix
{
mc-auto-number-format: 'Appendix {chapnum}. ';
}
Then, for the TOC item for the first appendix, on the (TOC) Properties window's Auto-numbers tab under Chapter Number, reset to 1 and use the format of ALPHA (A,B,C).
For the other appendixes' TOC items, do the same, except don't reset to 1 but instead increment the number.
You won't need to have any special h2s and h3s, assuming that the current h2s and h3s you have are picking up the {chapnum}. They will pick up the appendix letter.
HTH. Post back if this is not enough details for you.