From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Vollmar Subject: MACRO with multiple arguments? Date: Tue, 23 Jun 2009 00:15:37 +0200 Message-ID: <6D783254-2C0B-42FA-B7C4-4F02EC248874@nf.mpg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MIrnl-00078d-Ha for emacs-orgmode@gnu.org; Mon, 22 Jun 2009 18:15:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MIrnh-00078P-41 for emacs-orgmode@gnu.org; Mon, 22 Jun 2009 18:15:45 -0400 Received: from [199.232.76.173] (port=40732 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MIrng-00078M-Vo for emacs-orgmode@gnu.org; Mon, 22 Jun 2009 18:15:41 -0400 Received: from mail.nf.mpg.de ([134.95.44.50]:59052) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MIrng-0005Yv-M7 for emacs-orgmode@gnu.org; Mon, 22 Jun 2009 18:15:40 -0400 Received: from [192.168.178.21] (pD9E62E25.dip.t-dialin.net [217.230.46.37]) by mail.nf.mpg.de (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0KLN0097QVCCVO00@mail.nf.mpg.de> for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 00:19:24 +0200 (MEST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Hello, I need to occasionally export a simple table with two images (so they =20= are nicely aligned in one row). My approach was to use a MACRO: #+MACRO: my-simple-2table #+HTML:
But {{{my-simple-2table(image1, image2)}}} does not work (MACROs with just one argument work fine in 6.27trans of =20= some minutes ago; MACRO support was broken some hours ago): $1 -> "image1, image2" $2 -> "" I am not sure if this example is supposed to even work at all (there =20 is no such claim in the 6.27 release notes), however, it would be nice =20= if it did! Many thanks in advance! I am sorry if this topic has been discussed before. Warm regards, Stefan --=20 Dr. Stefan Vollmar, Dipl.-Phys. Max-Planck-Institut f=FCr neurologische Forschung Gleuelerstr. 50, 50931 K=F6ln, Germany Tel.: +49-221-4726-213 FAX +49-221-4726-298 Tel.: +49-221-478-5713 Mobile: 0160-93874279 Email: vollmar@nf.mpg.de http://www.nf.mpg.de From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: MACRO with multiple arguments? Date: Tue, 23 Jun 2009 12:07:47 +0200 Message-ID: References: <6D783254-2C0B-42FA-B7C4-4F02EC248874@nf.mpg.de> Mime-Version: 1.0 (Apple Message framework v935.3) Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJ2v3-00020S-M2 for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:08:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJ2uy-0001xk-8S for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:08:00 -0400 Received: from [199.232.76.173] (port=51378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJ2ux-0001xV-8p for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:07:55 -0400 Received: from mail-ew0-f220.google.com ([209.85.219.220]:54382) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJ2uw-0002J5-FA for emacs-orgmode@gnu.org; Tue, 23 Jun 2009 06:07:54 -0400 Received: by mail-ew0-f220.google.com with SMTP id 20so2228595ewy.42 for ; Tue, 23 Jun 2009 03:07:54 -0700 (PDT) In-Reply-To: <6D783254-2C0B-42FA-B7C4-4F02EC248874@nf.mpg.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Stefan Vollmar Cc: emacs-orgmode On Jun 23, 2009, at 12:15 AM, Stefan Vollmar wrote: > Hello, > > I need to occasionally export a simple table with two images (so =20 > they are nicely aligned in one row). My approach was to use a MACRO: > > #+MACRO: my-simple-2table #+HTML:
align:middle;margin-right:0em;margin-left:0em;padding:0;"> src=3D"./images/$1"/> src=3D"./images/$2"/>
> > But > > {{{my-simple-2table(image1, image2)}}} > > does not work (MACROs with just one argument work fine in 6.27trans =20= > of some minutes ago; MACRO support was broken some hours ago): > > $1 -> "image1, image2" > $2 -> "" > > I am not sure if this example is supposed to even work at all (there =20= > is no such claim in the 6.27 release notes), however, it would be =20 > nice if it did! Many thanks in advance! > > I am sorry if this topic has been discussed before. The argument separator was ";", but I am actually changing it back to =20= comma, this feels more natural to me. If you need a comma in an argument, write it as "\,". HTH - Carsten > > Warm regards, > Stefan > --=20 > Dr. Stefan Vollmar, Dipl.-Phys. > Max-Planck-Institut f=FCr neurologische Forschung > Gleuelerstr. 50, 50931 K=F6ln, Germany > Tel.: +49-221-4726-213 FAX +49-221-4726-298 > Tel.: +49-221-478-5713 Mobile: 0160-93874279 > Email: vollmar@nf.mpg.de http://www.nf.mpg.de > > > > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode