emacs-orgmode
[Top][All Lists]
Advanced

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

Re: Extract toc from org file


From: Max Nikulin
Subject: Re: Extract toc from org file
Date: Mon, 26 Sep 2022 23:02:50 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

On 26/09/2022 22:21, Max Nikulin wrote:
On 26/09/2022 18:53, reza wrote:

Is there a way to extract a toc from an org file e.g:

      #+INCLUDE: myfile.org :toc only

I want to assemble the toc's from several files into one file and there
seems to be no easy way to do this.

Likely `org-element-map' allows to extract headings. There are should be some example in the mail list archive and at worg (hacks, perhaps in FAQ).

See also info "(org) Using the Mapping API"
https://orgmode.org/manual/Using-the-Mapping-API.html
for `org-map-entries'.




reply via email to

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