From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: latex fragment problems with * environments Date: Mon, 11 May 2009 19:02:29 +0100 Message-ID: <87bppzbjre.fsf@eeepc.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3acR-0003SW-RG for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:52:55 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3acN-0003QN-92 for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:52:55 -0400 Received: from [199.232.76.173] (port=44720 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3acN-0003QG-2Y for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:52:51 -0400 Received: from main.gmane.org ([80.91.229.2]:57713 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M3acM-00030J-Cj for emacs-orgmode@gnu.org; Mon, 11 May 2009 14:52:50 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M3acH-0004hL-Gc for emacs-orgmode@gnu.org; Mon, 11 May 2009 18:52:45 +0000 Received: from 79-73-95-166.dynamic.dsl.as9105.com ([79.73.95.166]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 May 2009 18:52:45 +0000 Received: from e.fraga by 79-73-95-166.dynamic.dsl.as9105.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 May 2009 18:52:45 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Carsten et al., If I have the following bit of LaTeX code in my org file: ,---- | \begin{eqnarray} | x &=& a_i + b_j + c_{k} \\ | y &=& \sqrt{x} | \end{eqnarray} | | \begin{eqnarray*} | x &=& a_i + b_j + c_{k} \\ | y &=& \sqrt{x} | \end{eqnarray*} `---- and ask for a LaTeX export, I get the following generated: ,---- | \begin{eqnarray} | x &=& a_i + b_j + c_{k} \\ | y &=& \sqrt{x} | \end{eqnarray} | | \begin{eqnarray*} | x \&=\& a$_i$ + b$_j$ + c$_{k}$ \\ | y \&=\& \sqrt{x} | \end{eqnarray*} `---- The second environment has not been recognised by org-mode as a valid latex fragment and so all the special characters (&, _) have been processed instead of being left alone. This could be my fault but I have no idea where to start looking in case I've set something I shouldn't have. Because the latex exporter has changed since I last used any latex fragments in my org files, and that has been a while, I am not sure if this ever worked properly anyway. Or it could be that "*" environments don't get recognised correctly by the latex exporter? Is there a regexp that I can customise for this? Thanks for any suggestions! I've temporarily changed all * environments to ones with the * (so I get tons of equation numbers I don't need) but I would love to revert to what I had originally. eric