emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Darlan Cavalcante Moreira <darcamo@gmail.com>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>
Subject: [babel] How to set multiple variables with properties
Date: Tue, 21 Jun 2011 15:42:03 -0300	[thread overview]
Message-ID: <4e00e5ff.634dec0a.10c2.462f@mx.google.com> (raw)

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
  :var: variable1="value1"
  #+begin_src python :results output
    print variable1

  : 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---
:var: variable1="value1" variable2="value2"

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

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

Darlan Cavalcante

             reply	other threads:[~2011-06-21 18:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-21 18:42 Darlan Cavalcante Moreira [this message]
2011-06-21 20:17 ` [babel] How to set multiple variables with properties 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4e00e5ff.634dec0a.10c2.462f@mx.google.com \
    --to=darcamo@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


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).