Text FormattingHyperref with return command

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

Hyperref with return command

Post by Kotoschow »

Hello all,

I'm using the \hyperref package in order to create hyperlinks to formulas, itemized items, tables, footnotes, and so forth. As a reader, it is very annoying that when you click a hyperlink, there is no simple way to return to the hyperlink itself. For instance, if I am reading page 13 and I press a hyperlink which takes me to page 3, I must scroll down all the way to page 13 to resume my reading.

Does anybody know how to create hyperlinks which allow you to return to them? Specifically, what I want is that when I press a hyperlink to some item, say 'footnote 2', this item becomes a hyperlink itself, which links to the hyperlink I used. So, when I press hyperlink h, which takes me to footnote 2, and then press footnote 2, I am being hyperlinked back to hyperlink h.

Thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Hyperref with return command

Post by Johannes_B »

There is quite a simple logic to that, i could link from the introduction on page 5 to a result on page 10, i could also do it from the conclusion section on page 15 back to the results on page 10. Or refer to the exact same point from the previous page (see sth. on the next page).

And i can have all those together, now the same target is connected to three completely different and independent places, the hyperlink cannot know where the reader came from.


But your pdf-viewer can. Almost all support some kind of get me back shortcut, [Alt]+[leftArrow] or [ctrl]+[leftArrow] or ...
I bet your favourite pdf-viewer lists a command in the documentation or preferences section. ;-)
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply