How would one modify memoir
s madsen
chapter style for the index so that on the first page of the index, the title "Index" would appear above the usual start-of-chapter rule?
Example source:
% file indexpageone.tex
\documentclass{memoir}
\usepackage{graphicx} % need for madsen chapter style
\begin{filecontents}{indexpageone.ist}
headings_flag 1
\end{filecontents}
\chapterstyle{madsen}
\renewcommand*{\printchapternum}{\chapnumfont \space\thechapter\space}
\copypagestyle{indexfirstpage}{madsen}
%% NOW WHAT??
\makeindex
\begin{document}
\chapter{One}
apple\index{apple}, bag\index{bag},
\newpage
color\index{color}, dog\index{dog}.
\backmatter
\printindex
\end{document}
The (top parts of) the first page of the chapter and the first page of the index look like this:
Thus on the index first page, the "INDEX" title should move above the rule, staying in the font size, etc., it already has; and no title should appear directly below the rule.
Since I want to do the same thing with the first page of a separate index of names and a separate index of notation, the modification would, I presume, somehow referencing the current value of \indexname
.
I did examine the definition of page style madsen
in memoir.sty
to try to see just what determines that the "Chapter"name and chapter number are placed above the rule, and the chapter title below, but I'm out of my depth here.
Style I chose
Not having seen an answer here for some months, and in any case, I decided to go with a style that does not use any rule on the first page of starred "chapters", namely, Preface, Index, Index of Names, Index of Notation. Here's the style I cooked up (I'm using LucidaBright fonts, so of course the result will be somewhat different with other fonts:
\makeatletter
\makechapterstyle{my}{%
\renewcommand{\chapnamefont}{\sffamily\bfseries}
\renewcommand{\chapnumfont}{\fontsize{58}{64}\selectfont\sffamily\bfseries}
\renewcommand{\chaptitlefont}{\Huge\sffamily\bfseries}
%
\settoheight{\midchapskip}{\chapnumfont 1}
\setlength{\midchapskip}{0pt}
\setlength{\afterchapskip}{48pt}
%
\renewcommand{\printchaptername}{%
\chapnamefont\centering\MakeUppercase{\@chapapp}\par}
%
\renewcommand*{\printchapternum}{%
\vskip -8pt\centering \chapnumfont\thechapter} % or omit the vskip?
%
\renewcommand{\afterchapternum}{%
\par\nobreak\vskip \midchapskip%
\centering\rule{0.825\textwidth}{\normalrulethickness}%
\newline}
\renewcommand{\printchaptertitle}[1]{\centering\chaptitlefont ##1}
}% end makechapterstyle
\makeatother
\renewcommand*{\cftappendixname}{Appendix\space}
\chapterstyle{my}
madsen
(but with headers & footers suitably changed -- e.g., non-first Index pages will have in header the 1st & last index entry on that page -- which I know how do take care of. – murray Oct 2 '16 at 3:19\pagestyle
and\chapterstyle
. And inmemoir.cls
, I'm not finding definitions of starred chapters (or I don't understand exactly what I'm looking form). – murray Oct 2 '16 at 13:29