From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Extract document structure from Org file
Date: Fri, 03 Jul 2015 13:58:27 +0200 [thread overview]
Message-ID: <87twtl3124.fsf@gmx.us> (raw)
In-Reply-To: 87egkpfxe3.fsf@gmail.com
Hi Oleg,
Oleg Sivokon <olegsivokon@gmail.com> 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
next prev parent reply other threads:[~2015-07-03 11:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-03 8:39 Extract document structure from Org file Oleg Sivokon
2015-07-03 11:58 ` Rasmus [this message]
2015-07-03 14:20 ` John Kitchin
[not found] ` <87a8vdfacd.fsf@gmail.com>
2015-07-04 15:54 ` John Kitchin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87twtl3124.fsf@gmx.us \
--to=rasmus@gmx.us \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.