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
>From 61871bbb04c437cfb48c0a0b77575a96d2fe9eaf Mon Sep 17 00:00:00 2001
From: Lars Tveito <larst...@ifi.uio.no>
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

Reply via email to