From mboxrd@z Thu Jan 1 00:00:00 1970 From: Varius Various Subject: Re: BUG: preview latex with split environment Date: Sun, 10 Apr 2016 21:51:10 +0200 Message-ID: <86inzpdyz5.fsf@yvor.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apLOC-0004J8-Gc for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 15:51:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1apLO6-0006Ra-2t for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 15:51:20 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:33287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1apLO5-0006RW-RB for emacs-orgmode@gnu.org; Sun, 10 Apr 2016 15:51:14 -0400 Received: by mail-wm0-x243.google.com with SMTP id y144so16770810wmd.0 for ; Sun, 10 Apr 2016 12:51:13 -0700 (PDT) Received: from yvor.org (stanik.pl. [83.17.46.150]) by smtp.gmail.com with ESMTPSA id n3sm24108793wja.6.2016.04.10.12.51.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 10 Apr 2016 12:51:12 -0700 (PDT) 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" To: emacs-orgmode@gnu.org Andreas Leha writes: >Nicolas Goaziou writes: >> Hello, >> >> Andreas Leha writes: >> >>> I open this file: >>> >>> #+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. >> >> This should be fixed in master. Thank you for reporting it. >> > >I can confirm this is fixed in my use case. > >Thank you very much! That'll save me several LaTeX compilation cycles. I have no problem with Andreas' example, but it fails in my case, where "&" symbols are at the beginning of a line: \begin{equation} \begin{split} (a - b) + c &= (a + (-b)) + c\\ &= a + (-b + c)\\ &= a + (c - b)\\ &= (a + c) - b\text{.} \end{split} \end{equation}