我尝试了一下这样的代码:
\documentclass{ctexart}
\usepackage{tcolorbox}
\usepackage{wrapstuff}
\begin{document}
简单说一下勾股定理.
\begin{wrapstuff}[r]
\includegraphics[width=0.45\linewidth]{example-image.pdf}
\end{wrapstuff}
我们定义直角三角形的两条直角边为 $a$, $b$ 而斜边为 $c$,
那么有
\[ a^2 + b^2 = c^2. \]
如果设 $a=3$, $b=4$, 那么容易求出 $c=5$.
\begin{tcolorbox}[width=0.45\linewidth]
古代有``勾三股四弦五''的说法.
\end{tcolorbox}
\end{document}
问 关于wrapstuff宏包在文本中出现嵌套其他环环境时会报错的问题