迷你目录链接不起作用

迷你目录链接不起作用

屏幕截图中出现的小手在我的文档中无法正常工作。只有将小手放在数字上时,它才会起作用。我该如何修复它?

在此处输入图片描述

梅威瑟:

\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

根据您的代码,link来自的页码MiniTOC,如果您需要文本链接,请linktoc=page从您的设置中删除标签(因为已经建议这样做flav

相关内容