[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add support for tables in Calc src block :var
From: |
Fraga, Eric |
Subject: |
Re: [PATCH] Add support for tables in Calc src block :var |
Date: |
Wed, 3 Apr 2024 12:43:58 +0000 |
User-agent: |
gnus (Emacs 30.0.50) |
On Saturday, 30 Mar 2024 at 18:34, Visuwesh wrote:
>> Specifically, I would love to make reference to calc variables,
>> especially those defined using embedded calc, in org tables.
>
> Can you please provide a minimal example for me to play around with? I
> realise I would like something like this too [*] but I don't know
> concretely what this would/should look like.
So, embedded calc processes expressions in any buffer, including org
mode, which might look like this:
x := 3
y := 5
z := 3 x - y => 4
where, in this case, the value of z has been determined by calc and the
answer given after the => in the line. The beauty of embedded calc is
you can change the value of x and the subsequent expressions will be
updated automatically (well, with C-x * u).
I would then love to be able to have a table that would allow me to
include the value of any variable, e.g. z above, something like
| var | value |
|-----+-------|
| x | 3 |
| z | 4 |
where the values in the second column are obtained by querying Calc.
--
: Eric S Fraga, with org release_9.6.23-1314-g945046 in Emacs 30.0.50
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH] Add support for tables in Calc src block :var,
Fraga, Eric <=