\documentclass{article}
\usepackage{graphicx}
\graphicspath{ {images/}}
\title{PYTHON RANDOM TESTER (PRAT) MODULE CODE: COM3600}
\date{27/10/2015}
\author{Daniel Ayeni}
\begin{document}
\pagenumbering{roman}
\maketitle
\newpage
\begin{center}
\huge{SIGNED DECLARATION}
\end{center}
\end{document}
答案1
您需要的是\addcontentsline
允许您手动将项目添加到目录(以及图表列表和表格列表)的命令。对于您的情况:
\addcontentsline{toc}{section}{Title page}
这使得您的代码:
\documentclass{article}
\usepackage{graphicx}
\graphicspath{ {images/}}
\title{PYTHON RANDOM TESTER (PRAT) MODULE CODE: COM3600}
\date{27/10/2015}
\author{Daniel Ayeni}
\begin{document}
\pagenumbering{roman}
\addcontentsline{toc}{section}{Title page}
\maketitle
\newpage
\addcontentsline{toc}{section}{Signed declaration}
\begin{center}
\huge SIGNED DECLARATION
\end{center}
\newpage\tableofcontents
\end{document}