help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto incremental columns in table of org-mode?


From: Bastien
Subject: Re: auto incremental columns in table of org-mode?
Date: Tue, 18 Mar 2008 15:36:37 +0000
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

poppyer <address@hidden> 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.

Use C-c * or C-u C-c to re-compute the values in this column.

-- 
Bastien




reply via email to

[Prev in Thread] Current Thread [Next in Thread]