emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Footnotes in LaTeX export


From: Thomas S. Dye
Subject: Re: [O] Footnotes in LaTeX export
Date: Thu, 28 Apr 2011 06:50:02 -1000

Aloha Nicolas,

On Apr 26, 2011, at 8:38 AM, Nicolas Goaziou wrote:

Hello,

"Thomas S. Dye" <address@hidden> writes:

I'm exporting a subtree to LaTeX and am having problems with footnotes.

1) If I enter a footnote with C-c C-x f everything works as expected
in the Org-mode buffer, but on export the actual footnote is replaced
by a message something like FOOTNOTE DEFINITION NOT FOUND.

2) I can workaround this problem by using an inline definition, eg.
[fn:: My footnote.]. However, the citation links that I use elsewhere
in the document, defined as set out in
http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-17_2_1 ,
are broken inside the footnote.  The same code that yields
\citep{wilmshurst11:_high_east_polyn} in regular text yields
\citep{wilmshurst11:_high$_{\mathrm{east}}$$_{\mathrm{polyn}}$ }
inside the footnote.

I'm using Org-mode version 7.4 (release_7.4.624.gab9f9) with a patch
for captions (which I submitted a while back) and another for org-
bibtex recently developed by Eric Schulte (neither of which should
have an effect on footnotes, I believe).

There has been recently some work done on footnotes, in particular
regarding latex export. Could you upgrade your Org version ?

If it still doesn't work, please post an ECM, I will have a look at it.

Regards,

--
Nicolas Goaziou


I *think* this is an ECM. I appreciate your offer to look at the problem.

Org-mode version 7.5 (release_7.5.229.g88a32)

* ECM
** Define link
Source the following code with C-c C-c
#+source: define-citep-link
#+begin_src emacs-lisp :results silent
    (org-add-link-type
     "citep" 'ebib
     (lambda (path desc format)
       (cond
        ((eq format 'html)
         (format "(<cite>%s</cite>)" path))
        ((eq format 'latex)
         (if (or (not desc) (equal 0 (search "citep:" desc)))
               (format "\\citep{%s}" path)
               (format "\\citep[%s]{%s}" desc path)
  )))))
#+end_src
** Export subtree to LaTeX
This link is fine [[citep:link_with_underscore]], but the one in the
footnote is not OK.[fn:: A bad link [[citep:link_with_underscore]].]

LaTeX export:

This link is fine \citep{link_with_underscore}, but the one in the
footnote is not OK.\footnote{A bad link [[citep:link\_{}with \_{}underscore }].]

All the best,
Tom



reply via email to

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