[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] \newpage in HTML export
From: |
Eric Abrahamsen |
Subject: |
Re: [O] \newpage in HTML export |
Date: |
Thu, 21 Nov 2013 21:41:09 +0700 |
User-agent: |
Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) |
Suvayu Ali <address@hidden> writes:
> On Thu, Nov 21, 2013 at 08:11:50AM +0700, Eric Abrahamsen wrote:
>> Suvayu Ali <address@hidden> writes:
>>
>> > On Wed, Nov 20, 2013 at 03:20:02PM -0600, Russell Adams wrote:
>> >> On Wed, Nov 20, 2013 at 09:15:43PM +0000, Luke Crook wrote:
>> >> >
>> >> > That works. But that means I need both #+HTML: and #+Latex: for the
>> >> > same
>> >> > thing. \newpage should convert as appropriate depending on the export.
>> >> >
>> >> > So, \newpage should translate to the HTML equivalent on HTML export,
>> >> > and the
>> >> > Latex equivalent on Latex export.
>> >> >
>> >> > It only works correctly on Latex export
>> >>
>> >> \newpage is a Latex command, and so you need the #+Latex: prefix if
>> >> you're exporting to multiple formats. That will prevent it from
>> >> happening.
>> >
>> > To add a historical comment, eventhough Org claims to be backend
>> > neutral, it treats LaTeX preferencially in practice. e.g. many common
>> > LaTeX commands/macros are "understood" by Org.
>> >
>> > Just follow what Russel said, put them both where you need a pagebreak.
>> > Try this:
>> >
>> > #+MACRO: pagebreak @@latex:\newpage@@ @@html:<div
>> > style="page-break-before: always"> </div>@@
>> >
>> > {{{pagebreak}}}
>> >
>> > Hope this helps,
>>
>> Emacs already has the concept of the page-delimiter (defaults to ^L),
>> for page-related commands. I once floated the idea of making a
>> page-break a full org element, that could be handled differently by
>> different backends. I think I made it sound too complicated, though.
>> Anyway, that's still a possibility.
>
> This sounds like good idea.
Let me see if I can dig up my original patch. Plebiscite!
- [O] \newpage in HTML export, Luke Crook, 2013/11/20
- Re: [O] \newpage in HTML export, Dan Griswold, 2013/11/20
- Re: [O] \newpage in HTML export, Luke Crook, 2013/11/20
- Re: [O] \newpage in HTML export, Russell Adams, 2013/11/20
- Re: [O] \newpage in HTML export, Suvayu Ali, 2013/11/20
- Re: [O] \newpage in HTML export, Eric Abrahamsen, 2013/11/20
- Re: [O] \newpage in HTML export, Suvayu Ali, 2013/11/21
- Re: [O] \newpage in HTML export,
Eric Abrahamsen <=
- [O] [PATCH] Re: \newpage in HTML export, Eric Abrahamsen, 2013/11/22
- Re: [O] [PATCH] Re: \newpage in HTML export, Nicolas Goaziou, 2013/11/22
- Re: [O] [PATCH] Re: \newpage in HTML export, RĂ¼diger Sonderfeld, 2013/11/22
- Re: [O] [PATCH] Re: \newpage in HTML export, Nicolas Goaziou, 2013/11/24
- Re: [O] [PATCH] Re: \newpage in HTML export, Eric Abrahamsen, 2013/11/24
- Re: [O] [PATCH] Re: \newpage in HTML export, Andreas Leha, 2013/11/24
- Re: [O] [PATCH] Re: \newpage in HTML export, Christian Moe, 2013/11/24
- Re: [O] [PATCH] Re: \newpage in HTML export, Eric Abrahamsen, 2013/11/23
- Re: [O] [PATCH] Re: \newpage in HTML export, Eric Abrahamsen, 2013/11/23
- Re: [O] [PATCH] Re: \newpage in HTML export, Jambunathan K, 2013/11/26