Hej Lars,

Thanks for your patch.

Lars Tveito <larst...@ifi.uio.no> writes:

> When exporting to LaTeX, links are exported using \href. These are
> completely invisible if the document is printed out. I consider this a
> problem.

It's easy enough to fix in latex.  Here's a not quite trivial solution
I've used for letters.

    \documentclass{scrartcl}
    \usepackage{url}
    \usepackage{hyperref}
    \usepackage[para,flushmargin]{footmisc}
    \makeatletter
    \Urlmuskip = 0mu plus 1mu
    \renewcommand\@makefntext[1]{%
      \hspace*{-2em}
      \parindent 0em
      \noindent
      \hb@xt@ 2.65em{\hss %  There's the option of putting \hss before
        \bfseries{\@thefnmark}. }%       or after \@thefnmark, aligning the 
footnote
      #1}%                  marks to the right or to the left, respectively
    \addtokomafont{footnotelabel}{\bfseries}
    \def\myurl#1{\setbox0\vbox{\hsize.5\maxdimen
    \url{#1}\par
    \setbox0\lastbox
    \global\setbox1\hbox{\unhbox0\unskip\unskip\unpenalty}}\unhbox1}
    \let\ohref\href
    \newcommand\fnurl[2]{\ohref{#2}{#1}\footnote{\myurl{#2}}}
    \renewcommand{\href}[2]{\fnurl{#2}{#1}}
    \makeatother
    \begin{document}
    foo \href{http://orgmode.org}{bar}
    \end{document}

> 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.

We shouldn't hardcode this behavior.

Rasmus

-- 
Send from my Emacs


Reply via email to