The example below compiles and makes a clickable link, but in the printed version it is not clear where the link is going.
I suppose to solve that, I could implement some kind of reverse link in a similar way, but I have a feeling there are much more elegant ways (maybe specialized packages?) to tackle this problem, especially if many of this kind of links are involved.
As for how exactly these references look in the document I'm pretty open-minded. Could be line numbers, some kind of colored markers or something else entirely. Best case is the reference works back and forth both digitally and in print. Any suggestions?
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage{lipsum}
\begin{document}
The most important thing to understand in this course is
that dogs don't like cats \hyperref[ref:DogsCats]{(see here)}.
% rest of the document
\lipsum[1-10]
% in appendix:
Some wall of text that explains how animals
don't always like each other. This text is really long
so a reference to the section isn't precise enough,
and it can't be changed or reformatted in any way.
For example, monkeys don't like bats,
crocodiles don't like pangolins,
50 other animals also don't like each other,
dogs don't like cats \phantomsection\label{ref:DogsCats},
mice don't like rabbits, and a good 30 more examples.
\end{document}

\pageref{ref:DogsCats}? Or maybe something likevariorefpackage? – cabohah Apr 24 '23 at 09:40