Mathematik im Titel in Tcolorbox

Mathematik im Titel in Tcolorbox

Ich schreibe ein Skript, um ein Mathematica-Notizbuch mit Tcolorbox in Latex zu emulieren.

es scheint vollkommen in Ordnung zu sein, solange ich kein Gleichheitszeichen im Titel habe. Wenn ich das tue, bricht es ab

\begin{tcolorbox}[title=$a=b$,title filled]
\(a=5\)
\end{tcolorbox}

Antwort1

Du brauchst Klammern:

\documentclass{article}

\usepackage{tcolorbox}

\begin{document}
\begin{tcolorbox}[title={$a=b$},title filled]
\(a=5\)
\end{tcolorbox}
\end{document}

Bildbeschreibung hier eingeben

verwandte Informationen