[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Exporting math code containing a cases environment to LaTeX
From: |
Eric S Fraga |
Subject: |
Re: [O] Exporting math code containing a cases environment to LaTeX |
Date: |
Sat, 12 Mar 2016 18:16:20 +0000 |
User-agent: |
Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.0.91 (gnu/linux) |
On Saturday, 12 Mar 2016 at 18:49, Francesco Turco wrote:
> I can fix the problem by replacing \[ and \] with \begin{displaymath}
> end \end{displaymath} respectively:
>
> \begin{displaymath}
> n!=
> \begin{cases}
> 1 & n=0 \\
> n(n-1)! & n\ge 1 \\
> \end{cases}
> \end{displaymath}
>
> Is this the best way to fix the problem? Am I missing a better solution?
The \[ ... \] construct is only valid, in org, if on a single
line. Your solution is perfectly valid although, in practice, I would
use equation* instead of displaymath.
Alternatively, you can enclose it all in a export block, as in
#+begin_export latex
\[
...
\]
#+end_export
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.4-626-gb62d55