Automatic Header Numbering with Table Of Contents
Is it possible to have headers automatically number based on position and level, and also have these numbers reflected in the table of contents?
I am able to number headers via .css, however these are not reflected in the TOC.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 26 Jan, 2016 12:00 AM
It's not really possible unless you replicate the CSS technique using
the #generated_toc ul and li levels.
-Brett
2 Posted by penguin.pingu on 26 Jan, 2016 02:47 PM
Thanks for the reply Brett,
> unless you replicate the CSS technique using
> the #generated_toc ul and li levels
Do you know if there is an example?
Dave
Support Staff 3 Posted by Brett on 26 Jan, 2016 03:32 PM
To accomplish it with CSS, use the following in the Preferences->Style->Additional CSS (Edit CSS button). This assumes that chapters are h1, subchapters h2, etc., and a well structured document. It will then apply the chapter and sub-item numbering in decimal format. For a document with a different structure, you'd need to adjust all of the selectors to match, so it's not a great universal solution.
4 Posted by penguin.pingu on 26 Jan, 2016 08:41 PM
That's great, thanks very much Brett!