From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: BUG: preview latex with split environment Date: Tue, 28 Oct 2014 15:02:17 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj8Hw-0002Zo-Ak for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 11:02:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xj8Ho-0006wn-Sl for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 11:02:24 -0400 Received: from plane.gmane.org ([80.91.229.3]:57295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xj8Ho-0006wi-MM for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 11:02:16 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Xj8Hm-0004iX-Uf for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 16:02:14 +0100 Received: from 193.63.222.28 ([193.63.222.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 16:02:14 +0100 Received: from andreas.leha by 193.63.222.28 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 16:02:14 +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 Hi all, I encounter a BUG with org-toggle-latex-fragment on an equation that uses amsmath's split environment. (Exporting of the document works fine.) The problem is that the \begin{equation},\end{equation} get stripped of the temporary tex file. Here is some test doc --8<---------------cut here---------------start------------->8--- #+TITLE: Test amsmath's split * Some equation with some split expression, e.g. \begin{equation} \begin{split} w \cdot x + b &= 1, \text{ and}\\ w \cdot x + b &= -1 \end{split} \end{equation} To reproduce try to org-toggle-latex-fragment (C-c C-x C-l) on that latex expression. Export of this works fine. --8<---------------cut here---------------end--------------->8--- which results in this /tmp/foobar.tex document (relevant parts shown): --8<---------------cut here---------------start------------->8--- \begin{document} \definecolor{fg}{rgb}{0.996109,0.996109,0.996109} \definecolor{bg}{rgb}{0.197269,0.197269,0.197269} \pagecolor{bg} {\color{fg} \begin{split} w \cdot x + b &= 1, \text{ and}\\ w \cdot x + b &= -1 \end{split} } \end{document} --8<---------------cut here---------------end--------------->8--- The compilation of that results in ,---- | ERROR: Package amsmath Error: \begin{split} won't work here. | ... | \Did you forget a preceding \begin{equation}? `---- Regards, Andreas