emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Including row numbers in a table
@ 2008-08-09  4:40 Daniel J. Sinder
  2008-08-09  5:59 ` Bernt Hansen
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel J. Sinder @ 2008-08-09  4:40 UTC (permalink / raw)
  To: emacs-orgmode

I haven't used table formulas that much and I can't figure this one 
out.  I'd like to include row numbers in the table itself. 
Something like this:

   | Row | Data Column 1  | Data Column 2       |
   |-----+----------------+---------------------|
   |   1 | some data      | more data           |
   |   2 | some more data | even more data      |
   |-----+----------------+---------------------|
   |   3 | still more     | yup, you guessed it |
   |   4 | and more       | that's all          |


I'd like to use a formula for the first column so that if I move 
rows around using org commands, the row numbers can be easily 
re-calculated.  Note that I'd like numbering to continue 
sequentially across horizontal lines.

I've tried column formulas like @-1+1, but the horizontal lines get 
in the way.  And if every row needs it's own formula, it's hardly 
better than just filling in the numbers.

Can anyone suggest how to do this is a reasonably automated fashion?

Thanks,
Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-09  8:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-09  4:40 Including row numbers in a table Daniel J. Sinder
2008-08-09  5:59 ` Bernt Hansen
2008-08-09  6:57   ` Bernt Hansen
2008-08-09  7:04     ` Bernt Hansen
2008-08-09  8:16       ` Daniel J. Sinder

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).