all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem with latex and footnotes
@ 2011-07-08 18:15 Rafael Calsaverini
  2011-07-08 18:26 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: Rafael Calsaverini @ 2011-07-08 18:15 UTC (permalink / raw)
  To: Lista - org-mode

Hi. I'm noticed a problem with latex equations and footnotes. I'm not
sure, but I believe it started after I downloaded the newest version
of org-mode.

When I try to export a $...$ block that is inside a footnote, the
latex file end up with \$...\$ instead of $...$. As an example, this:

#+LaTeX_CLASS: article

* test
  This is just a test [fn:test].

[fn:test] This is an equation: $x = y$.


Gets exported into this (just the relevant section):

\section{test}
\label{sec-1}

  This is just a test \footnote{This is an equation: \$x = y\$. }.

Is there a way around it?

Thanks in advance.
---
Rafael Calsaverini
Dep. de Física Geral, Sala 336
Instituto de Física - Universidade de São Paulo

rafael.calsaverini@gmail.com
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with latex and footnotes
  2011-07-08 18:15 Problem with latex and footnotes Rafael Calsaverini
@ 2011-07-08 18:26 ` Nick Dokos
  2011-07-09  0:36   ` Rafael Calsaverini
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2011-07-08 18:26 UTC (permalink / raw)
  To: Rafael Calsaverini; +Cc: nicholas.dokos, Lista - org-mode

Rafael Calsaverini <rafael.calsaverini@gmail.com> wrote:

> Hi. I'm noticed a problem with latex equations and footnotes. I'm not
> sure, but I believe it started after I downloaded the newest version
> of org-mode.
> 
> When I try to export a $...$ block that is inside a footnote, the
> latex file end up with \$...\$ instead of $...$. As an example, this:
> 
> #+LaTeX_CLASS: article
> 
> * test
>   This is just a test [fn:test].
> 
> [fn:test] This is an equation: $x = y$.
> 
> 

This works:

--8<---------------cut here---------------start------------->8---
#+LaTeX_CLASS: article

* test
  This is just a test [fn:test].

[fn:test] This is an equation: \(x = y\).
--8<---------------cut here---------------end--------------->8---

It is generally a good idea (and not just in org-mode) to avoid $...$
and $$...$$ for math. The recommended way is \(...\) for inline equations
and \[...\] for diplayed math.

Nick

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem with latex and footnotes
  2011-07-08 18:26 ` Nick Dokos
@ 2011-07-09  0:36   ` Rafael Calsaverini
  0 siblings, 0 replies; 3+ messages in thread
From: Rafael Calsaverini @ 2011-07-09  0:36 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: Lista - org-mode

Hummm... thanks for the tip! It works now. :D


---
Rafael Calsaverini
Dep. de Física Geral, Sala 336
Instituto de Física - Universidade de São Paulo

rafael.calsaverini@gmail.com
http://stoa.usp.br/calsaverini/weblog
CEL: (11) 7525-6222
USP: (11) 3091-6803




On Fri, Jul 8, 2011 at 15:26, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Rafael Calsaverini <rafael.calsaverini@gmail.com> wrote:
>
>> Hi. I'm noticed a problem with latex equations and footnotes. I'm not
>> sure, but I believe it started after I downloaded the newest version
>> of org-mode.
>>
>> When I try to export a $...$ block that is inside a footnote, the
>> latex file end up with \$...\$ instead of $...$. As an example, this:
>>
>> #+LaTeX_CLASS: article
>>
>> * test
>>   This is just a test [fn:test].
>>
>> [fn:test] This is an equation: $x = y$.
>>
>>
>
> This works:
>
> --8<---------------cut here---------------start------------->8---
> #+LaTeX_CLASS: article
>
> * test
>  This is just a test [fn:test].
>
> [fn:test] This is an equation: \(x = y\).
> --8<---------------cut here---------------end--------------->8---
>
> It is generally a good idea (and not just in org-mode) to avoid $...$
> and $$...$$ for math. The recommended way is \(...\) for inline equations
> and \[...\] for diplayed math.
>
> Nick
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-09  0:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-08 18:15 Problem with latex and footnotes Rafael Calsaverini
2011-07-08 18:26 ` Nick Dokos
2011-07-09  0:36   ` Rafael Calsaverini

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.