I use the hyperref package a lot and it creates beautiful document. But I want to make sure that those links are still usable when people print the document.

PDF (drucken)

I worked on making 10 ways GNU Guile is 10x better easier to print. But that article uses lots of links and a printout from the standard PDF export over LaTeX loses the links. They become just colored letters.

In contrast, plain text export shows a list of links at the end. That’s what I wanted for the nicer to read PDF, too.

Thanks to a tip from J\$ (mastodon.nl/@js) I now have a clean solution:

\documentclass[a5paper]{scrartcl}
\usepackage{hyperref}

% re-defining href to add contents lines
\usepackage{tocloft}
\let\oldhref\href
\usepackage{xurl}\urlstyle{same}\renewcommand\cftsecaftersnum{\newline}
% end re-defining

\begin{document}
Something \href{http://interesting.example.com}{interesting}!

% inserting the list of links
% end inserting

\end{document}


# Add a list of links