emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Extending the Org syntax by a custom exporter - how to do it?


From: Marcin Borkowski
Subject: Re: [O] Extending the Org syntax by a custom exporter - how to do it?
Date: Tue, 25 Nov 2014 22:25:00 +0100

Hello there,

this is close to necromancy, but let me revive this old thread.

On 2014-03-16, at 11:16, Nicolas Goaziou wrote:

> Another, more advanced option, is to use a parse tree filter to create
> pseudo-types, i.e., element or object types that don't exist in regular
> Org syntax. See `math-block' type in "ox-latex.el", in particular
> `org-latex-math-block-tree-filter'.

Now that I actually started work on my exporter, I'd like to investigate
this further.  The thing is, I'm not sure where to start.  First of all,
I have a bit old Org-mode (without latex-math-blocks); I guess I'll just
have to update it (I'll try to do an Elpa update in a minute).  But my
question is:

1. Is it a good idea to instrument `org-latex--wrap-latex-math-block'
for Edebug to learn what's happening?

2. Is there any other (possibly simpler) instance of pseudo-blocks I
could study?  It seems to me (from the docstring) that latex-math-blocks
are a bit tricky; what I'm interested in is more like creating a new
element similar to e.g. italics.

(Reagrdless of the answer, I'll try with Edebug, but I'm a bit afraid
that I won't understand what's going on).

Also, if (when?) I "get it", I'm going to describe the process of adding
a pseudo-object somewhere (I consider my blog, or maybe I could upload
it to Worg?), so that other people can learn it easier.  But for now, I
might need help.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University



reply via email to

[Prev in Thread] Current Thread [Next in Thread]