emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Extract document structure from Org file


From: Rasmus
Subject: Re: [O] Extract document structure from Org file
Date: Fri, 03 Jul 2015 13:58:27 +0200
User-agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux)

Hi Oleg,

Oleg Sivokon <address@hidden> writes:

> Suppose I wanted to extract the structure from an Org document, where,
> what's important for me would be to have it cathegorically divided into
> headers, paragraphs of text, technical information and inclusion of
> other documents (code snippets).  How would I do it?

You would use org-element.  Try org-element-parse-buffer and
org-element-map and maybe org-element-interpret-data.  There's also a
bunch of regexp for identifying/finding particular types of elements.

Cheers,
Rasmus

-- 
To err is human. To screw up 10⁶ times per second, you need a computer




reply via email to

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