I'm using memoir, when I use \chapter*
the header is copied from the previous section.
How can I fix that?
MWE:
\documentclass{memoir}
\usepackage{lipsum}
\setcounter{secnumdepth}{3}
\copypagestyle{ruledsmallhd}{ruled}
\makeevenhead{ruledsmallhd}{\footnotesize\scshape\leftmark}{}{}
\makeoddhead{ruledsmallhd}{}{}{\footnotesize\scshape\rightmark}
\makeheadrule{ruledsmallhd}{0px}{0px}
\begin{document}
\pagenumbering{roman}
\pagestyle{ruledsmallhd}
\cleardoublepage
\maxtocdepth{subsection}
\tableofcontents
\cleardoublepage
\chapter*{Introduction}
\addcontentsline{toc}{chapter}{Introduction}
\lipsum
\end{document}
\frontmatter
and\mainmatter
. Is there any reason why the Introduction should not be in the TOC? Using\frontmatter
disables numbering and `\chapter{Introduction} will be in the ToC automatically, no need for tricks\frontmatter
\mainmatter
works just fine in this particular case.