我正在尝试编译这个文件:
\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
?
我该怎么办?谢谢你的建议!