From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: latex fragment problems with * environments Date: Mon, 11 May 2009 22:52:19 +0200 Message-ID: <545921C6-2249-45B7-812B-225AE4113987@gmail.com> References: <87bppzbjre.fsf@eeepc.chemeng.ucl.ac.uk> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============2112836960==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M3cU8-00068j-Lb for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:52:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M3cU4-00067f-8h for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:52:28 -0400 Received: from [199.232.76.173] (port=52267 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M3cU3-00067c-Vo for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:52:24 -0400 Received: from mail-ew0-f162.google.com ([209.85.219.162]:48282) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M3cU3-0000Tu-Es for emacs-orgmode@gnu.org; Mon, 11 May 2009 16:52:23 -0400 Received: by ewy6 with SMTP id 6so3927172ewy.42 for ; Mon, 11 May 2009 13:52:22 -0700 (PDT) In-Reply-To: <87bppzbjre.fsf@eeepc.chemeng.ucl.ac.uk> 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: Eric S Fraga Cc: emacs-orgmode@gnu.org --===============2112836960== Content-Type: multipart/alternative; boundary=Apple-Mail-1--372549268 --Apple-Mail-1--372549268 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi Eric, this was fixed 11 days ago in commit 5f86fd7ae2da40b20c967382fa938fc871fb7e44 If you use the latet git version, this problem will not be present. - Carsten On May 11, 2009, at 8:02 PM, Eric S Fraga wrote: > 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 > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode --Apple-Mail-1--372549268 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi = Eric,

this was fixed 11 days ago in = commit

   = 5f86fd7ae2da40b20c967382fa938fc871fb7e44

If you = use the latet git version, this problem will not be = present.

- Carsten

On = May 11, 2009, at 8:02 PM, Eric S Fraga wrote:

Carsten et al.,

If I have the following bit of = LaTeX code in my org file:

,----
| =   \begin{eqnarray}
|     x &=3D& = a_i + b_j + c_{k} \\
|     y &=3D& = \sqrt{x}
|   \end{eqnarray}
|
| =   \begin{eqnarray*}
|     x &=3D&= a_i + b_j + c_{k} \\
|     y &=3D& = \sqrt{x}
|   \end{eqnarray*}
`----

and ask for a = LaTeX export, I get the following generated:

,----
| =   \begin{eqnarray}
|     x &=3D& = a_i + b_j + c_{k} \\
|     y &=3D& = \sqrt{x}
|   \end{eqnarray}
|
| =   \begin{eqnarray*}
|     x = \&=3D\& a$_i$ + b$_j$ + c$_{k}$ \\
| =     y \&=3D\& \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



___________________________________= ____________
Emacs-orgmode mailing list
Remember: use `Reply All' = to send replies to the list.
Emacs-orgmode@gnu.org
http://= lists.gnu.org/mailman/listinfo/emacs-orgmode
<= br>
= --Apple-Mail-1--372549268-- --===============2112836960== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============2112836960==--