0

The little hand that appears in my screenshot does not work in my document the same way. It only works when you place the little hands over the numbers. How can I fix it?

enter image description here

MWE:

\documentclass{book}
\usepackage{hyperref}
\usepackage{xcolor}
\usepackage[titles]{tocloft}

\usepackage{minitoc}

\usepackage{theorem}

\newtheorem{theorem}{Theorem}

\hypersetup{
        colorlinks=true,
        linkcolor=blue,
        filecolor=blue,      
        urlcolor=blue,
        citecolor=red,
        linktoc=page
        %pdfpagemode=FullScreen,
    }

\begin{document}
\dominitoc

\frontmatter

\tableofcontents

\mainmatter
\chapter{This is the first chapter}

{\hypersetup{linkcolor=black}
\minitoc
}

\section{section}
This is a citation~\cite{ref1}. Theorem~\ref{thm1} provides some interesting information.
\begin{theorem}\label{thm1}
    Rain gets you wet.
\end{theorem}
\section{section}
\section{section}

\bibliographystyle{alpha}

\begin{thebibliography}{Smi19}

    \bibitem[Smi19]{ref1}
    John Smith.
    \newblock Citing in red.
    \newblock {\em Journal of Hyperlink Colors}, 2019.

\end{thebibliography}

\end{document}
1
  • 1
    Try to comment linktoc=page – flav Nov 6 '19 at 5:38
1

As per your code, link came for page numbers in MiniTOC, if you need the link for text, then please remove the tag linktoc=page from your setup (as already this was advised by flav)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.