Re: [O] Capture and use export header numbering?
Hello Lawrence, Lawrence Bottorff writes: > When an outline tree of headers > > * top 1 > ** something > ** something > ** something > *** something > something > * something > ** something > > is exported, say, to html, org-mode produces a numerical outline as deep as > the options are set > > 1. top > 1.1. something > 1.2. something > 1.3. something > 1.3.1. something > 1.3.1.1. something > 1.3.1.1.1. something > 1.3.1.1.1.1. something > > > Now, is there any way to actually capture that outline numeration for use > in the original buffer? I'm thinking I would like to make a sort of tags or > custom_id system based on these numbers. You might find something useful as a starting point in this old code I posted here: http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00245.html Basically it exported to text to get the heading numbers. Myles
Re: [O] Capture and use export header numbering?
Hello, Lawrence Bottorff writes: > It would also be nice if org-mode simply used these numbers in the original > buffer instead of stars. That will not happen. Stars are part of Org syntax. However, you can add overlays on top of stars in order to display numbering instead. Regards, -- Nicolas Goaziou
[O] Capture and use export header numbering?
When an outline tree of headers * top 1 ** something ** something ** something *** something something * something ** something is exported, say, to html, org-mode produces a numerical outline as deep as the options are set 1. top 1.1. something 1.2. something 1.3. something 1.3.1. something 1.3.1.1. something 1.3.1.1.1. something 1.3.1.1.1.1. something Now, is there any way to actually capture that outline numeration for use in the original buffer? I'm thinking I would like to make a sort of tags or custom_id system based on these numbers. * top :1: ** something :1.1: ** something :1.2: ** something :1.3: *** something :1.3.1: something :1.3.1.1: * something :1.3.1.1.1: ** something :1.3.1.1.1.1: It would also be nice if org-mode simply used these numbers in the original buffer instead of stars. LB