emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Searching for a headline


From: Nicolas Goaziou
Subject: Re: [O] Searching for a headline
Date: Sun, 26 Feb 2017 19:12:10 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Mark Meyer <address@hidden> writes:

> On 02/26/17 18:28, Nicolas Goaziou wrote:
> I wrote it yesterday, the code's up at
>
>  https://github.com/ofosos/org-epub

Great.

> it's a little crufty, because I did write it for org 8 initially.
>
> Hmm, I have to think about it. I would like to either have a 1:1 mapping
> between the elements `org-element' delvers and the links the export
> backend generates or create a function that runs before the export that
> generates :custom_id properties for every element that doesn't have
> one.

Did you look at `org-html--format-toc-headline'?

Also, if you want to collect headlines above a given level, there is
`org-export-collect-headlines'.

> This was easier in org 8, since every internal link was just something
> like `sec-8-2'.

It is also easy in Org 9 : (org-export-get-reference headline info). See
its use in the function above.

Regards,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]