emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] latex environment inside math mode problem


From: Nicolas Goaziou
Subject: Re: [O] latex environment inside math mode problem
Date: Tue, 20 Jan 2015 12:57:36 +0100

Hello,

Rasmus <address@hidden> writes:

> 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).

That's correct. Elements bind stronger than objects.

> Nicolas will be able to tell if this is a feature or a bug.

This is per Org syntax.


Regards,

-- 
Nicolas Goaziou



reply via email to

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