From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel J. Sinder" Subject: Including row numbers in a table Date: Fri, 08 Aug 2008 21:40:59 -0700 Message-ID: <489D1FDB.2010603@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRgGG-0002Tt-BV for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 00:41:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRgGE-0002SB-EU for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 00:41:03 -0400 Received: from [199.232.76.173] (port=34861 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRgGE-0002Rx-7x for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 00:41:02 -0400 Received: from mailbigip.dreamhost.com ([208.97.132.5]:35264 helo=randymail-a10.g.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRgGD-0001Sl-VB for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 00:41:02 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org 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