From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Popineau Subject: Re: Macro question Date: Sun, 25 Oct 2015 10:45:50 +0100 Message-ID: References: <87fv11z5h3.fsf@nicolasgoaziou.fr> <871tclz0t4.fsf@nicolasgoaziou.fr> <87a8r8y4lk.fsf@nicolasgoaziou.fr> <87lhasyzcb.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01184c7ae905670522eab68e Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34009) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqHsS-0006pW-4O for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 05:46:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqHsQ-0004uo-Qx for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 05:46:12 -0400 Received: from mail-ob0-x236.google.com ([2607:f8b0:4003:c01::236]:35042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqHsQ-0004uk-KK for emacs-orgmode@gnu.org; Sun, 25 Oct 2015 05:46:10 -0400 Received: by obctp1 with SMTP id tp1so95579157obc.2 for ; Sun, 25 Oct 2015 02:46:10 -0700 (PDT) In-Reply-To: <87lhasyzcb.fsf@ucl.ac.uk> 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" --089e01184c7ae905670522eab68e Content-Type: text/plain; charset=UTF-8 2015-10-24 19:02 GMT+02:00 Eric S Fraga : > On Saturday, 24 Oct 2015 at 13:37, Fabrice Popineau wrote: > > [...] > > > I find that using headers as in beamer is not pleasant (maybe that is > just > > me ?) > > Just to help you understand the positive aspect of headlines for > structure in beamer, the use of headlines makes it incredibly easy to > switch columns around, for instance, or to copy/move them from slide to > slide. > You are right. This needs to be put forward. In this case, the parameter that has to be made easily editable is the width of the column. (Thinking about a common interface for beamer and reveal) > With respect to the HTML issue, what if you do not put blank lines > between the different bits? The blank lines are defining paragraphs, as > far as I understand it. > > It is possible to hack the reveal/html exporter. Knowing that {{{bFoo}}} ... {{{eFoo}}} gets exported to

The macros could be defined: #+macro: bFoo @@html:

@@ #+macro: eFoo @@html:

@@ and this way you get spurious paragraphs, but valid html However, I'm not sure I want to follow this path ! Best regards, Fabrice --089e01184c7ae905670522eab68e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



2015-10-24 19:02 GMT+02:00 Eric S Fraga <e.fraga@ucl.ac.uk>:
On Saturday, 24 Oct 2015 at 13:37, Fabrice Popin= eau wrote:

[...]

> I find that using headers as in beamer is not pleasant (maybe that is = just
> me ?)

Just to help you understand the positive aspect of headlines for
structure in beamer, the use of headlines makes it incredibly easy to
switch columns around, for instance, or to copy/move them from slide to
slide.
=C2=A0
You are right. This needs to b= e put forward.
In this case, the parameter that has to be made ea= sily editable
is the width of the column. (Thinking about a commo= n interface for
beamer and reveal)
=C2=A0
With respect to the HTML issue, what if you do not put blank lines
between the different bits?=C2=A0 The blank lines are defining paragraphs, = as
far as I understand it.


It is possible to hack the reveal/html exporter.
Knowing that=C2=A0

{{{bFoo}}}
...
=
{{{eFoo}}}

gets exported to

<p>
<div class=3D"foo">
&= lt;/p>

<p>
</div>
</p>

The macros could be defined:
#+macro: bFoo @@html:</p><div class=3D"foo"><p&= gt;@@
#+macro: eFoo @@html:</p></div><p>@@=

and this way you get spurious paragraphs, b= ut valid html
However, I'm not sure I want to follow this pat= h !

Best regards,

Fabrice=

--089e01184c7ae905670522eab68e--