Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to change the page style for the index, but I can't find out why that does only become effective on page 2 of the index:

\documentclass{memoir} 
\usepackage{kantlipsum} 

\makepagestyle{index} 
  \makeheadrule{index}{\textwidth}{\normalrulethickness} 
  \makeevenhead{index}{\rightmark}{}{\leftmark} 
  \makeoddhead{index}{\rightmark}{}{\leftmark} 
  \makeevenfoot{index}{Index - \thepage}{even}{even} 
  \makeoddfoot{index}{odd}{odd}{Index - \thepage} 

\makeindex 
\begin{document} 
\chapter{One} 
\kant[1-5] 
\newcount\ind\ind=1\loop\index{\the\ind}\advance\ind1\ifnum\ind<400\repeat 
\clearpage 
\pagestyle{index} 
\printindex 
\end{document} 

Page 3 of the output show a centered 3 instead of: odd odd Index - 3

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

I believe \printindex does the equivalent of a chapter start, so the first page is in chapter style.

The best way to fix this, I think, is to set an alias for the chapter pagestyle:

\clearpage 
\aliaspagestyle{chapter}{index}
\pagestyle{index} 
\printindex 
share|improve this answer
    
This works indeed, thanks! - does it mean that there is a bug in memoir? –  Wybo Dekker Oct 26 '13 at 18:53
    
No, it's working as designed - the first page of every chapter uses the pagestyle alias named 'chapter', and you can force uniformity by aliasing it to whatever suits your case. It may help to take a look at sections 7.2 and 7.3 of the memoir manual? –  Brent.Longborough Oct 26 '13 at 19:11
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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