[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] latex environment inside math mode problem
From: |
Rasmus |
Subject: |
Re: [O] latex environment inside math mode problem |
Date: |
Tue, 20 Jan 2015 12:10:51 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4 (gnu/linux) |
Hi,
Marko Schütz Schmuck <address@hidden> writes:
> the new exporter does not seem to handle \begin/\end inside \( ... \).
>
> If the org file contains
>
> \(f =
> \begin{cases}
> t & 1\\
> f & 2\\
> \end{cases}
> \)
This will also work:
\(f = \begin{cases}
t & 1\\
f & 2\\
\end{cases}\)
Technically, I think what happens is that latex-fragments are "objects" in
the lingo of org-element whereas environments are elements. If you run
(org-element-latex-fragment-parser) at "\(f" it is indeed interpret
correctly as a latex-fragment. Yet, the nested environment is recognized
as a latex-environment and it seems the former can't "hold" the latter.
Why the above work is because a latex-environment starts on its own line
(cf. org-element--latex-begin-environment).
Nicolas will be able to tell if this is a feature or a bug.
—Rasmus
--
. . . The proofs are technical in nature and provides no real understanding