Someone reminded me that Org has org-num-mode now, so please disregard
all of that. At least it was good exercise.
Adam Porter writes:
> There is no built-in way to do that, and no way independent of
> org-export to get the numbers, AFAIK.
>
> Here's some ugly old code that shows outline numbering as overlays in an
> Org buffer. It doesn't update automatically, so you have to run it
> again when the outline
FYI, I tidied the code a tiny bit and posted it here:
https://github.com/alphapapa/unpackaged.el#outline-number-overlays
There is no built-in way to do that, and no way independent of
org-export to get the numbers, AFAIK.
Here's some ugly old code that shows outline numbering as overlays in an
Org buffer. It doesn't update automatically, so you have to run it
again when the outline changes. But it seems to work we
Basically, I'd like to know what level each heading of an org file is and
in what order they appear. So if my org file looks like this
* heading a
** sub-heading a.1
** sub-heading a.2
*** sub-sub-heading a.2.1
* heading b
** sub-heading b.1
*** sub-sub-heading b.1.1
* heading c
And an HTML expor