emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to show the complete syntax tree


From: Thorsten Jolitz
Subject: Re: [O] How to show the complete syntax tree
Date: Mon, 14 Jul 2014 09:37:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Shiyuan <address@hidden> writes:

> [...]
> For example, if the current org buffer has the following content: 
>
> #+TITLE: Hello World
> Hello World!
> * HEADLINE 1
> ** Sub-topic 
> + ItemA
> + ItemB
> - Item1
> - Item2
> *** Sub-Sub-topic
> \begin{equation}
> \label{eq:test}
> Bx=b
> \end{equation}
> [...]

Following up in outorg, I evaluate this in the *outorg-edit-buffer*:

#+begin_src emacs-lisp :results raw
(org-element-parse-buffer 'object)
#+end_src

#+results:

(org-data nil (headline (:raw-value --text follows this line-- :begin 1
:end 1604 [...]
> For example, if the current org buffer has the following content: 
>
> #+TITLE: Hello World
> Hello World!
> * HEADLINE 1
> ** Sub-topic 
> + ItemA
> + ItemB
> - Item1
> - Item2
>  (bold (:begin 533 :end 537 :contents-begin 534 :contents-end 535
>  :post-blank 1 :parent #3) *) Sub-Sub-topic
>  (latex-fragment (:value \begin{equation} :begin 553 :end 569
>  :post-blank 0 :parent #3))
>  (latex-fragment (:value \label{eq:test} :begin 572 :end 587
>  :post-blank 0 :parent #3))
> Bx=b
>  (latex-fragment (:value \end{equation} :begin 597 :end 611
>  :post-blank 0 :parent #3))
[...]

-- 
cheers,
Thorsten




reply via email to

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