From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Including row numbers in a table Date: Sat, 09 Aug 2008 03:04:49 -0400 Message-ID: <87myjmu0ry.fsf@gollum.intra.norang.ca> References: <489D1FDB.2010603@gmail.com> <87vdyau3sm.fsf@gollum.intra.norang.ca> <87r68yu13n.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRiVT-0001sS-VV for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 03:04:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRiVS-0001qV-6W for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 03:04:55 -0400 Received: from [199.232.76.173] (port=58269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRiVS-0001qG-0w for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 03:04:54 -0400 Received: from mho-02-bos.mailhop.org ([63.208.196.179]:60002) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRiVR-0008BL-FC for emacs-orgmode@gnu.org; Sat, 09 Aug 2008 03:04:53 -0400 In-Reply-To: <87r68yu13n.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Sat\, 09 Aug 2008 02\:57\:48 -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: "Daniel J. Sinder" Cc: emacs-orgmode@gnu.org Bernt Hansen writes: > This works better. It doesn't assume anything about the data and you > can add as many horizontal lines as you want in the table. This also > removes the requirement for the trailing horizontal line from the > previous solution. > > | Row | Data Column 1 | Data Column 2 | > |-----+---------------+---------------| > | 1 | x1 | | > | 2 | some data | more data | > |-----+---------------+---------------| > | 3 | | | > | 4 | | | > | 5 | | | > | 6 | | | > #+TBLFM: $1=vlen(@I$2..0)/2;EN Last one... *honest* | Row | Data Column 1 | Data Column 2 | |-----+---------------+---------------| | 1 | x1 | | | 2 | some data | more data | |-----+---------------+---------------| | 3 | | | | 4 | | | | 5 | | | #+TBLFM: $1=vlen(@I$1..0);EN -Bernt