emacs-orgmode
[Top][All Lists]
Advanced

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

[O] [babel] How to set multiple variables with properties


From: Darlan Cavalcante Moreira
Subject: [O] [babel] How to set multiple variables with properties
Date: Tue, 21 Jun 2011 15:42:03 -0300
User-agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/24.0 Mule/6.0 (HANACHIRUSATO)

I'm using org-babel to automate a few tasks and I'd like to define a few
variables that are common to several code blocks as sub-tree properties.

It works when I have only one variable, where I can use
--8<---------------cut here---------------start------------->8---
* Heading
  :PROPERTY:
  :var: variable1="value1"
  :END:
  #+begin_src python :results output
    print variable1
  #+end_src

  #+results:
  : value1
--8<---------------cut here---------------end--------------->8---

Is it possible to set multiples variables in this way?
I tried things like
--8<---------------cut here---------------start------------->8---
:PROPERTY:
:var: variable1="value1" variable2="value2"
:END:

:PROPERTY:
:var: variable1="value1",variable2="value2"
:END:

:PROPERTY:
:variable1: "value1"
:variable2: "value2"
:END:
--8<---------------cut here---------------end--------------->8---
but none of them worked.


--
Darlan Cavalcante



reply via email to

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