From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug? in latex export of cross-references in footnotes Date: Sun, 09 Oct 2011 14:11:31 +0200 Message-ID: <8762jycqks.fsf@gmail.com> References: <4E80D1EE.8050207@sift.info> <4E80D305.2040609@sift.info> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCsFI-0001Jx-VS for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 08:12:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RCsFH-0007g5-Oa for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 08:12:44 -0400 Received: from mail-ww0-f49.google.com ([74.125.82.49]:61014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RCsFH-0007fk-H5 for emacs-orgmode@gnu.org; Sun, 09 Oct 2011 08:12:43 -0400 Received: by wwp14 with SMTP id 14so6660770wwp.30 for ; Sun, 09 Oct 2011 05:12:42 -0700 (PDT) In-Reply-To: <4E80D305.2040609@sift.info> (Robert Goldman's message of "Mon, 26 Sep 2011 14:31:17 -0500") 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: rpgoldman@sift.info Cc: Org Mode Hello, Robert Goldman writes: > On 9/26/11 Sep 26 -2:26 PM, Robert Goldman wrote: >> Here is a simple footnote in a test file: >> >> Footnotes: >> [1] The footnote contains a cross-reference to [[Heading]]. >> >> When I export this using org-export-as-pdf, the cross-reference to >> Heading doesn't get exported properly. In particular, what I see in the >> emitted latex file is: >> >> Inside the text there is a footnote.\protect\footnote{The footnote >> contains a cross-reference to \hyperref[Heading]{Heading}. } >> >> But the only latex \label associated with \section{Heading} is >> \label{sec-1}. >> >> I am attaching the sample org file and latex output. >> >> Thanks for any suggestions! >> >> Robert > > I tweaked the example a little (see attachment), and this is a bona fide > bug. A corresponding link in the body text (I have modified the link to > use the "restricted to headers" syntax, just in case that was the > problem), works properly. It's only in the footnote that it's broken. Yes, managing internal links within a footnote is a non-trivial task in the LaTeX exporter. I'm working on a different approach. Regards, -- Nicolas Goaziou