From: James Harkins <jamshark70@gmail.com>
To: orgmode <emacs-orgmode@gnu.org>
Subject: org-table: Reference *one* cell below a hline?
Date: Thu, 29 May 2014 17:22:58 +0800 [thread overview]
Message-ID: <98c75e11-5722-4f88-8bc3-56cb12f99ac3@dewdrop-world.net> (raw)
I have this:
| Section | Seconds |
|----------+---------|
| Theme | 54 |
| 12/8 | 80 |
| 6/8 | 66 |
| Clarinet | 116 |
| Oboe | 89 |
| Bassoon | 60 |
|----------+---------|
| | |
#+TBLFM: @II+1$2=vsum(@I$2..@II$2)
After calculation (C-u C-u C-c *), I expected:
| Section | Seconds |
|----------+---------|
| Theme | 54 |
| 12/8 | 80 |
| 6/8 | 66 |
| Clarinet | 116 |
| Oboe | 89 |
| Bassoon | 60 |
|----------+---------|
| | 465 |
#+TBLFM: @II+1$2=vsum(@I$2..@II$2)
I got:
| Section | Seconds |
|----------+---------|
| Theme | 54 |
| 12/8 | 80 |
| 6/8 | 66 |
| Clarinet | 116 |
| Oboe | 89 |
| Bassoon | 60 |
|----------+---------|
| 465 | 465 |
#+TBLFM: @II+1$2=vsum(@I$2..@II$2)
That is, "@II+1$2" refers to the *entire row* beneath the second hline,
rather than only the second column in that row. In other words, org-table
discards the $2.
That can't be right, can it?
I'm going to add rows below "465," so I can't just use "@>$2."
This table won't be public, so no big deal *in this case*. But I can
imagine cases where this would be absolutely wrong behavior.
hjh
next reply other threads:[~2014-05-29 9:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-29 9:22 James Harkins [this message]
2014-05-30 11:50 ` org-table: Reference *one* cell below a hline? Bastien
2014-06-05 3:18 ` James Harkins
2014-06-05 15:49 ` Nick Dokos
2014-07-28 8:49 ` Bastien
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=98c75e11-5722-4f88-8bc3-56cb12f99ac3@dewdrop-world.net \
--to=jamshark70@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).