[Top][All Lists]

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

[O] Access outline from a code block

From: Rob Duncan
Subject: [O] Access outline from a code block
Date: Sun, 31 Jul 2016 19:09:09 +0000

The manual states that the :var header argument can be given a reference to a 
table, a list, a literal example, a code block, or results.  But I want to use 
a reference to an outline treeā€”is there some way to do this?  My experiments 
have all failed:

#+NAME: example-outline
* L1
** L2a
*** L3a
** L2b
** L2c

* Results
#+NAME: table-length
#+BEGIN_SRC emacs-lisp :var ref=example-outline
(print (format "%S" ref))

#+RESULTS: table-length
: "nil"

Alternatively, is there a way to pass the name as a literal and then explicitly 
resolve it within the code block and get the outline data?



reply via email to

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