2

For some reason I cannot set the headers in capital letters with the following code:

\documentclass[11pt,twoside]{book}
\usepackage{titleps}
\newpagestyle{Brill}[]{
\sethead[\thepage][\chaptertitle][]
{}{\chaptertitle}{\thepage}
\setheadrule{0pt}}

\pagestyle{Brill}


\begin{document}

\chapter{chapter 1}

I'm the fairest of them all.
\newpage
I'm the fairest of them all.
\newpage
I'm the fairest of them all.
\end{document}
  • 2
    \MakeUppercase\chaptertitle? – user11232 Aug 10 '15 at 13:24
  • Doesn't seem to work. – Guillaume Coatalen Aug 10 '15 at 13:50
  • It is not enough feedback ;-). It works for me though. – user11232 Aug 10 '15 at 13:51
  • Where do you put this in the code? – Guillaume Coatalen Aug 10 '15 at 13:54
  • \sethead[\thepage][\MakeUppercase\chaptertitle][] {}{\MakeUppercase\chaptertitle}{\thepage} – user11232 Aug 10 '15 at 13:57
1

Although you could use \MakeUppercase, as suggested in comments, it's safer to load the textcase package and use \MakeTextUppercase instead (in case, eventual math contents or \refs or \cites go in the title):

\documentclass[11pt,twoside]{book}
\usepackage{titleps}
\usepackage{textcase}

\newpagestyle{Brill}[]{%
  \sethead[\thepage][\MakeTextUppercase{\chaptertitle}][]
          {}{\MakeTextUppercase{\chaptertitle}}{\thepage}%
  \setheadrule{0pt}%
}

\pagestyle{Brill}

\begin{document}

\chapter{A test chapter}
I'm the fairest of them all.
\newpage
I'm the fairest of them all.
\newpage
I'm the fairest of them all.

\end{document}

An image of the result, showing the header:

enter image description here

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.