[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [O] LaTeX equation align in orgmode?

**From**: |
Andreas Leha |

**Subject**: |
Re: [O] LaTeX equation align in orgmode? |

**Date**: |
Tue, 29 Sep 2015 05:06:41 +0100 |

**User-agent**: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) |

Hi Rainer,
Rainer M Krug <address@hidden> 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