[Tex/LaTex] How to jump to a hyperlink and back to original section in pdf or html documents

hyperref

Consider the example below. Using \hyperref[hello]{go to hello} I can jump to last page but I cant find the way to hyperlink back to where I was (before i clicked) unless I scrolled back manually. My question is: Is there a way to jump to a hyperlink and jump back to the text in latex? Footnote seems to have that functionality by creating a little blue arrow next to the footnote. Is there anything similar for hyperlinks?

\documentclass{article}
\usepackage(hyperref)
\begin{document}  
\SweaveOpts{concordance=TRUE}

\hyperref[hello]{go to hello}
\newpage
 bla bla

\newpage
 bla again

\newpage
 hi
 \label{hello}

 \end{document}

Best Answer

In general, it is not possible to specify the link target for going back, because it is not known, from where this place was reached.

Some PDF viewers support the GoBack action (the PDF reference only supports PrevPage, NextPage, FirstPage, LastPage):

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{First section}
\label{sec:first}
\hyperref[sec:second]{Link to second section}
\newpage
\section{Second section}
\label{sec:second}
\Acrobatmenu{GoBack}{Go back}
\end{document}
Related Question