emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] LaTeX export for numbered equations


From: Sebastien Vauban
Subject: [O] LaTeX export for numbered equations
Date: Sun, 03 Jun 2012 23:17:32 +0200
User-agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.0.97 (windows-nt)

Hello,

I'm trying to get numbered equations in Beamer, hence using the begin_equation
block, but the formula is not correctly translated to LaTeX, and I have no
clue why...

Here an ECM:

--8<---------------cut here---------------start------------->8---
#+TITLE:     ECM Equations
#+DATE:      2012-06-13
#+Time-stamp: <2012-06-03 Sun 23:13 Fabrice on MEDIACENTER>

#+startup: beamer
#+LaTeX_CLASS: beamer
#+LaTeX_CLASS_OPTIONS: [presentation,t]
#+BEAMER_HEADER_EXTRA: \usetheme{default}\usecolortheme{default}
#+BEAMER_FRAME_LEVEL: 1
#+COLUMNS: %40ITEM %10BEAMER_env(Env) %10BEAMER_envargs(Env Args) 
%4BEAMER_col(Col) %8BEAMER_extra(Extra)

* Equations

- This is a displayed formula, not numbered:
  \[\frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }\]

- These should be numbered:

#+begin_equation
\frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }
#+end_equation

#+begin_equation
\frac{1}{\sqrt{2\pi\sigma^2}}e^{-\frac{(x-\mu)^2}{2\sigma^2}}
#+end_equation

* LaTeX output

- The first equation, unnumbered, is correctly translated to:

    \[\frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }\]

- The two other are wrongly translated:

  + the first one with two curly brackets escaped:
                                   v                               v
    \begin{equation}
    \frac{1}{\sqrt{2\pi\sigma^2}}e^\{ -\frac{(x-\mu)^2}{2\sigma^2} \}
    \end{equation}

  + the last one with one curly bracket escaped:
                                   v
    \begin{equation}
    \frac{1}{\sqrt{2\pi\sigma^2}}e^\{-\frac{(x-\mu)^2}{2\sigma^2}}
    \end{equation}
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban




reply via email to

[Prev in Thread] Current Thread [Next in Thread]