1

In the solution below, the \acrobatmenu button link is put at the center of the document.

How can it be shown at the bottom of every page

https://tex.stackexchange.com/a/238478/190989

user92127
  • 187

1 Answers1

1
\documentclass[a5paper]{article}
\usepackage[hidelinks]{hyperref}
\usepackage{lipsum}
\usepackage[variablett]{lmodern}
\usepackage{fancyhdr}
\newcommand*{\Button}[1]{\Acrobatmenu{#1}{\fbox{\footnotesize\texttt{#1}}}}

\begin{document}
\pagestyle{fancy}
%\renewcommand{\headrulewidth}{0pt} %Uncomment this line if you don't want the line at the top of the page.
\lfoot{%
\begin{tabular}{c}
\Button{PrevPage}\\\Button{FirstPage}\\
\end{tabular}
\hfill
\thepage
\hfill
\begin{tabular}{c}
\Button{NextPage}\\\Button{LastPage}\\
\end{tabular}
}
\tableofcontents
\section{Document start}
\lipsum[1-3]
\section{Last section}
\lipsum[4]
\end{document}
Niranjan
  • 3,435
  • Thank you for taking the time to answer my questions. How can I switch it to something like this: first page, last page, back, forward. Instead of having the buttons stacked on top of each other? – user92127 Feb 19 '20 at 17:05