emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Schulte <schulte.eric@gmail.com>
To: "András Major" <andras.g.major@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: Babel: asymptote:	erroneous	conversion	of heterogeneous-typed table
Date: Tue, 30 Aug 2011 13:34:03 -0600	[thread overview]
Message-ID: <87ei0266dw.fsf@gmail.com> (raw)
In-Reply-To: <loom.20110830T210905-404@post.gmane.org> ("András Major"'s message of "Tue, 30 Aug 2011 19:12:34 +0000 (UTC)")

András Major <andras.g.major@gmail.com> writes:

> Hi Eric,
>
>> > I've been away since my last post and now you've already applied a patch
>> > -- wow!  Here's another thought though: change the behaviour of the :var
>> > header argument such that you can specify a range of rows, columns, or
>> > a rectangle just like in table references.
>> 
>> 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=table(@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ás
>
>
>

-- 
Eric Schulte
http://cs.unm.edu/~eschulte/

  reply	other threads:[~2011-08-30 19:34 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29  8:00 Bug: Babel: asymptote: erroneous conversion of heterogeneous-typed table Major A
2011-08-29  8:47 ` Nicolas Goaziou
2011-08-29  9:12   ` András Major
2011-08-29  9:50     ` Nicolas Goaziou
2011-08-29 10:42       ` András Major
2011-08-29 12:50         ` Nicolas Goaziou
2011-08-29 16:35           ` Nicolas Goaziou
2011-08-29 16:52             ` Eric Schulte
2011-08-29 17:27               ` Nicolas Goaziou
2011-08-29 18:02                 ` Eric Schulte
2011-08-29 18:50                   ` András Major
2011-08-29 19:02                     ` Eric Schulte
2011-08-29 19:11                       ` Nick Dokos
2011-08-30 19:12                       ` András Major
2011-08-30 19:34                         ` Eric Schulte [this message]
2011-08-30 20:45                           ` András Major
2011-08-30 20:55                             ` Eric Schulte
2011-08-31  6:48                               ` András Major
2011-08-31  8:17                                 ` Nick Dokos
2011-08-31  9:35                                   ` Nicolas Goaziou
2011-08-31 12:14                                     ` Eric Schulte
2011-08-29  9:05 ` Nick Dokos
2011-08-29  9:40   ` András Major

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ei0266dw.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=andras.g.major@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).