Now that I understand the specification, I can suggest a solution.
- Chapter headings end up in the TOC
- Appendix heading look the same as chapter heading but are not listed in the TOC the TOC
To ensure appendix headings will always have the same appearance as the corresponding Heading n, create them by inheritance: right-click on Heading n in the side style pane. Don’t modify any attribute (+) except Outline level in Outline & List
tab and attach a dedicated (=) Numbering style in the same tab.
(+) When no attributes are modified, the style always remains in sync with its ancestor. Any change in the ancestor is automatically forwarded. Caution! “no change” is not the same as setting an attribute then resetting it to, seemingly, revert to the “untouched” state. You changed it and it will remain as you changed it. The only to revert to “inherit” state is to press the Reset to Parent button (Standard prior to 7.2.x).
(=) If you have numbered lists in your document, it is of utmost importance to number your appendices with an independent list style otherwise list and appendix numbering will interfere with each other.
With the above configuration for your appendix heading styles, you create a paragraph style suited for numbered lists. However, custom lists in Writer have not the same user-friendly property as Heading n. Assigning a Heading n to a paragraph automatically sets it at level n in the hierarchy.
When you assign one of your appendix styles, the paragraph is set at level 1 of the list. You must manually move it to the adequate level for the number to be formatted as you expect. Put the cursor at the beginning of the heading and press Tab
n-1 times. If you inadvertently pressed too many Tab
, press Shift
+Tab
to decrease list level.
In your sample file, all your appendix levels are formatted the same (AppendixHeader) which doesn’t mimic what Heading n does.