Section headings (h2
to h6
elements) can be
automatically numbered to reflect the document structure.
The h1
element is supposed to be the document title and is
not numbered. Other headings receive a number that is computed according to
their type and their position in the document structure. These numbers are
generated in the document itself and numbers that were generated previously
are removed, every time the Tools/Section numbering command
is called.
Command Tools/Add-Update table of contents collects all
h2
to h6
elements in the document following the
current selection and generates a table of contents at the current position.
It updates the current table of contents if the selection is already within a
table of contents.
This command adds:
id
attribute to each h2
to h6
element which does not have this attribute.class="toc"
attribute) that contains
nested unnumbered lists (ul
) at the current position. You
can use the class
attribute to set a particluar style to
your tables of contents.li
) for each h2
to
h6
element including a link which points to the
corresponding element in the document.
The link element contains a copy of the hn
element. If the hn
element is numbered, this number
is also copied.