Re: [O] org table with auto-incrementing numbers in a column

2016-02-16 Thread Nicolas Goaziou
Hello, Derek Feichtinger writes: > When I use this formula > > #+TBLFM: $1= @-1 + 1:: @2$1=1 > > Then org will first fill this part of the table (starting at cell 2$1) > > | N | | > |---+---| > | | | > | 1 | | > | 2 | | > | 3 | | > #+TBLFM: $1= -1 +

Re: [O] org table with auto-incrementing numbers in a column

2016-02-16 Thread Kaushal Modi
Thanks everyone for replying! I made one mistake before posting that question: I should have looked up C-h f org-table-recalculate. And now I did :) I should have done "C-u C-c * " when the point was in the table (I was doing just C-c *, which evaluates only the current row). >> Derek > | N |

Re: [O] org table with auto-incrementing numbers in a column

2016-02-16 Thread Eric S Fraga
On Tuesday, 16 Feb 2016 at 06:22, Derek Feichtinger wrote: [...] > Placing point on the TBLFM line and doing C-c C-c should recalculate > the whole table. as should C-u C-c C-c anywhere in the table. -- : Eric S Fraga (0xFFFCF67D), Emacs 24.5.1, Org release_8.3.2-164-g50a182

Re: [O] org table with auto-incrementing numbers in a column

2016-02-16 Thread Derek Feichtinger
Hi > > > > Try this > > > > | N | | > > |---+---| > > | | | > > | | | > > | | | > > | | | > > #+TBLFM: $1..>$1= -1 + 1:: 2$1=1 > > Sorry, I had a typo from copying and replacing in my formula should be | N | | |---+---| | 1 | | | 2 | | | 3 |

Re: [O] org table with auto-incrementing numbers in a column

2016-02-15 Thread H. Dieter Wilhelm
> > Try this > > | N | | > |---+---| > | | | > | | | > | | | > | | | > #+TBLFM: $1..>$1= -1 + 1:: 2$1=1 > I don't know exactly why "N" is *not* erased but the following is working for me (org 8.2.10). | N | |---| | 1 | | 2 | | 3 | | 4 | |

Re: [O] org table with auto-incrementing numbers in a column

2016-02-15 Thread Derek Feichtinger
Hi Kaushal Modi gmail.com> writes: > > Hi, > I am trying to get auto-incrementing numbers in the first column in an org table. The goal is to recalculate the numbers after adding/removing rows. > > I checked out the org FAQ: 

[O] org table with auto-incrementing numbers in a column

2016-02-15 Thread Kaushal Modi
Hi, I am trying to get auto-incrementing numbers in the first column in an org table. The goal is to recalculate the numbers after adding/removing rows. I checked out the org FAQ: http://orgmode.org/worg/org-faq.html#fill-table-column-with-incremental-numbers But I am still not getting it to