From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: LaTeX equation align in orgmode? Date: Tue, 29 Sep 2015 05:06:41 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgmBq-0006Sh-CG for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 00:06:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZgmBm-0003m4-BP for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 00:06:54 -0400 Received: from plane.gmane.org ([80.91.229.3]:54899) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgmBm-0003le-4c for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 00:06:50 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZgmBk-0007Jg-OW for emacs-orgmode@gnu.org; Tue, 29 Sep 2015 06:06:48 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2015 06:06:48 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 29 Sep 2015 06:06:48 +0200 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 Rainer, Rainer M Krug writes: > Hi > > I would need in a document several equations which are aligned as in > http://tex.stackexchange.com/a/167908/6941 > > How can I use the following latex formula in orgmode? > > \begin{proof} The proof is a follows: > \begin{align} > (x+y)^3&=(x+y)(x+y)^2\\ > &=(x+y)(x^2+2xy+y^2)\\ > &=x^3+3x^2y+3xy^3+x^3.\qedhere > \end{align} > \end{proof} > > > I have effectrively > > #+LATEX_HEADER: \usepackage{amsmath} > > * The equations > > \begin{equation} > \begin{align} > (x+y)^3&=(x+y)(x+y)^2\\ > &=(x+y)(x^2+2xy+y^2)\\ > &=x^3+3x^2y+3xy^3+x^3.\qedhere > \end{align} > \end{equation} > > > but with latex fragment preview (C-c C-x C-l) I only get an empty frame. > > How can use this align environment in org? This seems to a problem with your setup of preview latex. It should work just fine. For me the following org file works as expected -- also with previewing the equation. --8<---------------cut here---------------start------------->8--- #+LaTeX_header: \usepackage{amsmath} %% needed explicitely for org-preview-latex * Test align \begin{align} (x+y)^3&=(x+y)(x+y)^2\\ &=(x+y)(x^2+2xy+y^2)\\ &=x^3+3x^2y+3xy^3+x^3.\qedhere \end{align} --8<---------------cut here---------------end--------------->8--- I do not seem to have any special setup for previewing latex, though... Sorry to be of no further help. Regards, Andreas