Hi Rainer, Rainer M Krug <rai...@krugs.de> 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