diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2010-09-19 22:21:46 -0600 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2010-09-21 09:49:41 -0600 |
commit | b5967dfa885df3ac427f0391b3900a751d78559e (patch) | |
tree | ef7d7eef443cd7d8855fb532047b46e07448188d | |
parent | 2f4db36f4b011c5ba30ac31e15218c16a15671b8 (diff) | |
download | org-mode-b5967dfa885df3ac427f0391b3900a751d78559e.tar.gz |
library of babel: new code block for expanding headings
* contrib/babel/library-of-babel.org (Write): new code block for
expanding headings
-rw-r--r-- | contrib/babel/library-of-babel.org | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/babel/library-of-babel.org b/contrib/babel/library-of-babel.org index d2b9ff2..07c40aa 100644 --- a/contrib/babel/library-of-babel.org +++ b/contrib/babel/library-of-babel.org @@ -161,6 +161,20 @@ plot(data) ** 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 ** LaTeX Table export *** booktabs |