我怎样才能使超链接仅限于此目录中的实际文本,同时保留外观?(我意识到这个结果是我用来使条目变成多行的方法的明显结果,但我不知道实现外观的其他方法。)
\documentclass[a5paper, oneside, 11pt]{memoir}
\usepackage{hyperref}
\usepackage{bookmark}
\usepackage{fmtcount}
% Part
\cftpagenumbersoff{part}
\renewcommand\cftpartfont{\par\centering}
\renewcommand{\thepart}{\arabic{part}}
\renewcommand\partnumberline[1]{{\Ordinalstringnum{#1}}~\partname\par}
\renewcommand\cftpartfont{\par\bfseries\centering}
\setlength{\cftbeforepartskip}{-.5\baselineskip plus 12pt minus 3pt}% Compensate for adding a \par in \cftpartfont
\makeatletter
\patchcmd\l@part{%
\cftpartfont {#1}%
}{%
\cftpartfont {#1}\par%
}{\typeout{l@part patched}}{\typeout{l@part patch failed}}
\makeatother
\renewcommand\cftpartafterpnum{\vspace{0\baselineskip}}% Compensate for strange skip following part entries
% Chapter
\renewcommand*{\cftchapterfont}{\par\centering}
\renewcommand{\chapternumberline}[1]{{\itshape{\Ordinalstringnum{#1}~\chaptername}}\par}
\renewcommand{\cftchapterfillnum}[1]{\space---\space#1\par}
\setlength{\cftbeforechapterskip}{-.5\baselineskip plus 12pt minus 3pt}% Compensate for adding a \par in \cftchapterfont
\makeatletter
\patchcmd\l@chapapp{%
{\cftchapterfont {#1}}%
}{%
\par\cftchapterfont {#1}%
}{\typeout{l@part patched}}{\typeout{l@part patch failed}}
\makeatother
\begin{document}
\frontmatter
\tableofcontents*
\chapter{Introduction}
\chapter{Preface}
\mainmatter
\part{The Beginning}
\chapter{Where It All Began}
\chapter{Some More Beginning}
\part{The Unbelievably Excrutiatingly Frustratingly Long Middle}
\chapter{And It Just Keeps Going and Going and Going and Going and Going}
\part{The End}
\chapter{Starting To Wrap Up}
\chapter{The Insightful Conclusion}
\backmatter
\bookmarksetup{startatroot}
\chapter{Some Notes}
\end{document}
这是回忆录:两行居中部分,目录中有序数部分编号我用过的地方答案以及答案如何使用回忆录使目录中的索引引用居中对齐并调整字体?以及我自己的一些小改动。