From mboxrd@z Thu Jan 1 00:00:00 1970 From: Achim Gratz Subject: Re: #+call split into multiple lines? Date: Fri, 29 Mar 2013 10:25:17 +0100 Message-ID: References: <86ip4bw6yd.fsf@somewhere.org> <3741EDEB-8A94-4402-85D3-D74236811F97@nf.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULVXz-0006RU-Vm for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 05:24:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ULVXw-000367-PM for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 05:24:31 -0400 Received: from plane.gmane.org ([80.91.229.3]:36637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ULVXw-000362-IL for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 05:24:28 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ULVYH-0001aM-6r for emacs-orgmode@gnu.org; Fri, 29 Mar 2013 10:24:49 +0100 Received: from p578f1594.dip.t-dialin.net ([87.143.21.148]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Mar 2013 10:24:49 +0100 Received: from Stromeko by p578f1594.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 29 Mar 2013 10:24:49 +0100 In-Reply-To: <3741EDEB-8A94-4402-85D3-D74236811F97@nf.mpg.de> 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 Am 29.03.2013 09:24, schrieb Stefan Vollmar: [...] > This might work reasonably well - if > (1) I could prevent the table from being exported to HTML, > (2) (probably more difficult) if this kind of thing would work: > > #+call: hcard(v=card-table) :results html It does, see: http://orgmode.org/manual/Evaluating-code-blocks.html#Evaluating-code-blocks ----->8----- * Data :noexport: #+name: card-table | cname | Dr. Stefan Vollmar | | gname | Stefan | | photo | stefan-vollmar.jpg | #+name: get_named_table_row #+header: :var key="cname" #+header: :var table=card-table #+begin_src emacs-lisp (cadr (assoc key table)) #+end_src #+name: mhead-hcard #+header: :var cname=get_named_table_row(key="cname") #+header: :var gname=get_named_table_row(key="gname") #+header: :var photo=get_named_table_row(key="photo") #+header: :var prefix="" #+header: :var web="web-page.html" #+begin_src org :exports none