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}

相關內容