From mboxrd@z Thu Jan 1 00:00:00 1970 From: Torsten Wagner Subject: [babel] transfer a list of tables to a source code block Date: Thu, 25 Jul 2013 23:26:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0160cb7cfa7ede04e25cada0 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2TMa-0000MO-As for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 17:46:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V2TMZ-0001yH-Fp for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 17:46:20 -0400 Received: from mail-ea0-x234.google.com ([2a00:1450:4013:c01::234]:55032) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V2T3P-0004e7-8v for emacs-orgmode@gnu.org; Thu, 25 Jul 2013 17:26:31 -0400 Received: by mail-ea0-f180.google.com with SMTP id r16so1216527ead.11 for ; Thu, 25 Jul 2013 14:26:30 -0700 (PDT) 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: Org Mode Mailing List --089e0160cb7cfa7ede04e25cada0 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have a few functions defined with babel, which need to work on an list of tables. At the moment I use something like :var table1= :var table2= etc. As you can see this is rather inflexible. I am looking for a way to receive a list of tables, whereas table[0] would refer to the first table, etc. Does someone know how to achieve this? To make the best use of both worlds, I thought it would be nice to define a list which contains the names of the tables and somehow manage to access the tables from this list. #+NAME: listoftables - name1 - name2 - name3 #+CALL: myfunction(lst=listoftables) I tried to play around with this idea but did not get a solution yet For the moment I receive the names of the tables only as a string and search for ways to actually transfer the table itself. Thanks for ideas and thoughts... Torsten --089e0160cb7cfa7ede04e25cada0 Content-Type: text/html; charset=ISO-8859-1
Hi,

I have a few functions defined with babel, which need to work on an list of tables.
At the moment I use something like :var table1=<name1> :var table2=<name2> etc.

As you can see this is rather inflexible.
I am looking for a way to receive a list of tables, whereas table[0] would refer to the first table, etc.

Does someone know how to achieve this?

To make the best use of both worlds, I thought it would be nice to define a list which contains the names of the tables and somehow manage to access the tables from this list.

#+NAME: listoftables
- name1
- name2
- name3

#+CALL: myfunction(lst=listoftables)

I tried to play around with this idea but did not get a solution yet
For the moment I receive the names of the tables only as a string and search for ways to actually transfer the table itself.

Thanks for ideas and thoughts...

Torsten



--089e0160cb7cfa7ede04e25cada0--