mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-23 14:10:43 +00:00
32bbd3f3bb
for example, the following simple example #+begin_src emacs-lisp :var two=(+ 1 1) (sqrt two) #+end_src #+results: : 1.4142135623730951 Or this more interesting usage, which pulls variable values from headline properties *** example headline w/property :PROPERTIES: :special: 89 :last-name: schulte :END: #+begin_src emacs-lisp :var special=(string-to-number (org-entry-get nil "special" t)) (+ special 1) #+end_src #+results: : 90 #+begin_src emacs-lisp :var last-name=(org-entry-get nil "last-name" t)) (message "hello %s" last-name) #+end_src #+results: : hello schulte |
||
---|---|---|
.. | ||
langs | ||
org-babel-comint.el | ||
org-babel-exp.el | ||
org-babel-keys.el | ||
org-babel-lob.el | ||
org-babel-ref.el | ||
org-babel-table.el | ||
org-babel-tangle.el | ||
org-babel.el |