2

I am using the Lenny chapter style from fncychap and I would like to change the colour of the chapter number. I found "How do you change the font when using fncychap?" and followed the recommendations there to produce:

\documentclass[12pt]{book}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\usepackage[Lenny]{fncychap}
\ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont\color{blue}}
\begin{document}
\chapter{Title}
Lorem ipsum
\end{document}

This almost works, but has the unfortunate side-effect of changing the colour of the box too. Does anyone have an idea of how to fix that?

2

Use \textcolor rather than \color:

\documentclass[12pt]{book}
\usepackage{xcolor}
\usepackage[T1]{fontenc}
\usepackage[Lenny]{fncychap}
\ChNumVar{\fontsize{60}{62}\usefont{OT1}{ptm}{m}{n}\selectfont\textcolor{blue}}
\begin{document}
\chapter{Title}
Lorem ipsum
\chapter{Another Title}
Lorem ipsum
\end{document}

enter image description here

  • Wonderful! Simple and works perfectly. – CPLB Jun 28 '13 at 9:28

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.