From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Halder Subject: table as parameter for latex block Date: Sun, 18 Mar 2012 09:40:05 +0100 Message-ID: <3F1A1157-9068-4F41-AD35-A6D926DF69F5@gmail.com> Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9Bf4-0003pK-2o for emacs-orgmode@gnu.org; Sun, 18 Mar 2012 04:40:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S9Bf2-0002XN-Hd for emacs-orgmode@gnu.org; Sun, 18 Mar 2012 04:40:21 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:55276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S9Bf2-0002X6-8e for emacs-orgmode@gnu.org; Sun, 18 Mar 2012 04:40:20 -0400 Received: by wibhj13 with SMTP id hj13so2001150wib.12 for ; Sun, 18 Mar 2012 01:40:17 -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: emacs-orgmode@gnu.org Hi all, was trying to use a table as input for a latex block. Is there a way to = directly reference parts of the table inside the block or do I have to = specify each parameter as separate parameter ? Thanks for help, Martin This is working: #+tblname: data | Name | John Doe | | Address | Doestreet 42 | | Country | Doecountry | #+name: invoice(name=3Ddata[0,1], address=3Ddata[1,1], = country=3Ddata[2,1]) #+begin_src latex name address country #+end_src #+RESULTS: invoice #+BEGIN_LaTeX John Doe Doestreet 42 Doecountry #+END_LaTeX what I would like to do: #+name: invoice(data=3Ddata) #+begin_src latex data[0,1] data[1,1] data[2,1] #+end_src or even better: #+name: invoice(data=3Ddata) #+begin_src latex data['Name'] data['Adress'] data['Country'] #+end_src