From: drostekirsten@gmail.com
To: help-gnu-emacs@gnu.org
Subject: Re: auto incremental columns in table of org-mode?
Date: Wed, 19 Mar 2008 02:52:55 -0700 (PDT) [thread overview]
Message-ID: <8a0abdfa-5af7-46cd-8ecf-974785d05623@8g2000hse.googlegroups.com> (raw)
In-Reply-To: b4hcf3oimi.fsf@clpc78.comlab
On Mar 18, 9:57 pm, poppyer <popp...@gmail.com> wrote:
> Bastien <b...@altern.org> writes:
> > poppyer <popp...@gmail.com> writes:
>
> >> I am using orgtbl-mode minor mode, basically as following:
>
> >> | k | n | f(n,k) |
> >> |---+-----+--------|
> >> | 1 | 100 | |
> >> | 2 | | |
> >> | 3 | | |
> >> | | | |
> >> | | | |
> >> | | | |
>
> >> My question is how can I fill the k column when I add rows?
>
> > I would define a formula for this table.
>
> > #+TBLFM: $1='(1+ @-1);N
>
> > This basically says: for the each cell in the first column, compute the
> > value of the cell by adding 1 to the value of the cell above.
>
> I am using similar $1=@-1+1;N
> The problem is, it works at the first time. But every time you use C-u
> C-c C-c to update the whole table. The whole $1 column increase by 1.
> i.e. "1 2 3 ... " ===> "2 3 4 ..."
> Any idea to exclude the first "1" without being updated?
>
Yes, by defining a field formula for just this field:
#+TBLFM: $1=@-1+1::@2$1=1
Field formulas overrule column formulas.
- Carsten
next prev parent reply other threads:[~2008-03-19 9:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-17 19:11 auto incremental columns in table of org-mode? poppyer
2008-03-17 21:04 ` Stefan Reichör
2008-03-18 15:36 ` Bastien
[not found] ` <mailman.9096.1205854612.18990.help-gnu-emacs@gnu.org>
2008-03-18 20:57 ` poppyer
2008-03-18 22:24 ` Bastien
2008-03-19 9:52 ` drostekirsten [this message]
[not found] ` <mailman.9111.1205879059.18990.help-gnu-emacs@gnu.org>
2008-03-19 2:44 ` poppyer
2008-03-19 3:44 ` Bastien
[not found] ` <mailman.9151.1205898289.18990.help-gnu-emacs@gnu.org>
2008-03-19 7:24 ` poppyer
2008-03-19 9:55 ` drostekirsten
2008-03-19 14:00 ` poppyer
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8a0abdfa-5af7-46cd-8ecf-974785d05623@8g2000hse.googlegroups.com \
--to=drostekirsten@gmail.com \
--cc=help-gnu-emacs@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.