1

In the project I was making with the memoir class, I made a page style named CCSL derived from plain pagestyle.

\documentclass[extrafontsizes,11pt,twocolumn,openany,openbib]{memoir}
\copypagestyle{CCSL}{plain}
\makeevenhead{plain}{\thepage}{}{\bfseries\leftmark}
\makeoddhead{plain}{\bfseries DOCUMENT TITLE}{}{\thepage}
\makeevenfoot{plain}{}{}{}
\makeoddfoot{plain}{}{}{}

\begin{document}
\onecolumn
\pagestyle{empty}{\color{white}a}
\par\vspace{0.35\textheight}
{\centering\noindent{\scshape\HUGE\textbf{DOCUMENT TITLE}}\linebreak
\large{SOME TEXT}\\
\large{SOME TEXT}
\par\vspace{3\baselineskip}
\noindent\LARGE\bfseries {SOME TEXT}\\}
\clearpage
\tableofcontents
\twocolumn

\pagestyle{CCSL}
\chapter*[SOME CHAPTER]{SOME CHAPTER}
.
.
.
\end{document}

As you can see from my code, I used the empty pagestyle for the self-made title page and the table of contents page, and then I applied the CCSL pagestyle to the rest of the document. However, the setting of empty pagestyle only worked to the self-made title page and not with the ToC page, and weirdly, it adapted the pagestyle that was set after \tableofcontents. I tried using \thispagestyle{empty} for the ToC page but it did nothing. I also tried putting \pagestyle{empty} immediately before the \tableofcontents, but it had the same effect.

1

You could redefine memoir's \aftertoctitle macro as follows:

\renewcommand{\aftertoctitle}{%
   \thispagestyle{empty}
   \afterchaptertitle}

Repeat, if needed, for \afterloftitle and \afterlottitle.

See also p. 148 of the memoir user guide.

0

Add this to your preamble:

\addtocontents{toc}{\protect\thispagestyle{empty}}

Aside: why did you use {\color{white}a}?

This works for me:

\documentclass[extrafontsizes,11pt,twocolumn,openany,openbib]{memoir}
\copypagestyle{CCSL}{plain}
\makeevenhead{plain}{\thepage}{}{\bfseries\leftmark}
\makeoddhead{plain}{\bfseries DOCUMENT TITLE}{}{\thepage}
\makeevenfoot{plain}{}{}{}
\makeoddfoot{plain}{}{}{}

\addtocontents{toc}{\protect\thispagestyle{empty}}

\begin{document}
\onecolumn
\pagestyle{empty}
\par\vspace{0.35\textheight}
{\centering\noindent{\scshape\HUGE\textbf{DOCUMENT TITLE}}\linebreak
\large{SOME TEXT}\\
\large{SOME TEXT}
\par\vspace{3\baselineskip}
\noindent\LARGE\bfseries {SOME TEXT}\\}
\clearpage
\tableofcontents
\twocolumn

\pagestyle{CCSL}
\chapter*[SOME CHAPTER]{SOME CHAPTER}

\end{document}
  • 1
    To a casual observer, the difference from Acnologia's MWE is not obvious. Perhaps you could add a small description of what you changed. – ChrisS May 25 '14 at 8:40
  • I've edited my answer. – SLx64 May 25 '14 at 9:29
  • @SLx64 - Thanks for the answer! I did not thought of the \addtocontents command! For the other question, I used {\color{white}a} to center the document title and the following texts, because I found out that without a preceding text, all the spaces I try to implement will not take into effect. As a follow-up question, can I ask why is it that the ToC is not affected by the pagestyle I had set? – Acnologia May 25 '14 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.