From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francesco Turco Subject: Exporting math code containing a cases environment to LaTeX Date: Sat, 12 Mar 2016 18:49:22 +0100 Message-ID: <1457804962.3605548.547270650.7ABB8973@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36354) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aenfL-0002ql-JV for emacs-orgmode@gnu.org; Sat, 12 Mar 2016 12:49:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aenfI-0000KD-ET for emacs-orgmode@gnu.org; Sat, 12 Mar 2016 12:49:27 -0500 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:56530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aenfI-0000K2-9V for emacs-orgmode@gnu.org; Sat, 12 Mar 2016 12:49:24 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C73E7207A3 for ; Sat, 12 Mar 2016 12:49:22 -0500 (EST) 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 Why the following piece of Org Mode document doesn't display correctly when exported to a PDF document via LaTeX? \[n!= \begin{cases} 1 & n=0 \\ n(n-1)! & n\ge 1 \\ \end{cases} \] It is displayed at the left instead of center of the document. Moreover the \[ and \] symbols are not removed in the final document. 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?