From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: unexpected appearance of x^2 in pdf file Date: Sun, 12 May 2013 15:07:04 +0200 Message-ID: <87vc6o4a9z.fsf@gmail.com> References: <87d2sw7hoa.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbVzV-0004JG-SX for emacs-orgmode@gnu.org; Sun, 12 May 2013 09:07:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbVzU-0002ED-TN for emacs-orgmode@gnu.org; Sun, 12 May 2013 09:07:05 -0400 Received: from mail-wi0-x22d.google.com ([2a00:1450:400c:c05::22d]:44482) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbVzU-0002DC-KB for emacs-orgmode@gnu.org; Sun, 12 May 2013 09:07:04 -0400 Received: by mail-wi0-f173.google.com with SMTP id hi5so650915wib.12 for ; Sun, 12 May 2013 06:07:04 -0700 (PDT) In-Reply-To: (Paul Stansell's message of "Sun, 12 May 2013 10:07:51 +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: Paul Stansell Cc: emacs-orgmode@gnu.org Hello, Paul Stansell writes: > I've also come across a couple of other unexpected results exporting > other latex equations to pdf. Examples are given in the attached org > file. Both are quite trivial with easy work-arounds. In both cases, > because the embedded png equations (displayed by C-c C-x C-l) are > formatted correctly, the problem in the exported pdf file might go > unnoticed. > \[ x = y > +1 \] > > \[ x = y > + 1 \] This is to be expected. In the second case, the second line defines a list item, which has precedence over any LaTeX snippet. > \[ x = \begin{array}{cc} > y & u \\ > z & v > \end{array} \] > > \[ x = > \begin{array}{cc} > y & u \\ > z & v > \end{array} \] I think this is because of a limitation on the number of lines a LaTeX snippet can span across (IIRC, 3 is the maximum). In both cases, I suggest to use LaTeX environments instead: \begin{equation*} x = y + 1 \end{equation*} and \begin{equation*} x = \begin{array}{cc} y & u \\ z & v \end{array} \end{equation*} Regards, -- Nicolas Goaziou