[O] table as parameter for latex block

From:

Martin Halder

Subject:

[O] table as parameter for latex block

Date:

Sun, 18 Mar 2012 09:40:05 +0100

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=data[0,1], address=data[1,1], country=data[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=data)
#+begin_src latex
data[0,1]
data[1,1]
data[2,1]
#+end_src
or even better:
#+name: invoice(data=data)
#+begin_src latex
data['Name']
data['Adress']
data['Country']
#+end_src