Suddenly I am having trouble compiling my latex into pdf. I use Winedt, and it gives me an error at \newpage just after \tableofcontents. If i delete \newpage its just the next line, there's an error in, so I think there something wrong with the toc.
The code is as following:
Code: Select all
...
\newpage
\setcounter{tocdepth}{3} % Define that the TOC only shows two levels
%\setcounter{secnumdepth}{3}
\tableofcontents % Generate the TOC
\newpage % Begin a new page after the TOC
\setcounter{page}{1} % Define the first content page as page one
\pagenumbering{arabic}
...
Can anyone tell me why it doesn't work?