[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-table: Reference *one* cell below a hline?
From: |
James Harkins |
Subject: |
[O] org-table: Reference *one* cell below a hline? |
Date: |
Thu, 29 May 2014 17:22:58 +0800 |
User-agent: |
Trojita/v0.4.1-obs-cab81c4; Qt/4.8.1; X11; Linux; Ubuntu 12.04.4 LTS |
I have this:
| Section | Seconds |
|----------+---------|
| Theme | 54 |
| 12/8 | 80 |
| 6/8 | 66 |
| Clarinet | 116 |
| Oboe | 89 |
| Bassoon | 60 |
|----------+---------|
| | |
#+TBLFM: @II+1$2=vsum(@address@hidden)
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(@address@hidden)
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(@address@hidden)
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
- [O] org-table: Reference *one* cell below a hline?,
James Harkins <=