From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Bug? in latex export of cross-references in footnotes Date: Mon, 26 Sep 2011 14:31:17 -0500 Message-ID: <4E80D305.2040609@sift.info> References: <4E80D1EE.8050207@sift.info> Reply-To: rpgoldman@sift.info Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060408020703000905090402" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:47441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Gtc-00087n-9L for emacs-orgmode@gnu.org; Mon, 26 Sep 2011 15:31:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8Gta-0000NY-Ve for emacs-orgmode@gnu.org; Mon, 26 Sep 2011 15:31:20 -0400 Received: from mpls.sift.info ([75.146.46.193]:56522) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8Gta-0000NG-Pr for emacs-orgmode@gnu.org; Mon, 26 Sep 2011 15:31:18 -0400 In-Reply-To: <4E80D1EE.8050207@sift.info> 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: Org Mode This is a multi-part message in MIME format. --------------060408020703000905090402 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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. --------------060408020703000905090402 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="footnote-crossref.org" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="footnote-crossref.org" * Heading * Another heading * Some text Inside the text there is a footnote.[1] * Some more text Here's text with a link in the body: [[*Heading]]. Footnotes: [1] The footnote contains a cross-reference to [[*Heading]]. --------------060408020703000905090402 Content-Type: application/x-tex; name="footnote-crossref.tex" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="footnote-crossref.tex" JSBDcmVhdGVkIDIwMTEtMDktMjYgTW9uIDE0OjI5Clxkb2N1bWVudGNsYXNzWzExcHRde2Fy dGljbGV9Clx1c2VwYWNrYWdlW3V0Zjhde2lucHV0ZW5jfQpcdXNlcGFja2FnZVtUMV17Zm9u dGVuY30KXHVzZXBhY2thZ2V7Zml4bHR4MmV9Clx1c2VwYWNrYWdle2dyYXBoaWN4fQpcdXNl cGFja2FnZXtsb25ndGFibGV9Clx1c2VwYWNrYWdle2Zsb2F0fQpcdXNlcGFja2FnZXt3cmFw ZmlnfQpcdXNlcGFja2FnZXtzb3VsfQpcdXNlcGFja2FnZXt0ZXh0Y29tcH0KXHVzZXBhY2th Z2V7bWFydm9zeW19Clx1c2VwYWNrYWdle3dhc3lzeW19Clx1c2VwYWNrYWdle2xhdGV4c3lt fQpcdXNlcGFja2FnZXthbXNzeW1ifQpcdXNlcGFja2FnZXtoeXBlcnJlZn0KXHRvbGVyYW5j ZT0xMDAwClxwcm92aWRlY29tbWFuZHtcYWxlcnR9WzFde1x0ZXh0YmZ7IzF9fQoKXHRpdGxl e2Zvb3Rub3RlLWNyb3NzcmVmfQpcYXV0aG9ye1JvYmVydCBQLiBHb2xkbWFufQpcZGF0ZXtc dG9kYXl9CgpcYmVnaW57ZG9jdW1lbnR9CgpcbWFrZXRpdGxlCgpcc2V0Y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