7

Trying to get all CAPS chapter titles. Using the following, only the ToC chapter title is all CAPS:

\documentclass{memoir}
\renewcommand{\chaptitlefont}{\MakeUppercase}
\begin{document}

\tableofcontents*

\chapter*{Preface}
\addcontentsline{toc}{chapter}{Preface}  

\chapter{Sample Title}

\end{document}

What does one do to get Preface, and Sample Title to be in all CAPS as well?

0

1 Answer 1

11

According to the memoir user manual, a chapter title is set via \printchaptertitle. An example of its usage and redefinition for the bringhurst chapter style (section 20.4.1 The chapter style, p 354) is:

%% Bringhurst chapter style
\makechapterstyle{bringhurst}{%
  \renewcommand{\chapterheadstart}{}
  \renewcommand{\printchaptername}{}
  \renewcommand{\chapternamenum}{}
  \renewcommand{\printchapternum}{}
  \renewcommand{\afterchapternum}{}
  \renewcommand{\printchaptertitle}[1]{%
    \raggedright\Large\scshape\MakeLowercase{##1}}
  \renewcommand{\afterchaptertitle}{%
    \vskip\onelineskip \hrule\vskip\onelineskip}
}

It's obvious how \printchapterstyle has been redefined to set the contents in lowercase. In a similar vein, you're most like after

\renewcommand{\printchaptertitle}[1]{\chaptitlefont\MakeUppercase{#1}}

Here is a complete MWE:

enter image description here

\documentclass{memoir}% http://ctan.org/pkg/memoir
\renewcommand{\printchaptertitle}[1]{\chaptitlefont\MakeUppercase{#1}}
\begin{document}

\chapter{Sample Title}

\end{document}
1
  • Thanks. Obviously, I am going to have to move my making of a compleat, documented memoir template up the priority stack.
    – WillAdams
    Nov 12, 2013 at 13:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .