How to add an invisible Heading to an outline?

You can use a scoped show rule

...

#{
  show heading: none
  heading(numbering: none)[Appendix]
}

== <appendix 1>

so that the heading is added to the document tree but not actually shown. As the outline queries for all headings that exist in the document tree, the fact that it’s not actually visible doesn’t matter for the outline entry.

Note that (if a numbering is set) the heading counter will still be stepped, though you probably want to reset the counter value and update the numbering anyway for the appendix.

1 Like