emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Giovanni Ridolfi <giovanni.ridolfi@yahoo.it>
Cc: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>,
	"org-mode mailing list" <emacs-orgmode@gnu.org>
Subject: Re: remote reference
Date: Fri, 15 Jan 2010 16:55:07 +0100	[thread overview]
Message-ID: <6D5CED20-6E3E-4FFA-BB8E-89AA119E3317@gmail.com> (raw)
In-Reply-To: <83ockvbr0t.fsf@yahoo.it>

Hi Giovanni,

ranges are possible in remote references.  However, what
is not allowed it to assign them to a range.  On the left
side of equations you can only have single fields
like @2$3 or a column like $3.

So you might ask what the use of range references then
is?  You can put the ranges into calc functions like
vsum or vmean, or you can get them as lists in an
elisp formula.

Hope this clarifies it a bit....

Looks like someone needs to write a tutorial about that! :-)

- Carsten

On Jan 15, 2010, at 11:29 AM, Giovanni Ridolfi wrote:

>
> Carsten,
>
> I cannot reference fields in tables as the manual says.
> Org-mode version 6.34
> GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-30 on SOFT-MJASON
>
> Example:
> -------------------------------------------------
> * [2010-01-15 ven] table & reference
> ** table a
> #+TBLNAME: Taba
> |   | # |  x | y |
> |---+---+----+---|
> |   | 1 | -2 | 4 |
> |   | 2 | -1 | 1 |
> |   | 3 |  0 | 0 |
> |   | 4 |  1 | 1 |
> |   | 5 |  2 | 4 |
> | ^ |   |    | a |
> ** table b
> the manual says:
> : remote(NAME-OR-ID,REF)
> : REF is an absolute field or range reference
> : as described above for example `@3$3' or `$somename', valid in the
> : referenced table.
>
> But I found that as a REF I can only  use:
> + field  a cell  @5$1=remote(Taba,$a)
> + and *NOT* range reference (as $somename) or
>   ranges such as @1$2..@5$2,
> but in the manual is not explicitly said.
> So I could have misunderstoot the meaning of "range".
>
> See the non working examples:
> *** variables
> #+TBLNAME: Tabb
> |   |   |
> |---+---|
> | ^ | b |
> #+TBLFM: $b=remote(Taba,$a)
> *** columns
> #+TBLNAME: Tabc
> |   |   |
> |   |   |
> |   |   |
> |   |   |
> |   |   |
> |---+---|
> | ^ | b |
> #+TBLFM: $2=remote(Taba,$4)
>
> #+TBLNAME: Tabcc
> |   |   |
> |   |   |
> |   |   |
> |   |   |
> |   |   |
> |---+---|
> | ^ | b |
> #+TBLFM: @1$2..@5$2=remote(Taba,$4)
> *** ranges:
> #+TBLNAME: Tabr
> |   |   |
> |   |   |
> |   |   |
> |   |   |
> |   |   |
> |---+---|
> | ^ | b |
> #+TBLFM: @1$2..@5$2=remote(Taba,@1$3..@5$3)
> ------------------------------------------------------------
> Is my analysis correct?
> Did I misunderstand the meanong of "range"?
> Is the documentation incomplete?
> Is there a bug  and  the documentation is correct?
>
> cheers,
> Giovanni
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-01-15 15:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-15  8:49 remote reference Karl Eichwalder
2010-01-15  9:21 ` Sébastien Vauban
2010-01-15  9:59   ` Sébastien Vauban
2010-01-15  9:38 ` Carsten Dominik
2010-01-15 10:29   ` Giovanni Ridolfi
2010-01-15 15:55     ` Carsten Dominik [this message]
2010-01-18  8:53       ` Giovanni Ridolfi
2010-01-28 17:34         ` Carsten Dominik
2010-05-11 19:16   ` Karl Eichwalder
2010-05-12  6:16     ` Carsten Dominik
2010-05-12 11:26       ` Karl Eichwalder
2010-05-12 13:06         ` Carsten Dominik
2010-12-11 14:42           ` Karl Eichwalder
2010-12-11 14:46             ` Carsten Dominik

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=6D5CED20-6E3E-4FFA-BB8E-89AA119E3317@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=giovanni.ridolfi@yahoo.it \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).