emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* new exporter / org-element
@ 2012-10-24 18:54 Achim Gratz
  2012-10-24 20:39 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2012-10-24 18:54 UTC (permalink / raw)
  To: emacs-orgmode


In the following Org snippet

--8<---------------cut here---------------start------------->8---
* Heading 1...
* Footnotes...
#+LATEX: \pagebreak[4]
* Heading 2
--8<---------------cut here---------------end--------------->8---

the pagebreak does not get exported to LaTeX since the Footnotes section
will not be exported and the pagebreak is interpreted as being part of
that section.  It would be nice if there was a way to "bind" it to the
following heading or alternatively move it past the heading but have it
export before.  Is that possible already or can it be implemented?


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Wavetables for the Terratec KOMPLEXER:
http://Synth.Stromeko.net/Downloads.html#KomplexerWaves

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new exporter / org-element
  2012-10-24 18:54 new exporter / org-element Achim Gratz
@ 2012-10-24 20:39 ` Nicolas Goaziou
  2012-10-25  7:14   ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2012-10-24 20:39 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Hello,

Achim Gratz <Stromeko@nexgo.de> writes:

> In the following Org snippet
>
> * Heading 1... * Footnotes... #+LATEX: \pagebreak[4] * Heading 2
>
> the pagebreak does not get exported to LaTeX since the Footnotes section
> will not be exported and the pagebreak is interpreted as being part of
> that section.  It would be nice if there was a way to "bind" it to the
> following heading or alternatively move it past the heading but have it
> export before.  Is that possible already or can it be implemented?

Can't you move footnotes section at the end of your document instead?


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new exporter / org-element
  2012-10-24 20:39 ` Nicolas Goaziou
@ 2012-10-25  7:14   ` Achim Gratz
  2012-10-25 12:18     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2012-10-25  7:14 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou <n.goaziou <at> gmail.com> writes:
> > the pagebreak does not get exported to LaTeX since the Footnotes section
> > will not be exported and the pagebreak is interpreted as being part of
> > that section.  It would be nice if there was a way to "bind" it to the
> > following heading or alternatively move it past the heading but have it
> > export before.  Is that possible already or can it be implemented?
> 
> Can't you move footnotes section at the end of your document instead?

Yes, that's exactly the workaround I used.  But I think that there may be a
general need to be able to wrap some code around an element on exporting (let's
say, putting a table or section into a minipage) or prefix the export with
something (like the pagebreak example) and have that code properly be part of
the element.  Note that we already have that functionality, sort of, for the
title element of the export.


Regards,
Achim.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new exporter / org-element
  2012-10-25  7:14   ` Achim Gratz
@ 2012-10-25 12:18     ` Nicolas Goaziou
  2012-10-25 19:53       ` Achim Gratz
  0 siblings, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2012-10-25 12:18 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Hello,

Achim Gratz <Stromeko@NexGo.DE> writes:

> Nicolas Goaziou <n.goaziou <at> gmail.com> writes:
>> > the pagebreak does not get exported to LaTeX since the Footnotes section
>> > will not be exported and the pagebreak is interpreted as being part of
>> > that section.  It would be nice if there was a way to "bind" it to the
>> > following heading or alternatively move it past the heading but have it
>> > export before.  Is that possible already or can it be implemented?
>> 
>> Can't you move footnotes section at the end of your document instead?
>
> Yes, that's exactly the workaround I used.

Better: you can move the pagebreak just /above/ the footnote section, as
if the section didn't exist.

> But I think that there may be a general need to be able to wrap some
> code around an element on exporting (let's say, putting a table or
> section into a minipage) or prefix the export with something (like the
> pagebreak example) and have that code properly be part of the element.
> Note that we already have that functionality, sort of, for the title
> element of the export.

There's already such a mechanism: it's called "filters". I'm just
pointing out that, in your situation, it's not worth relying on this
kind of tool.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new exporter / org-element
  2012-10-25 12:18     ` Nicolas Goaziou
@ 2012-10-25 19:53       ` Achim Gratz
  2012-10-25 20:37         ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Achim Gratz @ 2012-10-25 19:53 UTC (permalink / raw)
  To: emacs-orgmode

Nicolas Goaziou writes:
>> Yes, that's exactly the workaround I used.
>
> Better: you can move the pagebreak just /above/ the footnote section, as
> if the section didn't exist.

Thanks for the suggestion, but again I'm using this just as an example.

> There's already such a mechanism: it's called "filters". I'm just
> pointing out that, in your situation, it's not worth relying on this
> kind of tool.

IIUC, you are talking about a mechanism to implement exporters.  I'm
vying for a way to syntactically tie stuff that needs to go before the
element (and maybe wrap around it) so that it's recognized as part of
that element and not part of another, unrelated element.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptations for Waldorf Q V3.00R3 and Q+ V3.54R2:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: new exporter / org-element
  2012-10-25 19:53       ` Achim Gratz
@ 2012-10-25 20:37         ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2012-10-25 20:37 UTC (permalink / raw)
  To: Achim Gratz; +Cc: emacs-orgmode

Achim Gratz <Stromeko@nexgo.de> writes:

> Thanks for the suggestion, but again I'm using this just as an
> example.

I understand, but this example doesn't help, since it can't justify the
need for any additional mechanism you're suggesting.

>> There's already such a mechanism: it's called "filters". I'm just
>> pointing out that, in your situation, it's not worth relying on this
>> kind of tool.
>
> IIUC, you are talking about a mechanism to implement exporters.

Absolutely not. Filters are end-user tools used to tweak output from
back-ends (that is a string to string process).

> I'm vying for a way to syntactically tie stuff that needs to go before
> the element (and maybe wrap around it) so that it's recognized as part
> of that element and not part of another, unrelated element.

That's too vague. It depends on the type of element, the level at which
you want to tie stuff (in Org buffer, in the parse tree, just before
export) and the frequency at which you'll need it.

In most cases, I imagine adding #+LATEX: (or any other appropriate
keyword) around the element is enough.

Regards,

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-10-25 20:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 18:54 new exporter / org-element Achim Gratz
2012-10-24 20:39 ` Nicolas Goaziou
2012-10-25  7:14   ` Achim Gratz
2012-10-25 12:18     ` Nicolas Goaziou
2012-10-25 19:53       ` Achim Gratz
2012-10-25 20:37         ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).