From mboxrd@z Thu Jan 1 00:00:00 1970 From: Federico Beffa Subject: latex equations and $ sign Date: Fri, 6 Jun 2014 12:47:20 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf301cc6aafe81f904fb289594 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsrgA-0001xq-Lo for emacs-orgmode@gnu.org; Fri, 06 Jun 2014 06:47:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsrg9-0005MI-PC for emacs-orgmode@gnu.org; Fri, 06 Jun 2014 06:47:22 -0400 Received: from mail-ie0-x232.google.com ([2607:f8b0:4001:c03::232]:48279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsrg9-0005M4-Jn for emacs-orgmode@gnu.org; Fri, 06 Jun 2014 06:47:21 -0400 Received: by mail-ie0-f178.google.com with SMTP id rl12so2292834iec.37 for ; Fri, 06 Jun 2014 03:47:20 -0700 (PDT) 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 --20cf301cc6aafe81f904fb289594 Content-Type: text/plain; charset=UTF-8 Hi, I would like to have a mathematical equation typeset in latex and automatically generated by sympy, embedded in an equation environment: #+NAME: mass-energy #+BEGIN_SRC python :results raw :exports results :wrap EQUATION import sympy as sp E, m, c = sp.symbols('E, m, c', real=True, positive=True) E = m*c**2 return sp.latex(E) #+END_SRC #+NAME: eq:1 #+RESULTS: mass-energy #+BEGIN_EQUATION c^{2} m #+END_EQUATION The problem I'm facing is that despite the fact that the equation is already in a mathematical mode latex environment, it still gets sub- and superscripts surrounded by a $ sign. Here is the generated latex snippet: \begin{equation} \label{eq:1} c$^{\text{2}}$ m \end{equation} Is there a way to teach org-mode not to insert $ signs in equation environments? Thanks, Fede --20cf301cc6aafe81f904fb289594 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

I would like to = have a mathematical equation typeset in latex and automatically generated b= y sympy, embedded in an equation environment:

=C2=A0 #+NAME: mass-en= ergy
=C2=A0 #+BEGIN_SRC python :results raw :exports results :wrap EQUATION
= =C2=A0=C2=A0=C2=A0 import sympy as sp
=C2=A0=C2=A0=C2=A0 E, m, c =3D sp.= symbols('E, m, c', real=3DTrue, positive=3DTrue)
=C2=A0=C2=A0=C2= =A0 E =3D m*c**2
=C2=A0=C2=A0=C2=A0 return sp.latex(E)
=C2=A0 #+END_S= RC


=C2=A0 #+NAME: eq:1
=C2=A0 #+RESULTS: mass-energy
=C2=A0 #+BE= GIN_EQUATION
=C2=A0 c^{2} m
=C2=A0 #+END_EQUATION

The pr= oblem I'm facing is that despite the fact that the equation is already = in a mathematical mode latex environment, it still gets sub- and superscrip= ts surrounded by a $ sign. Here is the generated latex snippet:

\begin{equation}
\label{eq:1}
c$^{\text{2}}$ m
\end{equation}<= br>
Is there a way to teach org-mode not to insert $ signs in equa= tion environments?

Thanks,
Fede


--20cf301cc6aafe81f904fb289594--