emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [babel] How to set multiple variables with properties
@ 2011-06-21 18:42 Darlan Cavalcante Moreira
  2011-06-21 20:17 ` Eric Schulte
  0 siblings, 1 reply; 9+ messages in thread
From: Darlan Cavalcante Moreira @ 2011-06-21 18:42 UTC (permalink / raw)
  To: Orgmode Mailing List


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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-06-24  5:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-21 18:42 [babel] How to set multiple variables with properties Darlan Cavalcante Moreira
2011-06-21 20:17 ` Eric Schulte
2011-06-21 21:01   ` Christian Moe
2011-06-21 21:03     ` Eric Schulte
2011-06-22 18:27       ` Christian Moe
2011-06-23  1:38         ` Darlan Cavalcante Moreira
2011-06-24  5:28           ` Eric Schulte
2011-06-24  5:25         ` Eric Schulte
2011-06-22  1:03   ` Darlan Cavalcante Moreira

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).