From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Include results in a table Date: Tue, 28 Oct 2014 10:34:21 +0100 Message-ID: <878uk0fsgy.fsf@gmail.com> References: <544F5BA4.3090703@thierry-pelle.eu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj3Am-0002Ca-75 for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 05:34:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj3Af-0003di-Ua for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 05:34:40 -0400 Received: from plane.gmane.org ([80.91.229.3]:51869) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj3Af-0003de-Nq for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 05:34:33 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xj3Ae-0002Ab-RR for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 10:34:32 +0100 Received: from e178060153.adsl.alicedsl.de ([85.178.60.153]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 10:34:32 +0100 Received: from tjolitz by e178060153.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 10:34:32 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org abonnements writes: Hello, > I have somethink like that > > #+call: gen(A) > #+results: A > : 10 > > #+call: gen(B) > #+results: B > : 20 > > Is there a simple mean to aggregate the results in a table, i.e to get > | A | 10 | > | B | 20 | > > I think some lisp can do that but as a beginner... but as I want to > learn you can suggest a somewhat complicated solution or a simple idea. > Thanks. you could define a 3rd block C that takes the results from block A and B as variable via :vars x=A y=B (A and B must be named blocks for this, use a #+NAME: A line) and then do (list A x B y) in block C and use the :results format that outputs a list as a table (often it is the default, otherwise try :results table or so). -- cheers, Thorsten