To remove from the ToC all the entries associated with \chapter* you need to redefine the \chapter@toc command implemented in mwrep.cls; the following example code includes the necessary redefinition:
\documentclass{mwrep}
\makeatletter
\renewcommand*\chapter@toc{%
\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}
\addcontentsline{toc}{chapter}{%
\ifHeadingNumbered
\protect\numberline{\mw@seccntformat{\HeadingNumber}}%
\fi
\HeadingTOCText}\fi%
\addtocontents{lof}{\protect\addvspace{10\p@}}%
\addtocontents{lot}{\protect\addvspace{10\p@}}%
}
\makeatother
\begin{document}
\tableofcontents
\chapter{c1}
\chapter{c2}
\chapter*{c3}
\end{document}
To remove from the ToC only a particular entry associated with \chapter* you could 1) use the tocvsec2 package:
\documentclass{mwrep}
\usepackage{tocvsec2}
\begin{document}
\tableofcontents
\chapter{c1}
\chapter{c2}
\chapter*{c3}
\settocdepth{part}
\chapter*{c4}
\settocdepth{section}
\end{document}
or 2) Use \addtocontents to appropriately change the value of the tocdepth counter:
\documentclass{mwrep}
\begin{document}
\tableofcontents
\chapter{c1}
\chapter{c2}
\chapter*{c3}
\addtocontents{toc}{\setcounter{tocdepth}{-1}}
\chapter*{c4}
\addtocontents{toc}{\setcounter{tocdepth}{2}}
\end{document}
chapter*excluded? This is not what I want. I corrected my question because it was misleading. – Ichibann Jul 27 '11 at 22:49\usepackage{tocvsec2}from solution 1, solution 2 worked. Unfotunately I don't have time to check every single package or setting dependency right now, so I'll stick to solution 2. – stanwise Sep 15 '12 at 21:06\chapters defined. In MyPublications there is\chapter*defined – stanwise Sep 15 '12 at 21:21\chapter*{}--\section*{}still appears in the TOC, which is weird. – Jun 22 '16 at 17:10