I'm having a strange problem.

In my code I have

\tableofcontents
\input{./path/to/my/other/texfile.tex}


My summary is well generated, but the rest of the file, which looks like this:

\chapter*{A Chapter of Definitions}

%\singlespacing

\section*{A Section}

Some text.

\begin{enumerate}
\item \textbf{Name of list}
\begin{enumerate}
\item \textbf{First item:} Text.
...


appears in my dvi with the header SUMMARY, but this file didn't belong to the summary. What's the problem? How can I fix it?

My messy main.tex is in this link in pastebin.

-
You should also mention the class you're using. However the problem is that \chapter* doesn't set the headers. Some more information is needed: is this the only unnumbered chapter? –  egreg Nov 6 '11 at 21:40
I'm using \documentclass[a4paper,12pt,fleqn,oneside,openright]{book} I have some chapters unnumbered before, but after, this is the only one. After it I have numbered chapters, the first is my introduction. I added a link to my main file in pastebin, please take a look =). –  GarouDan Nov 6 '11 at 21:50

Starred sectioning commands don't set header marks, that's why the previous marks still appear. Depending on class, header layout and used header package, you could use \markboth and perhaps also \markleft yourself, such as

\chapter*{A Chapter of Definitions}
\section*{A Section}
\markboth{A Chapter of Definitions}{A Section}


or \chaptermark and \sectionmark, if they are defined, such as

\chapter*{A Chapter of Definitions}
\chaptermark{A Chapter of Definitions}
\section*{A Section}
\sectionmark{A Section}


Without concrete code, this is just general advice.

-
Hum this worked well, appeared A Section in my dvi of \chapter*{A Chapter of Definitions} and this I think it's fine. Thanks. –  GarouDan Nov 6 '11 at 22:15
Hi Stefan, some idea on the question below? How to get rid of "0. A Section" in the header. I just want "A Section" –  LaRiFaRi Nov 6 '13 at 20:28

I used your solution and It worked fine, but now my section appears as header mark with 0.0 in front. Do you know how can I remove it? Thank you!

-