Error Message !!
When I generate the file for the first there wasn't any error,but when I do that again it give me the following error :
Code: Select all
\contentsline {chapter}{Title Page}{i}
\vskip -10pt\relax
\contentsline {chapter}{Committee Members}{ii}
\vskip -10pt\relax
\contentsline {chapter}{Dedication}{iii}
\vskip -10pt\relax
\@tempskipb -10pt\relax \vskip -\lastskip \vskip \@tempskipb
\contentsline {chapter}{Acknowledgments}{iv}
\contentsline {chapter}{Contents}{v}
\vskip -10pt\relax
\contentsline {chapter}{Abstract}{vi}
\GenericError { }{LaTeX Error: Something's wrong--perhaps a missing \item }{See the LaTeX manual or LaTeX Companion for explanation.}{Try typing <return> to proceed.\MessageBreak If that doesn't work, type X <return> to quit.}
\contentsline {chapter}{Introduction}{vii}
\contentsline {chapter}{\numberline {I}Preliminaries}{1}
\contentsline {section}{\numberline {I.1}Modules,R-Module Homomorphisms and Exact Sequences}{1}
\contentsline {chapter}{\numberline {II}Regular and Unit Regular Rings}{3}
\contentsline {section}{\numberline {II.1}Regular Rings}{3}
\contentsline {chapter}{Bibliography}{5}
\contentsfinish
The codes for my TEST file is :
Code: Select all
\documentclass[11pt,a4paper]{report}
\usepackage[pdftex]{graphicx}
\usepackage{amssymb,latexsym,amsmath,mathrsfs,fullpage,array,ifsym,color}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{-50\p@}% default: 50pt
{\parindent \z@ \centering \normalfont% default: \raggedright
\ifnum \c@secnumdepth >\m@ne
\huge\bfseries \@chapapp\space \thechapter
\par\nobreak
\vskip 0\p@% default: 20\p@
\fi
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\def\@makeschapterhead#1{%
\vspace*{-50\p@}% default: 50pt
{\parindent \z@ \centering% default: \raggedright
\normalfont
\interlinepenalty\@M
\Huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\makeatother
\renewcommand{\bibname}{References}
\setlength{\parskip}{3ex}
\begin{document}
\pagenumbering{roman}
\thispagestyle{empty}
\addcontentsline{toc}{chapter}{Title Page}
\addtocontents{toc}{\addvspace{-10pt}}
**********************************
---Here is the text for title page
**********************************
\newpage
\addcontentsline{toc}{chapter}{Committee Members}
\addtocontents{toc}{\addvspace{-10pt}}
**********************************
---Here is the text Committee Members
**********************************
\chapter*{Dedication}
\addcontentsline{toc}{chapter}{Dedication}
\addtocontents{toc}{\addvspace{-10pt}}
**********************************
---Here is the text for Dedication
**********************************
\chapter*{Acknowledgment}
\addcontentsline{toc}{chapter}{Acknowledgment}
\addtocontents{toc}{\addvspace{-10pt}}
**********************************
---Here is the text for Acknowledgement
**********************************
\setlength{\parskip}{-0.2em}
\tableofcontents
\addcontentsline{toc}{chapter}{Contents}
\addtocontents{toc}{\addvspace{-10pt}}
\newpage
\setlength{\parskip}{3ex}
\addcontentsline{toc}{chapter}{Abstract}
\addtocontents{toc}{\addvspace{-10pt}}
**********************************
---Here is the text for Abstract
**********************************
\newpage
\addcontentsline{toc}{chapter}{Introduction}
\addtocontents{toc}{\addvspace{-10pt}}
**********************************
---Here is the text for Introduction
**********************************
:
:
:
Here is chapters
:
:
\addcontentsline{toc}{chapter}{References}
**********************************
---Here is the text for Bibliography
**********************************
\end{document}
I deleted all line of addcontentsline and addtocontent, but the problem still in the file, when I delete \tableofcontents, every becomes O.k.
BTW, I tried to close the file and open again, but nothing more ERROR
Where is the problem ??
Thank you