emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Ismael Barros²" <razielmine@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Can't import a remote reference to a whole column in orgtbl
Date: Fri, 26 Feb 2010 01:54:08 +0100	[thread overview]
Message-ID: <82e274891002251654s643e8003pdb2b3db669d5528b@mail.gmail.com> (raw)
In-Reply-To: <82e274891002251643k327135aajea270914244abff7@mail.gmail.com>

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=$0;%.2f :: $4=@$-1/@$2;%.2f ::
                            $5=$0;%.2f ::
$6=remote(results_seq,@2$1)/@$-1;%.2f :: $7=@$-1/@$2;%.2f ::        \
        $8=$0;%.2f :: $9=remote(results_seq,@2$2)/@$-1;%.2f :: $10=@$-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=$0;%.2f :: $4=remote(results_par,$3)/@$-1;%.2f ::
$5=@$-1/@$2;%.2f ::                 $6=$0;%.2f ::
$7=remote(results_par,$5)/@$-1;%.2f :: $8=@$-1/@$2;%.2f ::           \
      $9=$0;%.2f :: $10=remote(results_par,$9);%.2f :: $11=@$-1/@$2;%.2f
  % $

Note how $10=remote(results_par,$9) yields $10=$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² <razielmine@gmail.com> 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
>

  reply	other threads:[~2010-02-26  0:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26  0:43 Can't import a remote reference to a whole column in orgtbl Ismael Barros²
2010-02-26  0:54 ` Ismael Barros² [this message]
2010-02-26  9:27   ` Giovanni Ridolfi
2010-04-03 17:24     ` Ismael Barros²
2010-04-04  6:47       ` Carsten Dominik
2010-04-04 19:02         ` Michael Brand
2010-04-04 20:08           ` Carsten Dominik
2010-04-05  6:11             ` Michael Brand
2010-04-05  6:48               ` Carsten Dominik
2010-04-05 18:26                 ` Michael Brand
2010-04-06  5:15                   ` Carsten Dominik
2010-04-07 19:55                     ` Michael Brand
2011-11-01 21:14                       ` [Orgmode] " Nick Dokos
2011-11-01 21:23                       ` Nick Dokos

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=82e274891002251654s643e8003pdb2b3db669d5528b@mail.gmail.com \
    --to=razielmine@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).