链接至目录

链接至目录

如何超链接到目录中的链接?请参阅下面突出显示的部分作为示例。

\documentclass{book}
\usepackage{lipsum}
\usepackage{hyperref}

\begin{document}

\tableofcontents\label{toc}

\chapter{Chapter One}
\section{First}
\lipsum[1-50]

\section{Second}
\lipsum[1-50]


\chapter{Chapter Second}
\section{First}
\lipsum[1-50]

\section{Second}
\lipsum[1-50]


%%%
\section{Third}
\hyperref[??]{link} %%%%%% Link to Chapter 2.3 in Table of Contents 
%%%
\hyperref[toc]{ToC} %%%%% This is not enough as it links to the Table of Contents, not the particular link I want

\end{document}

相关内容