最终的 PDF 没有致谢、摘要、概要、表格和图表列表的链接。
\documentclass[12pt,a4paper]{scrartcl}
\usepackage{tocloft}
\usepackage{hyperref}
\usepackage{cleveref}
\begin{document}
\section*{Acknowledgement}
\section*{Abstract}
\section*{Zusammenfassung}
\clearpage
\tableofcontents
\newpage
\addcontentsline{toc}{section}{\protect\numberline{}{Acknowledgement}}
\listoffigures
\newpage
\addcontentsline{toc}{section}{\protect\numberline{}{Abstract}}
\listoftables
\newpage
\addcontentsline{toc}{section}{\protect\numberline{}{Zusammenfassung}}
\addcontentsline{toc}{section}{\protect\numberline{}{Table of Contents}}
\addcontentsline{toc}{section}{\protect\numberline{}{List of Figures}}
\addcontentsline{toc}{section}{\protect\numberline{}{List of Tables}}
\newpage
\pagenumbering{arabic}
THIS IS TEXT OF ZUSAMMEFASSUNG: Lorem ipsum dolor sit amet, consetetur
\clearpage
\tableofcontents
\newpage
\addcontentsline{toc}{section}{\protect\numberline{}{Acknowledgement}}
\listoffigures
\newpage
\addcontentsline{toc}{section}{\protect\numberline{}{Abstract}}
\listoftables
\newpage
\addcontentsline{toc}{section}{\protect\numberline{}{Zusammenfassung}}
\addcontentsline{toc}{section}{\protect\numberline{}{Table of Contents}}
\addcontentsline{toc}{section}{\protect\numberline{}{List of Figures}}
\addcontentsline{toc}{section}{\protect\numberline{}{List of Tables}}
\newpage
\pagenumbering{arabic}
\section{Introduction}
TEXT INTRO: Lorem ipsum dolo
\end{document}
答案1
加倍是\addcontentsline
没用的,而且它们处于错误的位置,正如 Heiko Oberdiek 在他的评论中指出的那样。
我认为,\numberline
使用不当,应该在\clearpage
章节后面。
toc
等条目本身可以通过开箱即用的包装 ToC
来获得。tocbibind
\documentclass[12pt,a4paper]{scrartcl}
\usepackage{tocbibind}
%\usepackage{tocloft}
\usepackage{blindtext}
\usepackage{hyperref}
\usepackage{cleveref}
\begin{document}
\addcontentsline{toc}{section}{Acknowledgement}
\section*{Acknowledgement}
\blindtext[5]
\clearpage
\phantomsection
\addcontentsline{toc}{section}{Abstract}
\section*{Abstract}
\clearpage
\phantomsection
\addcontentsline{toc}{section}{Zusammenfassung}
\section*{Zusammenfassung}
\clearpage
\tableofcontents
\clearpage
\listoffigures
\clearpage
\listoftables
\clearpage
\pagenumbering{arabic}
THIS IS TEXT OF ZUSAMMEFASSUNG: Lorem ipsum dolor sit amet, consetetur
\pagenumbering{arabic}
\section{Introduction}
TEXT INTRO: Lorem ipsum dolo
\begin{figure}
\caption[Dummy figure]{Dummy figure content}
\end{figure}
\begin{table}
\caption[Dummy table]{Dummy table content}
\end{table}
\end{document}