In my TOC, on pages where there chapter titles listed, the page header needs to contain the word "CHAPTER". However, on pages where only appendix titles are listed, the TOC header needs to read "APPENDIX." Is it possible to change the header midway through the TOC like this? I am using the memoir class.
update: I should have mentioned I am using a style package provided by my school. I'll give a MWE that is based on that style file and also give the relevant-seeming passage from the style file as well. First the MWE:
\documentclass[oneside,12pt]{memoir}
\setsecnumdepth{subsection}
\maxtocdepth{subsection}
\usepackage{appendix}
\usepackage{pwasu}
\begin{document}
\DoubleSpacing
\pagestyle{plain}
\frontmatter
\tableofcontents
\listoftables
\listoffigures
\mainmatter
\pagestyle{plain}
\addtocontents{toc}{\noindent\normalfont{CHAPTER}\par}
\chapter{Chapter the Next}
\chapter{Chapter the Next}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\chapter{Chapter the Next}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\chapter{Chapter the Next}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\chapter{Chapter the Next}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\section{My Next Section}
\subsection{And another subsection}
\subsection{And another subsection}
\subsection{And another subsection}
\addtocontents{toc}{\noindent\normalfont{APPENDIX}\par}
\appendix
\chapter{Now I have an appendix}
\chapter{Now I have an appendix}
\section{Appdx. section }
\section{Appdx. section }
\section{Appdx. section }
\chapter{Now I have an appendix}
\section{Appdx. section }
\section{Appdx. section }
\section{Appdx. section }
\chapter{Now I have an appendix}
\section{Appdx. section }
\section{Appdx. section }
\section{Appdx. section }
\chapter{Now I have an appendix}
\section{Appdx. section }
\section{Appdx. section }
\section{Appdx. section }
\end{document}
And here's the bit from the style file that needs to be different for toc pages that contain only appendix titles:
\makepagestyle{toc}
\makeevenfoot{toc}{}{\thepage}{}
\makeoddfoot{toc}{}{\thepage}{}
\makeevenhead{toc}{CHAPTER}{}{Page}
\makeoddhead{toc}{CHAPTER}{}{Page}
So when this document is created, the problematic area is the header of the last page of the toc, which should read APPENDIX instead of CHAPTER (I don't know why that header overlaps the top line of the toc in this MWE, but it doesn't happen in my real document so this is probably not important).