![编译错误(tableofcontents,maketitle)](https://linux22.com/image/337724/%E7%BC%96%E8%AF%91%E9%94%99%E8%AF%AF%EF%BC%88tableofcontents%EF%BC%8Cmaketitle%EF%BC%89.png)
我正在尝试编译这个文件:
\documentclass[12pt, a4paper]{book}
\usepackage{doc}
\usepackage[italian]{babel}
\begin{document}
\pagestyle{headings}
\author{Me}
\title{Test}
\date{\today}
\maketitle
\tableofcontenents
\frontmatter
\section{Preface}
\section{Nomenclature}
\mainmatter
\section{Introduction}
\section{Result and discussion}
\subsection{Section}
\subsection{Another section}
\section{Conclusion}
\end{document}
但我收到这两个错误:
! Undefined control sequence.
\maketitle ...ge \global \@topnum \z@ \@maketitle
\fi \thispagestyle {titlep...
l.29 \maketitle
?
! Undefined control sequence.
l.30 \tableofcontenents
?
我该怎么办?谢谢你的建议!