From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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 13:41:50 +0200 Message-ID: <87h9ep6hkx.fsf@saiph.selenimh> References: <1461444845.13483.6.camel@gmail.com> <87h9eqt74z.fsf@gmx.us> <87a8kivzcc.fsf@saiph.selenimh> <87r3durmc6.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1auetq-0006u0-Bo for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 07:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1auetp-0004cr-1c for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 07:41:58 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:34127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aueto-0004bd-QC for emacs-orgmode@gnu.org; Mon, 25 Apr 2016 07:41:56 -0400 In-Reply-To: <87r3durmc6.fsf@gmx.us> (rasmus@gmx.us's message of "Mon, 25 Apr 2016 12:53:29 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > The transcoded version of the second "[fn:1]", say S2, will be passed to > our filter FUN, if FUN is added to > org-export-filter-footnote-reference-functions. But S2 will only contain > the estimated number of the footnote=EF=BB=BF=C2=B9, e.g. "\footnotemark[= 1]{}". Indeed. I don't know any other way to handle repeated footnote markers in LaTeX. > We could capture the transcoded version of the link "[[f1]]" in FUN, if > FUN is added to org-export-filter-link-functions (I think). But by then > we=E2=80=99d only be served a generic reference, e.g. "\ref{org925ce52}".= I don=E2=80=99t > know how we=E2=80=99d then differentiate between a link to a footnote and= to some > other type of element, e.g. a source block. Hence, it becomes hard to > guess when to use e.g. \footref{.} instead of \ref{.}. You can retrieve element referenced as "org925ce52" with (cdr (assoc "org925ce52" (plist-get info :internal-references))) It's a bit low-level, but it is useful, it could be factored out as a function in "ox.el". Regards,