emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Roland Everaert <reveatwork@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Using code block function as formula in tables
Date: Thu, 12 Jan 2017 13:37:19 +0100	[thread overview]
Message-ID: <CACdPZ9+vBQHcjQXfNe13qJ2er-uMeczOKPv39O424Jr83KAKug@mail.gmail.com> (raw)
In-Reply-To: <87a8axtzsj.fsf@nicolasgoaziou.fr>

[-- Attachment #1: Type: text/plain, Size: 1030 bytes --]

It works. But I had to set some headers  in the code block itself as
following:

 :exports results :results value

I suppose, I can specify them directly in the org-sbe call, like with
inline calls or call through #+CALL?

This feature really needs to be documented and extensively.


Thanks,

On Wed, Jan 11, 2017 at 3:51 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Roland Everaert <reveatwork@gmail.com> writes:
>
> > Is it possible to call a code block from a table field as it is a
> formula?
> >
> > I have tried the following syntax from a field in a table, but none of
> them
> > is interpreted as expected:
> >
> > - #+CALL: function(parameters)
> > - call_function(parameters)
> >
> > The goal is to use the result of the call in other formulas of the
> > table.
>
> It is called org-sbe(parameters). Unfortunately, it is not documented in
> the
> manual. There is <http://orgmode.org/worg/org-contrib/babel/intro.html>
> however. Search for "org-sbe" there.
>
> Regards,
>
> --
> Nicolas Goaziou
>

[-- Attachment #2: Type: text/html, Size: 1759 bytes --]

  reply	other threads:[~2017-01-12 12:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-11 13:13 Using code block function as formula in tables Roland Everaert
2017-01-11 14:51 ` Nicolas Goaziou
2017-01-12 12:37   ` Roland Everaert [this message]
2017-01-12 12:55     ` Nicolas Goaziou

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=CACdPZ9+vBQHcjQXfNe13qJ2er-uMeczOKPv39O424Jr83KAKug@mail.gmail.com \
    --to=reveatwork@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=mail@nicolasgoaziou.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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