recently I am using table to do some statistics, and I want the first column of the table to indicate the row number, as this.
| | title|
|--| -----|
| 1| A |
| 2| B |
and I want the number of first column grow automatically after creating a new row.
Are there good suggestions about it?
#+tblfm: $1=@#-1
under the table. Now when you move your mouse to the formula andC-c C-c
on it, it will recalculate the contents of the first column s.a. to create a sequence of increasing integers.C-h I
), Section 3.5.1 of the manual, in an unnumbered sub-section called "Field coordinates in formulas," explains@#-1
. Then section 3.5.6, "Column Fomulas," explains the$1=
.$1=@#-2
.