答案1
\vspace*{\fill}
在 之前和之後添加\tableofcontents
,以及\newpage
在第二個之後添加 a\vspace*{\fill}
是實現此目的的簡單方法:
\documentclass{article}
\begin{document}
% May also want \newpage here (e.g. if title page before toc)
\vspace*{\fill}
\tableofcontents
\vspace*{\fill}
\newpage % Page break between toc and first section
\section{Introduction}
\section{Abstract Algebra}
\section{p-adic numbers}
\section{Concept}
\section{Algebraic Closure}
\end{document}
如程式碼所述,如果目錄之前有內容(例如標題頁),您還需要一個\newpage
前首先\vspace*{\fill}
。
輸出: