From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lars Tveito Subject: [patch] Add footnote when exporting links in LaTeX Date: Thu, 17 Sep 2015 00:15:30 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcKzT-0005Eq-1o for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 18:15:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZcKzO-0004Rj-Vv for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 18:15:46 -0400 Received: from mail-out5.uio.no ([129.240.10.17]:57572) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZcKzO-0004R8-Nq for emacs-orgmode@gnu.org; Wed, 16 Sep 2015 18:15:42 -0400 Received: from mail-mx2.uio.no ([129.240.10.30]) by mail-out5.uio.no with esmtp (Exim 4.80.1) (envelope-from ) id 1ZcKzK-0003U2-26 for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 00:15:38 +0200 Received: from cm-84.211.81.130.getinternet.no ([84.211.81.130] helo=Larss-Air) by mail-mx2.uio.no with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) user larstvei (Exim 4.80) (envelope-from ) id 1ZcKzJ-0003DN-Ho for emacs-orgmode@gnu.org; Thu, 17 Sep 2015 00:15:38 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi! When exporting to LaTeX, links are exported using \href. These are completely invisible if the document is printed out. I consider this a problem. I think a good solution is to add a footnote with the link, in addition to the \href. I've added a patch with this (tiny) change. - Lars --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-footnote-when-adding-a-link-in-ox-latex.patch >From 61871bbb04c437cfb48c0a0b77575a96d2fe9eaf Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Wed, 16 Sep 2015 23:57:49 +0200 Subject: [PATCH] Add footnote when adding a link in ox-latex Links in LaTeX-documents are also added in verbatim as a footnote, so it is visible on paper. --- lisp/ox-latex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el index ddbbd33..09a7c15 100644 --- a/lisp/ox-latex.el +++ b/lisp/ox-latex.el @@ -2344,7 +2344,7 @@ INFO is a plist holding contextual information. See (format (org-export-get-coderef-format path desc) (org-export-resolve-coderef path info))) ;; External link with a description part. - ((and path desc) (format "\\href{%s}{%s}" path desc)) + ((and path desc) (format "\\href{%s}{%s}\\footnote{%s}" path desc path)) ;; External link without a description part. (path (format "\\url{%s}" path)) ;; No path, only description. Try to do something useful. -- 2.4.5 --=-=-=--