Using = in tcolorbox title parameter

tcolorbox

I have found I am unable to use an equals sign in the titles of tcolorboxes.

\begin{tcolorbox}[title=foo\=bar]
\end{tcolorbox}

enter image description here

Using a normal equals sign messes with the parameter syntax, and using \={} causes it to be a high horizontal line over any subsequent character.

Is there any way to make it show an equals sign correctly?

Best Answer

\= is a macron accent command. In common with most other commands taking a key-value list, you can use braces to hide commas or equals signs in a value, so

 title={foo=bar} 
Related Question