From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: [bug] equations in latex equation environment with leading +/- misinterpreted Date: Thu, 08 Sep 2011 08:54:50 +0100 Message-ID: <87mxef8o51.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:34458) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1aAy-0003UL-Uo for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 04:41:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1aAu-00032f-ST for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 04:41:36 -0400 Received: from vscani-d2.ucl.ac.uk ([144.82.108.133]:35460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1aAu-0002sb-NT for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 04:41:32 -0400 Received: from dip057.chemeng.ucl.ac.uk ([128.40.228.156] helo=localhost) by vscani-d.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1R1aAP-0004Is-GV for emacs-orgmode@gnu.org; Thu, 08 Sep 2011 09:41:01 +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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hello, the attached org file illustrates a problem with the latex exporter in which any line within a \begin{equation}...\end{equation} that begins with a + or - is interpreted as a list item. It's easy enough to avoid this problem by either reformatting the lines in question or by enclosing the equation block in a LATEX org block. Therefore, there's no urgency in addressing this bug. Thanks, eric --=-=-= Content-Type: text/org Content-Disposition: attachment; filename=examplebug.org Content-Description: Example of latex export bug # -*- coding: utf-8; -*- #+TITLE: examplebug.org #+AUTHOR: Eric S Fraga #+EMAIL: e.fraga@ucl.ac.uk #+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t #+OPTIONS: TeX:t LaTeX:t skip:nil d:nil todo:t pri:nil tags:nil * equation with leading minus sign The following equation \begin{equation} \label{eq:test} y = 3 x - 5 + 4 \end{equation} illustrates a problem in \LaTex export where the leading arithmetic operators are interpreted as list entries. A snippet of the \LaTeX code generated on export is here: #+begin_example The following equation \begin{equation} \label{eq:test} y = 3 x \begin{itemize} \item 5 \item 4 \end{itemize} \end{equation} illustrates a problem in \LaTex export where the leading arithmetic operators are interpreted as list entries. #+end_example --=-=-= Content-Type: text/plain -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.261.g2178) --=-=-=--