From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Brand Subject: Re: Using last row in remote table references Date: Wed, 11 Jan 2012 18:34:51 +0100 Message-ID: References: <2D76BBD878DB8B49BBE309F15526B38E8042@SJEXCHMB06.corp.ad.broadcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47560) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl24c-0003fy-Va for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 12:35:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rl24b-00005A-5e for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 12:34:54 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:47122) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rl24b-000053-1G for emacs-orgmode@gnu.org; Wed, 11 Jan 2012 12:34:53 -0500 Received: by wics10 with SMTP id s10so788243wic.0 for ; Wed, 11 Jan 2012 09:34:51 -0800 (PST) In-Reply-To: <2D76BBD878DB8B49BBE309F15526B38E8042@SJEXCHMB06.corp.ad.broadcom.com> 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: "Phil (Philip) Mason" Cc: "emacs-orgmode@gnu.org" Hi Phil On Tue, Jan 10, 2012 at 14:39, Phil (Philip) Mason wrote: > Should I be able to use @> in references to remote tables? Yes, this issue has been resolved by Carsten with release_7.7-420-g1432e4b > Is there a syntax I should be using if I want to get all the entries > in a table below a certain row without explicitly entering the > number of the last row? The general solution for a Calc formula is e. g. with subvec as I described here: http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00562.html and in a similar sense as I described for subscr in the subsection "Dynamic variation of ranges" here: http://orgmode.org/worg/org-hacks.html#field-coordinates-in-formulas The general solution for a Lisp formula is e. g. with calc-subvector I guess. The following simpler solution is only possible when the range is relative to the field where the formula is evaluated in and when the offset to the range border is static: |---+-----| | a | abc | | b | bcd | | c | cde | | d | | | e | | |---+-----| #+TBLFM: @<$2..@>>>$2 = '(concat @0$1..@+2$1) With a remote table you can not use the simple solution. Michael