From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Date: Tue, 30 Aug 2011 13:34:03 -0600 Message-ID: <87ei0266dw.fsf@gmail.com> References: <20110829080003.GA12790@discus> <87hb50li4b.fsf@gmail.com> <878vqclf64.fsf@gmail.com> <87mxesjs9e.fsf@gmail.com> <87fwkkjhvt.fsf@gmail.com> <87y5yc6tx4.fsf@gmail.com> <87vctgi0ve.fsf@gmail.com> <87hb506qqk.fsf@gmail.com> <878vqc6nye.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyU4c-00025S-U5 for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 15:34:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QyU4Y-0001AX-6o for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 15:34:14 -0400 Received: from mail-yi0-f41.google.com ([209.85.218.41]:32851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QyU4X-0001AS-UM for emacs-orgmode@gnu.org; Tue, 30 Aug 2011 15:34:10 -0400 Received: by yib2 with SMTP id 2so4899110yib.0 for ; Tue, 30 Aug 2011 12:34:08 -0700 (PDT) In-Reply-To: (=?utf-8?Q?=22Andr?= =?utf-8?Q?=C3=A1s?= Major"'s message of "Tue, 30 Aug 2011 19:12:34 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?Q?Andr=C3=A1s?= Major Cc: emacs-orgmode@gnu.org Andr=C3=A1s Major writes: > Hi Eric, > >> > I've been away since my last post and now you've already applied a pat= ch >> > -- wow! Here's another thought though: change the behaviour of the :v= ar >> > header argument such that you can specify a range of rows, columns, or >> > a rectangle just like in table references. >>=20 >> This is already possible, see "Indexable variable values" [1]. > > Oh, sorry that I missed that. I'll try it with indexed variables then. > Still the question arises why the syntax here is different from usual > table indexing -- why can't I use something along the lines of > ":var t=3Dtable(@II$2..@>$4)"? > The table indexing syntax is specifically used for 2-dimensional arrays while the variable indexing can be used to index into any number of dimensions. > > That would be really really nice. Would it be hard to implement? > It would be nice to be able to use the familiar table syntax in the case of 2-D arrays. This shouldn't be hard to implement, the indexing behavior is defined in the `org-babel-ref-index-list' function which could be extended to read in org-table type syntax, or it may not be difficult to write a function which translates the table syntax to the variable syntax. Although ultimately it may be simpler just to keep the two separate. Best -- Eric > > Andr=C3=A1s > > > --=20 Eric Schulte http://cs.unm.edu/~eschulte/