I am getting an Package xcolor Error: Undefined color 'RED'
if I use a red symbol in the Chapter title. In the MWE below, commenting the last \chapter
results in an error. There seems to be no problem with the Second Chapter title containing the red symbol, as the example as is below produces correct results. Problem only shows up in the subsequent chapter.
\documentclass{book}
\usepackage{xcolor}
\newcommand{\SymbolInRed}{$\textcolor{red}{\times}$}
\begin{document}
\chapter{First Chapter}
\chapter{Second Chapter\SymbolInRed}
%\chapter{Third Chapter}% Undefined color 'RED' if uncomment this.
\end{document}
I have been using this for a while now and have had not problems. I recently changed the header/footer to contain the chapter title using \leftmark
and started having this problem so thought it was related to that. But with this example I can reproduce the problem without that.
\SymbolInRed
keeps reminding me of one of my least favourite songs.