Re: How to capture export prepended header numbering

2019-12-30 Thread Adam Porter
Someone reminded me that Org has org-num-mode now, so please disregard all of that. At least it was good exercise.

Re: How to capture export prepended header numbering

2019-12-30 Thread Adam Porter
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

Re: How to capture export prepended header numbering

2019-12-30 Thread Adam Porter
FYI, I tidied the code a tiny bit and posted it here: https://github.com/alphapapa/unpackaged.el#outline-number-overlays

Re: How to capture export prepended header numbering

2019-12-30 Thread Adam Porter
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

How to capture export prepended header numbering

2019-12-30 Thread Lawrence Bottorff
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