# Going “back” when using hyperref

I'm including \usepackage{hyperref} so that each instance of \ref (as well as each page number in the index and the table of contents) automatically links to that page.

When I'm viewing the document (in Sumatra) and I click a link, I jump to the linked page. Is there any easy way to go "back" to where I was before I clicked the link? (And is the answer any different when using Adobe Acrobat reader?)

-
Such a correspondence is usually "one to many": which place of the PDF should this point to? All the PDF viewers have a "go back" facility, AFAIK. –  egreg Apr 9 '12 at 20:08
This depends on the PDF viewer - for Adobe Reader, you can find a solution in an answer to How to return to original .pdf presentation after open a .pdf linked file?. –  diabonas Apr 9 '12 at 20:14
This question is also asked at SuperUser ("Back button of Adobe PDF Reader after clicking a hyperlink whose target is on the same document"). Many PDF viewers, including Adobe Reader, use [ALT]+[Left Arrow]. –  Jess Riedel Nov 20 '13 at 8:16

Actually this has nothing to do with TeX …

There’s no default, so one needs to check the viewer’s menus and shortcuts, because each application can use its own method. However, on MS Windows the keys are the same for Adobe Reader, SumatraPDF and PDF XChange Viewer (and probably some others which I can’t test now): Alt plus left cursor key for “Go back to last view” and Alt plus right cursor key for “Go to next view”. The latter is only active, when the former at least once was used. Despite the same key association the different readers behave not exactly the same. Enrico Gregorio (egreg) reported, that on Mac OS X it's Cmd + [ and Cmd + ] (except for Adobe Reader).

-
Of course, this depends on the operating system and, possibly, on the language (at least on Mac OS X). –  egreg Apr 9 '12 at 21:04
Something about: "one needs to check the viewer's menus and shortcuts because each application can use its own method". For example on Mac OS X it's Command+[ and Command+] (except for Adobe Reader). –  egreg Apr 9 '12 at 21:33

For the evince PDF viewer it is not so easy to find how to add this functionality. A solution involving the "back" button can be found here.

I had to add the icon for "back" (which is a left arrow) to the toolbar as described above. Note that "back" means "previous viewed page" and not "previous page" which is denoted by the up-arrow icon.

-