From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Bug: When exporting to PDF an Org file where multiple footnotes share the same definition, only the first footnote is clickable [8.3.4 (8.3.4-39-ge0acd8-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160418/)] Date: Mon, 25 Apr 2016 10:38:52 +0200 Message-ID: <87h9eqt74z.fsf@gmx.us> References: <1461444845.13483.6.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50650) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auc2p-00021I-Fr for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 04:39:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auc2k-0002oW-Gx for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 04:39:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:51016) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auc2k-0002oD-Aa for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 04:38:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1auc2j-0004tY-I2 for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 10:38:57 +0200 Received: from ip-37-201-6-126.hsi13.unitymediagroup.de ([37.201.6.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2016 10:38:57 +0200 Received: from rasmus by ip-37-201-6-126.hsi13.unitymediagroup.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2016 10:38:57 +0200 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" To: emacs-orgmode@gnu.org Jorge Peixoto de Morais Neto writes: > Line1.[fn:1] > > \pagebreak > > Line2.[fn:1] > * Footnotes > [fn:1] Footnote. > ------------------------------------------------------------------------ > In the generated PDF, the second footnote reference (on page 2) is not > clickable.  If this happened on a large document, how would the reader > locate the footnote definition? Currently, that's not possible in Org. You could something like this, Line1.[fn:1] \pagebreak Line2 (see footnote [[f1]]) * Footnotes [fn:1] <> Footnote. You could also settle for user labels, # -*- org-latex-prefer-user-labels:t -*- #+latex_header: \usepackage{scrextend} #+macro: fnref (eval (if (org-export-derived-backend-p org-export-current-backend 'latex) (format "@@latex:\\footref{%s}@@" "$1") "<<$1>>")) Line1.[fn:1] #+latex: \pagebreak Line2.{{{fnref(f1)}}} * Footnotes [fn:1] <> Footnote. Ultimately, I think a decent fix would be to add a prefix to org-latex--label for targets pointing to footnotes. They should be prefixed with "fn:". Then, it should be easy to hack together a filter. Rasmus -- A page of history is worth a volume of logic