"D. C. Toedt" <d...@toedt.com> writes: > --- is there a comparable one (or arguments) to get the section number of a > heading?
There is `org-export-get-headline-number' but is only accessible during export, so it cannot be called from a macro or a Babel block. Anyway, in your case, you just need to use [[#custom-id]]. Regards, -- Nicolas Goaziou