Another feature that’s probably been asked for, that I’d like myself, is auto-numbering of sections. In the style which I prefer, top-level sections are numbered “1.”, “2.”, “3.”, subsections are numbered “1.1”, “1.2”, “1.3”, and subsubsections are numbered “1.1.1”, “1.1.2”, “1.1.3”.
In Notebook markup, sections are created by adding first, second, and third-level headers, i.e.,
= Main Section = Random verbiage... == First Subsection == blah, blah, blah... == Second Subsection == yadda, yadda, yadda...
In classic Notebook, the section headers are just the strings that appear here: “Main Section”, “First Subsection”, and so forth. But now you can have them automatically numbered, i.e., “1. Main Section”, “1.1 First Subsection”, etc. All you need to do is add a “meta parameter” somewhere to the text of your page, like this:
#meta sectionNumbers
Meta parameters were added toward the end of Notebook 2.1 development, and were never really used for anything. This is the first documented meta parameter; its presence simply turns on section numbering.
Of course, this just whets my appetite for additional features. For example:
- How about a floating table-of-contents at the top right of the page? Click on a section and jump there!
- And then, clicking on a section header should probably take you back to the top of the page, where the table-of-contents is.
- And there should probably be a preferences item that turns on auto-section-numbering for all “nbm3” pages.
- And probably you should be able to choose your preferred style of section numbering
I don’t say that all of these are going to go in immediately, mind you…though the table-of-contents would be really slick.