From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Exporting math code containing a cases environment to LaTeX Date: Sat, 12 Mar 2016 18:16:20 +0000 Message-ID: <87io0rmuiz.fsf@ucl.ac.uk> References: <1457804962.3605548.547270650.7ABB8973@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40728) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeo5U-0000NW-SB for emacs-orgmode@gnu.org; Sat, 12 Mar 2016 13:16:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aeo5R-00079L-Ll for emacs-orgmode@gnu.org; Sat, 12 Mar 2016 13:16:28 -0500 Received: from mail-db3on0131.outbound.protection.outlook.com ([157.55.234.131]:4067 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aeo5R-000791-D3 for emacs-orgmode@gnu.org; Sat, 12 Mar 2016 13:16:25 -0500 In-Reply-To: <1457804962.3605548.547270650.7ABB8973@webmail.messagingengine.com> (Francesco Turco's message of "Sat, 12 Mar 2016 18:49:22 +0100") 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: Francesco Turco Cc: emacs-orgmode@gnu.org 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