From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: latex environment inside math mode problem Date: Tue, 20 Jan 2015 12:57:36 +0100 Message-ID: <873875zmtr.fsf@nicolasgoaziou.fr> References: <878ugypcwf.wl-MarkoSchuetz@web.de> <87k30hogg4.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDXQg-000400-IT for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 06:57:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDXQd-0002DV-8e for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 06:57:06 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:37628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDXQd-0002BN-2f for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 06:57:03 -0500 In-Reply-To: <87k30hogg4.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 20 Jan 2015 12:10:51 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Hello, Rasmus writes: > Marko Sch=C3=BCtz Schmuck writes: > >> the new exporter does not seem to handle \begin/\end inside \( ... \). >> >> If the org file contains >> >> \(f =3D >> \begin{cases} >> t & 1\\ >> f & 2\\ >> \end{cases} >> \) > > This will also work: > > \(f =3D \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, --=20 Nicolas Goaziou