emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "William Henney" <whenney@gmail.com>
To: Rainer Stengele <rainer.stengele@diplan.de>
Cc: "Benedikt Pfülb" <benedikt.pfuelb@diplan.de>, emacs-orgmode@gnu.org
Subject: Re: question concerning table mode / vsum / automatic adjustments of indices
Date: Fri, 29 Aug 2008 06:27:37 -0500	[thread overview]
Message-ID: <41c818190808290427xa2776a8p2ff44f8ae6c16919@mail.gmail.com> (raw)
In-Reply-To: <48B53BE6.9040503@diplan.de>

Hi Rainer

On Wed, Aug 27, 2008 at 6:35 AM, Rainer Stengele
<rainer.stengele@diplan.de> wrote:
> Now I want to add a row after "c". Being on the row below "c"
> when I press <M-S-DOWN> I get this:
>
>       |-------+--------|
>       | items | amount |
>       |-------+--------|
>       | a     |    0.5 |
>       | b     |    0.0 |
>       | c     |    0.5 |
>       |       |        |
>       |-------+--------|
>       | sum   |     1. |
>       |-------+--------|
> #+TBLFM:    @6$2=vsum(@2..@4)
>
> which is not what I want. I want "@5" as in the case before.
> Is this a bug or a feature? How can I get what I need?
>

The way you have written the vsum, org has no way of knowing that you
really want to sum all the rows between the previous two horizontal
lines. Instead, you should put vsum(@-II..@-I) to tell it this
explicitly. That way, you can even add/delete rows "by hand" and it
will still work.

Hope this helps

Will


-- 

 Dr William Henney, Centro de Radioastronomía y Astrofísica,
 Universidad Nacional Autónoma de México, Campus Morelia

      reply	other threads:[~2008-08-29 11:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-27 11:35 question concerning table mode / vsum / automatic adjustments of indices Rainer Stengele
2008-08-29 11:27 ` William Henney [this message]

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=41c818190808290427xa2776a8p2ff44f8ae6c16919@mail.gmail.com \
    --to=whenney@gmail.com \
    --cc=benedikt.pfuelb@diplan.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=rainer.stengele@diplan.de \
    /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).