From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Ismael_Barros=C2=B2?= Subject: Re: Can't import a remote reference to a whole column in orgtbl Date: Fri, 26 Feb 2010 01:54:08 +0100 Message-ID: <82e274891002251654s643e8003pdb2b3db669d5528b@mail.gmail.com> References: <82e274891002251643k327135aajea270914244abff7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NkoT9-0004Hc-SD for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 19:54:15 -0500 Received: from [140.186.70.92] (port=36824 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NkoT8-0004HU-23 for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 19:54:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NkoT7-00044V-0S for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 19:54:13 -0500 Received: from mail-bw0-f219.google.com ([209.85.218.219]:44020) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NkoT6-00044L-OM for emacs-orgmode@gnu.org; Thu, 25 Feb 2010 19:54:12 -0500 Received: by bwz19 with SMTP id 19so5237491bwz.26 for ; Thu, 25 Feb 2010 16:54:08 -0800 (PST) In-Reply-To: <82e274891002251643k327135aajea270914244abff7@mail.gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org This would probably help: Source table: #+TBLNAME: results_par #+ORGTBL: SEND results_par orgtbl-to-latex :splice t :skip 2 | | proc | t1 | | t2 | | | t3 | | | |---+------+-------+-------+-------+-------+------+------+-------+------| | # | 1 | 1.72 | 1.72 | 60.21 | 0.89 | 0.89 | 8.84 | 0.87 | 0.87 | | # | 2 | 32.66 | 16.33 | 30.37 | 1.77 | 0.89 | 4.41 | 1.74 | 0.87 | | # | 4 | 37.26 | 9.31 | 15.63 | 3.44 | 0.86 | 2.22 | 3.45 | 0.86 | | # | 8 | 36.36 | 4.54 | 8.12 | 6.62 | 0.83 | 1.11 | 6.90 | 0.86 | | # | 16 | 38.90 | 2.43 | 4.38 | 12.28 | 0.77 | 0.56 | 13.68 | 0.85 | #+TBLFM: $3=3D$0;%.2f :: $4=3D@$-1/@$2;%.2f :: $5=3D$0;%.2f :: $6=3Dremote(results_seq,@2$1)/@$-1;%.2f :: $7=3D@$-1/@$2;%.2f :: \ $8=3D$0;%.2f :: $9=3Dremote(results_seq,@2$2)/@$-1;%.2f :: $10=3D@$= -1/@$2;%.2f % $ Destination table: #+ORGTBL: SEND results1_2 orgtbl-to-latex :splice t :skip 2 | | proc | t1 | | | t2 | | | t3 | | = | |---+------+-------+------+------+-------+------+------+------+------+---= ---| | # | 1 | 1.59 | 1.00 | 1.00 | 40.05 | 0.02 | 0.02 | 8.34 | 8.34 | 8.= 34 | | # | 2 | 37.28 | 1.00 | 0.50 | 20.29 | 0.02 | 0.01 | 4.17 | 4.17 | 2.= 08 | | # | 4 | 34.91 | 1.00 | 0.25 | 10.43 | 0.02 | 0.01 | 2.13 | 2.13 | 0.= 53 | | # | 8 | 36.36 | 1.00 | 0.12 | 5.42 | 0.02 | 0.00 | 1.05 | 1.05 | 0.= 13 | | # | 16 | 38.93 | 1.00 | 0.06 | 3.03 | 0.02 | 0.00 | 0.53 | 0.53 | 0.= 03 | #+TBLFM: $3=3D$0;%.2f :: $4=3Dremote(results_par,$3)/@$-1;%.2f :: $5=3D@$-1/@$2;%.2f :: $6=3D$0;%.2f :: $7=3Dremote(results_par,$5)/@$-1;%.2f :: $8=3D@$-1/@$2;%.2f :: \ $9=3D$0;%.2f :: $10=3Dremote(results_par,$9);%.2f :: $11=3D@$-1/@$2;%= .2f % $ Note how $10=3Dremote(results_par,$9) yields $10=3D$9. Also, this happened on org-mode 6.34c-5 and org-mode from git. Regards, Ismael On Fri, Feb 26, 2010 at 1:43 AM, Ismael Barros=C2=B2 = wrote: > Hi, I'm new to org-mode and orgtbl, please don't hit me too hard with > a stick if what I'm asking is retarded :) > > I'm using org-mode with orgtbl inside a Latex document. I'm making > extensive use of remote references to other tables inside the > document. If I reference a cell, for example, with > "remote(results_par,@2$9)", it works as expected, but if I reference a > whole column, with "remote(results_par,$9)", it doesn't work: instead > of column 9 from "results_par" table, I get column 9 from the table > I'm woking on. > > Am I doing something wrong or did I stumble with a bug in orgtbl? Any > workaround or version that has it fixed? I would *really* appreciate > some help, deadlines are crushing me! > > Regards, and thanks in advance! > Ismael >