From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Footnotes in LaTeX export Date: Thu, 28 Apr 2011 06:50:02 -1000 Message-ID: <13B09B2D-7276-48B5-90F1-617270C593B3@tsdye.com> References: <0295CDD2-E760-4E4B-8EC7-306F9DD15F41@tsdye.com> <87sjt4eu2t.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFUPq-0007ua-GV for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 12:50:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFUPp-0003ka-8b for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 12:50:10 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:48285) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QFUPp-0003jz-2W for emacs-orgmode@gnu.org; Thu, 28 Apr 2011 12:50:09 -0400 In-Reply-To: <87sjt4eu2t.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode Aloha Nicolas, On Apr 26, 2011, at 8:38 AM, Nicolas Goaziou wrote: > Hello, > > "Thomas S. Dye" 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 "(%s)" 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