emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: sbe with :file header arg?
Date: Mon, 10 Oct 2011 13:15:36 +0100	[thread overview]
Message-ID: <87list59g7.fsf@bill.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87sjn4r7ai.fsf@gmail.com> (Eric Schulte's message of "Fri, 07 Oct 2011 12:22:13 -0600")

Hi Eric,

>> On Fri, 07 Oct 2011 12:22:13 -0600, Eric Schulte said:

  > Myles English <mylesenglish@gmail.com> writes:
  >> I would like to make one plot per row of a table.  This is useful
  >> because the contents of the row may be parameters in an R session,
  >> and a link to the resulting plot can be put in the last cell of
  >> each row.

  > I've just updated the sbe macro so that it is now possible to pass
  > header arguments through to the called code block.  Specifically, if
  > the value immediately following the code block name in an sbe call
  > is a string rather than a variable specification list it will be
  > added to the code blocks header arguments.  See the example below.

  >   #+source: test-sbe #+begin_src emacs-lisp :var x=0 :var y=0 (+ x
  > y) #+end_src

  >   | 1 | 2 | :file eric.png | eric.png | #+TBLFM: @1$4='(sbe test-sbe
  > $3 (x $1) (y $2))

  >   | 1 | 2 | :file eric.png | 3 | #+TBLFM: @1$4='(sbe test-sbe (x $1)
  > (y $2))

Thank you very much, it works well and replaces several manual steps.


      reply	other threads:[~2011-10-10 12:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 17:49 sbe with :file header arg? Myles English
2011-10-07 18:22 ` Eric Schulte
2011-10-10 12:15   ` Myles English [this message]

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=87list59g7.fsf@bill.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mylesenglish@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).