emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: suvayu ali <fatkasuvayu+linux@gmail.com>
To: Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: LaTeX export for numbered equations
Date: Mon, 4 Jun 2012 14:21:40 +0200	[thread overview]
Message-ID: <CAMXnza1FGuKLJOXgvnayQ5-PfhTx6SR=mfTYX-9ZBy-qgnD+mQ@mail.gmail.com> (raw)
In-Reply-To: <80haursewf.fsf@somewhere.org>

Hey Seb,

On Mon, Jun 4, 2012 at 9:41 AM, Sebastien Vauban
<wxhgmqzgwmuf@spammotel.com> wrote:
> Hi Nick,
>
> Nick Dokos wrote:
>> Sebastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
>>
>>> 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:
>>> ...
>>> - 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
>>> ...
>>
>> The following workaround seems to be effective in both of these cases:
>>
>> #+begin_equation
>> #+LATEX:  \frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }
>> #+end_equation
>
> I confirm your workaround is working in my case as well -- I would never have
> thought doing that. Thanks!
>

I know it should work, but is there any particular reason you need to
use #+begin_equation .. #+end_equation ? The following seems to work for
me well.

  #+begin_latex
    \begin{equation}
      \frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }
    \end{equation}
  #+end_latex

If you want fontlocking you can even use

  #+begin_src latex :eval yes
    \begin{equation}
      \frac{1}{\sqrt{2\pi\sigma^2}}e^{ -\frac{(x-\mu)^2}{2\sigma^2} }
    \end{equation}
  #+end_src

-- 
Suvayu

Open source is the future. It sets us free.

  reply	other threads:[~2012-06-04 12:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-03 21:17 LaTeX export for numbered equations Sebastien Vauban
2012-06-04  6:07 ` Nick Dokos
2012-06-04  7:26   ` Sebastien Vauban
2012-06-04  7:33     ` Bastien
2012-06-04  6:14 ` Nick Dokos
2012-06-04  7:41   ` Sebastien Vauban
2012-06-04 12:21     ` suvayu ali [this message]
2012-06-04 13:41   ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMXnza1FGuKLJOXgvnayQ5-PfhTx6SR=mfTYX-9ZBy-qgnD+mQ@mail.gmail.com' \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).