LaTeX export: Protect secondary footnote references
commit3f64f8ec732e67442c93c96f19934ae8aa3d5e0e
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 20 Nov 2009 14:05:42 +0000 (20 15:05 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 20 Nov 2009 14:05:42 +0000 (20 15:05 +0100)
treee945f81f6c4f0ff98dcd5f6f9842dd2146fa9cbf
parenta2e0d000c8baae0891dd8205d10b259507f5f68e
LaTeX export: Protect secondary footnote references

Francesco Pizzolante writes:

> Exporting multiple references to the same footnote to LaTeX lead to a wrong
> generated code.
>
> The following example:
>
> --8<---------------cut here---------------start------------->8---
> * Title
>   This is my text[fn:1:This is my footnote.]. And another one[fn:1].
> --8<---------------cut here---------------end--------------->8---
>
> Will produce the following LaTeX code:
>
> --8<---------------cut here---------------start------------->8---
> \section{Title}
> \label{sec-1}
>
>   This is my text\footnote{This is my footnote. }. And another one\$$^{1}$\$.
> --8<---------------cut here---------------end--------------->8---
>
> The correct code should be:
>
> --8<---------------cut here---------------start------------->8---
> \section{Title}
> \label{sec-1}
>
>   This is my text\footnote{This is my footnote. }. And another one$^{1}$.
> --8<---------------cut here---------------end--------------->8---
lisp/ChangeLog
lisp/org-latex.el