I use the memoir
class to typeset my documents. This class also allows the easy addition of a glossary to those documents. However, the default pagestyle for the glossary is plain
. I want to change the pagestyle to the style that I have defined myself and that I have set as the pagestyle for the document using \pagestyle{myheadings}
. How can I achieve this feat? An MWE is included below.
\documentclass[twoside,article]{memoir}
\usepackage{authoraftertitle}
\title{foo bar}
\makeindex
\makeglossary
\makepsmarks{myheadings}{%
\createplainmark{glossary}{both}{\glossaryname}
}
\makeevenhead{myheadings}{\textsf\thepage}{}{\textsc{\textsf\MyTitle}}
\makeoddhead{myheadings}{\textsc{\textsf\MyTitle}}{}{\textsf\thepage}
\pagestyle{myheadings}
\begin{document}
\glossary{foo}{bar}
\printglossary
\end{document}