emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Russell Adams <RLAdams@AdamsInfoServ.Com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Table summation
Date: Tue, 8 Apr 2008 08:22:09 +0200	[thread overview]
Message-ID: <D600B4CF-C47F-4BA8-8511-38ABC10FF3CB@science.uva.nl> (raw)
In-Reply-To: <20080401160501.GE2015@odin.demosthenes.org>

Hi Russel,

no, I don't see a good way to fix this.  Just get used to use
the proper commands to insert new lines.  To make it easier to
add new lines at the end, try

(setq org-table-tab-jumps-over-hlines nil)

The TAB will create new lines before horizontal separator lines.
Judging from your own follow-up message, this might be all you need?

- Carsten


On Apr 1, 2008, at 6:05 PM, Russell Adams wrote:

> Speaking of tables today, I thought I'd post a question that I haven't
> found a simple answer for.
>
> How do you sum a table reliably? (ie: tolerant of editing)
>
> This table requires the use of org-table-insert-row (etc...) in order
> to keep the formula correct.
>
> | Header |
> |--------|
> |      1 |
> |      2 |
> |      3 |
> |      4 |
> |      5 |
> |--------|
> |     15 |
> #+TBLFM: @7$1=vsum(@I..@II)
>
> How can I do something like this, where the last cell is automatically
> the sum of the column, and not an absolute reference that must be  
> maintained?
>
> |      1 |
> |      2 |
> |      3 |
> |      4 |
> |      5 |
> |--------|
> |     15 |
> #+TBLFM: LAST=vsum($0..$0)
>
> Thanks.
>
>
> ------------------------------------------------------------------
> Russell Adams                            RLAdams@AdamsInfoServ.com
>
> PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/
>
> Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

      parent reply	other threads:[~2008-04-08  7:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-01 16:05 Table summation Russell Adams
2008-04-01 16:19 ` Russell Adams
2008-04-01 21:58   ` Eddward DeVilla
2008-04-02  1:19     ` Russell Adams
2008-04-08  6:22 ` Carsten Dominik [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=D600B4CF-C47F-4BA8-8511-38ABC10FF3CB@science.uva.nl \
    --to=dominik@science.uva.nl \
    --cc=RLAdams@AdamsInfoServ.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).