From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: New exporter macro question Date: Tue, 12 Feb 2013 07:23:18 +0100 Message-ID: <9D1185E0-514F-43AD-83F0-9845493C9767@gmail.com> References: <8312EEB6-F657-449E-B025-167031ECACAC@gmail.com> <87k3qecz13.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U59H2-00074L-Tt for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 01:23:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U59H1-00079O-Df for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 01:23:24 -0500 Received: from mail-wi0-f175.google.com ([209.85.212.175]:49293) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U59H1-00079J-5z for emacs-orgmode@gnu.org; Tue, 12 Feb 2013 01:23:23 -0500 Received: by mail-wi0-f175.google.com with SMTP id l13so3989872wie.14 for ; Mon, 11 Feb 2013 22:23:22 -0800 (PST) In-Reply-To: <87k3qecz13.fsf@gmail.com> 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: Nicolas Goaziou Cc: "emacs-orgmode@gnu.org List" Hello Nicolas, thanks for your reply. I now remember this point of downgrading the = macros and replacing complex macro calls with babel code. Thanks also = for the easy work-around. - Carsten On 11.2.2013, at 22:37, Nicolas Goaziou wrote: > Hello, >=20 > Carsten Dominik writes: >=20 >> I am porting my websites to the new exporter, finally. Much is very = smooth. I do have a problem with macros: >>=20 >>=20 >> * Macro definition >>=20 >>=20 >> #+MACRO: thumbright #+ATTR_HTML: = style=3D"float:right;width:$1;margin:0px 20px 0px 20px;" \n = [[./Content/$2/thumb.jpg]] >>=20 >>=20 >>=20 >> * Macro call >>=20 >> {{{thumbright(300px,Wiskunde)}}} >>=20 >>=20 >>=20 >>=20 >> * This used to expand to >>=20 >> >>=20 >>=20 >> * But now it expands to nothing >> I am sure I am missing something basic. Thanks! >=20 > Macros have been downgraded a bit, as there was some overlapping with > Babel functionalities. In particular, they are meant to replace = objects, > not elements, which means they cannot contain newline characters > anymore. >=20 > You can use a Babel block to generate the Org code you want. You can > also try the following macro, which will generate the HTML code you > want: >=20 > #+MACRO: thumbright @@html:@@ >=20 >=20 > Regards, >=20 > --=20 > Nicolas Goaziou