Using \Acrobatmenu{GoBack} with bibtex

by Bob   Last Updated October 19, 2019 22:23 PM - source

This question is a follow-on from: https://tex.stackexchange.com/questions/512820/placement-of-acrobatmenugoback-in-hyperref

I am writing a document with many hyperlinks between the text and Figures, Tables and References, courtesy of \hyperref. When the reader clicks a hyperlink in the text to one of these document itmes, I would like to provide a return button on each of the items so that the busy reader can easily click and go back to the previous document area. I prefer to use an Adobe Acrobat "go back" button rather than using command-up arrow because this is simpler for the reader, I believe. I also prefer my "button" approach to the implementatin in the \backref package which is used for citations and references.

In my previous question,@JasperHabicht provided an excellent solution for the Figures and Tables. I would love a similar solution for each reference. Ideally I would like the button (a red triangle) placed at the beginning of each reference or at the end, as desired. There are biblatex solutions (eg https://tex.stackexchange.com/questions/159806/add-text-comment-into-bibliography), but a bibtex solution is necessary, as journals seem to not use biblatex.

MWE, with solution for Figures and Tables, but not references:


\documentclass[12pt]{amsart}
\usepackage{geometry} % see geometry.pdf on how to lay out the page. There's lots.
\geometry{a4paper} % or letter or a5paper or ... etc

\usepackage{graphicx}
\usepackage{mathtools} 
\usepackage{amssymb} 

\usepackage[round]{natbib}

% Remove square brackets from first author(s) in bibliography
\makeatletter
%\renewcommand{\@biblabel}[1]{\quad#1}%<--- \quad gives space of width letter "M" and indents bibliography by same
\renewcommand{\@biblabel}[1]{#1}%left flush
\makeatother

\renewcommand{\figurename}{\Acrobatmenu{GoBack}{$\blacktriangle$} Figure}
\renewcommand{\tablename}{\Acrobatmenu{GoBack}{$\blacktriangle$} Table}


\usepackage{hyperref} % use command left arrow to return to exact reference in Adobe Reader
\hypersetup{
     colorlinks=true,
    %hidelinks=true, 
    linkcolor=blue,
    citecolor=blue,
    filecolor=magenta,      
    urlcolor=blue,
}


\usepackage[all]{hypcap}

%%% BEGIN DOCUMENT
\begin{document}



\title{My Red Car}
\author{Fuzzy}
\maketitle


Fuzzy and Wuzzy drove the little red car all the way to toy town~\citep{Fuzzy:2009aa}.



\begin{thebibliography}{99}
\providecommand{\natexlab}[1]{#1}

\bibitem[\protect\citename{Fuzzy et~al., }2009]{Fuzzy:2009aa}
Fuzzy, S., and Wuzzy, B.E. (2009).
\newblock What a pretty red car you have!
\newblock Fuzzy goes big. \emph{5}, 1-20.

\end{thebibliography}



\section*{Figures}

\begin{figure}[htb!]
\includegraphics[width = 0.5\textwidth]{example-image-a}
\caption{
 \textbf{Fuzzy said yes.} What a wonderful affirmation.
}
\label{fig:Cat}
\end{figure}


\section*{Tables}
\begin{table}[htb!]
\begin{tabular}{ r r r }
\hline 
one & two & three \\
\hline
\end{tabular}
\caption{
 \textbf{Fuzzy said no.} She is strong and proud.
}
\label{tab:Cat}
\end{table}




\end{document}

Output:

enter image description here

Tags : bibtex hyperref


Related Questions


Edit BibTeX items appearance to add line break

Updated July 21, 2015 15:10 PM

how to write "~" in a link

Updated September 22, 2017 23:23 PM


Different link colors for citeauthor and cite commands

Updated September 22, 2017 19:23 PM

hyper link in the reference

Updated January 12, 2018 07:23 AM