library of babel: new code block for expanding headings

* contrib/babel/library-of-babel.org (Write): new code block for
  expanding headings
This commit is contained in:
Eric Schulte 2010-09-19 22:21:46 -06:00
parent 2f4db36f4b
commit b5967dfa88
1 changed files with 14 additions and 0 deletions

View File

@ -161,6 +161,20 @@ plot(data)
** Gnuplot ** Gnuplot
* Org reference
** headline references
#+source: headline
#+begin_src emacs-lisp :var headline=top :var file='()
(save-excursion
(when file (get-file-buffer file))
(org-open-link-from-string (org-make-link-string headline))
(save-restriction
(org-narrow-to-subtree)
(buffer-string)))
#+end_src
#+call: headline(headline="headline references")
* Tables * Tables
** LaTeX Table export ** LaTeX Table export
*** booktabs *** booktabs