From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Status of macro expansion Date: Thu, 6 Aug 2015 17:52:10 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c256ceb67459051ca681b1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNT6-0007s6-Ma for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 11:52:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNNT5-0006hh-8C for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 11:52:32 -0400 Received: from mail-ob0-x231.google.com ([2607:f8b0:4003:c01::231]:33014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNT5-0006hY-3M for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 11:52:31 -0400 Received: by obdeg2 with SMTP id eg2so59024304obd.0 for ; Thu, 06 Aug 2015 08:52:30 -0700 (PDT) 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" --001a11c256ceb67459051ca681b1 Content-Type: text/plain; charset=UTF-8 Hi, I was looking at what text can serve as macro arguments and it seems there are a couple of restrictions. Namely, if I export the following to html: #+MACRO: leftcolumn @@html:
$1
@@ #+MACRO: rightcolumn @@html:
$1
@@ * Title ** Section {{{leftcolumn( [[http://www.google.com/]] )}}} {{{rightcolumn( Line 1 Line 2 )}}} Neither one of the macros work. Is it expected ? (I assume yes) What is the best way to put stuff side-by-side on ox-reveal (is anybody here has already done that). Thanks in advance, Fabrice --001a11c256ceb67459051ca681b1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I was looking at what text can serv= e as macro arguments and it seems there are a couple of restrictions. Namel= y, if I export the following to html:

#+MACRO= : leftcolumn @@html:<div class=3D"left">$1</div>@@
#+MACRO: rightcolumn @@html:<div class=3D"right">$1= </div>@@

* Title

**= Section

{{{leftcolumn(
)}}}
=
{{{rightcolumn(
Line 1

Li= ne 2
)}}}

Neither one of the macro= s work.
Is it expected ? (I assume yes)

= What is the best way to put stuff side-by-side on ox-reveal (is anybody her= e has already done that).

Thanks in advance,
=

Fabrice
--001a11c256ceb67459051ca681b1-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Status of macro expansion Date: Thu, 6 Aug 2015 18:10:59 +0200 Message-ID: References: <87r3ngflpc.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1130caea0df56d051ca6c58a Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNlL-0004ny-C9 for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:11:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNNlI-0000Lx-8s for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:11:21 -0400 Received: from mail-ob0-x230.google.com ([2607:f8b0:4003:c01::230]:34037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNlI-0000LR-2X for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:11:20 -0400 Received: by obbfr1 with SMTP id fr1so22645686obb.1 for ; Thu, 06 Aug 2015 09:11:19 -0700 (PDT) In-Reply-To: <87r3ngflpc.fsf@nicolasgoaziou.fr> 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: Fabrice Popineau , "emacs-orgmode@gnu.org" --001a1130caea0df56d051ca6c58a Content-Type: text/plain; charset=UTF-8 2015-08-06 18:03 GMT+02:00 Nicolas Goaziou : > > AFAICT the first macro is correctly expanded. What makes you think it > doesn't work? > Arrgh. My mistake. It expands as I expected if I write the macro as: #+MACRO: leftcolumn @@html:
@@$1@@html:
@@ However, macros, being objects, cannot cross paragraphs. The second > example is really 2 paragraphs, not a macro containing two lines. > > Ok, so thanks for the confirmation (looking into old mails from the list, that might have work at some point quite far in the past). Fabrice --001a1130caea0df56d051ca6c58a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


2015-08-06 18:03 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.f= r>:

AFAICT the first macro is correctly expanded. What makes you think i= t
doesn't work?
=C2=A0
Arrgh. My mistake.<= /div>
It expands as I expected if I write the macro as:

<= /div>
#+MACRO: leftcolumn @@html:<div class=3D"left">@@= $1@@html:</div>@@


However, macros, being objects, cannot cross paragraphs. The second
example is really 2 paragraphs, not a macro containing two lines.


Ok, so thanks for the confirmation (lo= oking into old mails from the list, that might have work at some point quit= e far in the past).

Fabrice
--001a1130caea0df56d051ca6c58a-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Status of macro expansion Date: Thu, 06 Aug 2015 18:03:43 +0200 Message-ID: <87r3ngflpc.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNcS-0003JX-CF for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:02:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNNcO-0003q4-3z for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:02:09 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:45278) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNNcN-0003pA-Ug for emacs-orgmode@gnu.org; Thu, 06 Aug 2015 12:02:08 -0400 In-Reply-To: (Fabrice Popineau's message of "Thu, 6 Aug 2015 17:52:10 +0200") 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: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" Hello, Fabrice Popineau writes: > I was looking at what text can serve as macro arguments and it seems there > are a couple of restrictions. Namely, if I export the following to html: > > #+MACRO: leftcolumn @@html:
$1
@@ > #+MACRO: rightcolumn @@html:
$1
@@ > > * Title > > ** Section > > {{{leftcolumn( > [[http://www.google.com/]] > )}}} > > {{{rightcolumn( > Line 1 > > Line 2 > )}}} > > Neither one of the macros work. > Is it expected ? (I assume yes) AFAICT the first macro is correctly expanded. What makes you think it doesn't work? However, macros, being objects, cannot cross paragraphs. The second example is really 2 paragraphs, not a macro containing two lines. Regards, -- Nicolas Goaziou