From mboxrd@z Thu Jan 1 00:00:00 1970 From: Roland Donat Subject: Re: How to pass named table reference in source block variable Date: Thu, 8 Aug 2013 07:55:50 +0000 (UTC) Message-ID: References: <87mwou1mu6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7L4x-0007UV-E1 for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 03:56:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7L4r-0003pd-Vh for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 03:56:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:51537) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7L4r-0003pS-Os for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 03:56:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V7L4p-0005US-8o for emacs-orgmode@gnu.org; Thu, 08 Aug 2013 09:56:07 +0200 Received: from 163.116.6.12 ([163.116.6.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Aug 2013 09:56:07 +0200 Received: from roland.donat by 163.116.6.12 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 08 Aug 2013 09:56:07 +0200 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: emacs-orgmode@gnu.org Thomas S. Dye tsdye.com> writes: > > Roland Donat gmail.com> writes: > > >> > >> Perhaps this can help: > >> > >> http://orgmode.org/worg/org-contrib/babel/examples/lob-table- > > operations.html > >> > >> Alternatively, you might pass the table to a code block of a language > >> that understands tables, such as an R data frame, and use that language > >> to retrieve values by name. > >> > >> hth, > >> Tom > >> > > > > Thank you for the link, I'll check it but seems that it won't solve the > > problem. But anyway, I found a workaround that doesn't involve to insert > > table reference. > > What is the workaround? > > All the best, > Tom Well, my main objective was to write piece of code in a given language X including information stored in some org-table. So my solution for now was to create some python functions able to generate my code. I use babel to pass my org-table as input to the python function and the result is another source block of language X containing the code taking into account the information of my org-table. I recognized that the solution seems quite heavy but I have already developped some python wrapper for my language X so It takes me only 2 hours to do the job. All the best. Roland.