Headings can be automatically numbered, you can enable or disable this for each page (see #pragma section-numbers
on show_section_numbers
on
For more information on the possible markup, see
Note that proper section numbering requires you to order sections according to a valid structure, i.e. correctly nested. Our sample doesn't do this, so you get a different numbering scheme than you might expect.