How may I change only the colour of the title of a theorem, i.e. the part that appears in brackets after say, "Theorem", "Definition" etc. when using the amsthm package?
I have tried passing \color{red}
to the Theorem Head Font (see below) but this also changes the first part, that is not in brackets.
\newtheoremstyle{note}% (name)
{}% (space above)
{}% (space below)
{}% (body font)
{}% (indent amount)
{\bfseries\color{red}}% (Theorem head font)
{:}% (Punctuation after theorem head)
{.5em}% (Space after theorem head)
{}% (Theorem head spec (can be left empty, meaning ‘normal’))
To clarify, when saying
\begin{definition}[foo] an explanation \end{definition}
I would like only "foo" to be red but definition to remain as i had defined it in the theorem head font.