Numbered Headings

Last modified by superadmin on 2026/08/30 19:43

Reference

Every heading of an exported page becomes a LaTeX sectioning command — \section, \subsection and so on down the levels — and LaTeX numbers those, so the headings of an exported document are numbered by default.

Unnumbered Headings

Set the data-xwiki-rendering-protected parameter on a heading and that heading is left out of the numbering:

(% data-xwiki-rendering-protected='true' %)
= heading A =

Set it on a group instead and every heading the group holds is left out:

(% data-xwiki-rendering-protected = 'true' %)(((
= heading A =
)))

Either way the export writes the starred form of the sectioning command, which LaTeX leaves unnumbered and keeps out of the table of contents:

\heading[*]{1}{heading A}
\label{HheadingA}

The heading keeps its \label, so a link or a cross-reference pointing at it still resolves.

\heading is a command of the exported document's own preamble, so a wiki that wants its headings typeset differently redefines it rather than changing every heading — see Override a Template.

Related

Get Connected