emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Include results in a table


From: abonnements
Subject: Re: [O] Include results in a table
Date: Tue, 28 Oct 2014 11:08:07 +0100
User-agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

Hi, thank you for your answer.

Your solution is OK but only for the example I gave (2 or 3 results). In practice I have about 10 results and the number of them may be variable... 
Furthermore :vars does not work on my version (I must use :var x=A :var y=B)...

Ta.
Thierry
 
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]