From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: latex environment inside math mode problem Date: Tue, 20 Jan 2015 12:10:51 +0100 Message-ID: <87k30hogg4.fsf@gmx.us> References: <878ugypcwf.wl-MarkoSchuetz@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWiG-0008Sj-32 for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 06:11:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDWiC-0006Ru-2x for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 06:11:12 -0500 Received: from plane.gmane.org ([80.91.229.3]:51231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDWiB-0006Ro-SC for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 06:11:08 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YDWiA-00027O-0l for emacs-orgmode@gnu.org; Tue, 20 Jan 2015 12:11:06 +0100 Received: from tsn85-159-237-4.dyn.nltelcom.net ([85.159.237.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Jan 2015 12:11:05 +0100 Received: from rasmus by tsn85-159-237-4.dyn.nltelcom.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 20 Jan 2015 12:11:05 +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: emacs-orgmode@gnu.org Cc: mail@nicolasgoaziou.fr Hi, Marko Schütz Schmuck 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