From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: #+call split into multiple lines? Date: Thu, 28 Mar 2013 22:27:38 +0100 Message-ID: <86ip4bw6yd.fsf@somewhere.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Thomas, Thomas S. Dye wrote: > In this situation I often put the arguments in a named Org table and > then write the Babel source code block to take a single argument--the > table name--and parse the information passed in that way. > > #+name: card-table > | cname | gname | photo | etc.| > | Dr. Stefan Vollmar | Stefan | stefan-vollmar.jpg | ... | > | Dr. Stefan Vollmar, Jr. | Stefan Jr. | stefan-vollmar-jr.jpg | ... | > > > #+call: mhead-hcard(card=card-table[0,]) for Stefan > > #+call: mhead-hcard(card=card-table[1,]) for Stefan Jr. > > If you don't mind writing some extra code for the Babel function, then > > #+call: mhead-hcard(card=card-table,gname="Stefan") > > etc. And do you eventually have a way to write a "for-loop" for all the lines of the tables, not being forced to write as many calls as the number of lines you do have? I don't see (immediately) how to do such, but that would really allow to promote such a use case! Best regards, Seb -- Sebastien Vauban