Jupyter 笔记本中带有 tcolorbox 的颜色框

Jupyter 笔记本中带有 tcolorbox 的颜色框

我不明白如何将带有背景颜色的框内的公式放入笔记本中。我尝试了以下方法,但无法正常工作。我犯了什么错误?谨致问候

\usepackage{tcolorbox}
\tcbuselibrary{theorems}
\begin{equation}
\tcboxmath[colback=magenta!25!white,colframe=magenta, title=Solución]
{\sum\limits_{i=1}^k P{x_i}= 1}  
\end{equation}

相关内容