答案1
您可能会喜欢tcbhighmath
以下tcolorbox
套装:
以下是完整的 MWE:
% arara: pdflatex
\documentclass{article}
\usepackage[most]{tcolorbox}
\begin{document}
\[
\tcbhighmath[frame hidden,colback=white,enhanced,overlay unbroken={%
\draw[thick,red,double] (interior.north east)--(interior.south east)--(interior.south west);
},]{x=3}
\]
\end{document}
当然,你可能更喜欢使用类似的东西:
\tcbset{Panha/.style={frame hidden,colback=white,enhanced,overlay unbroken={%
\draw[thick,red,double] (interior.north east)--(interior.south east)--(interior.south west);}}}
在您的序言中,以便您可以\tcbhighmath[Panha]{x=3}
在文档中简单地使用,例如:
% arara: pdflatex
\documentclass{article}
\usepackage[most]{tcolorbox}
\tcbset{Panha/.style={frame hidden,colback=white,enhanced,overlay unbroken={%
\draw[thick,red,double] (interior.north east)--(interior.south east)--(interior.south west);}}}
\begin{document}
\[
\tcbhighmath[Panha]{x=3}
\]
\end{document}