答案1
此解決方案使用 tikz 來繪製氣泡。氣泡包含在對齊中而不是重疊。
如果您打算經常這樣做,您可以嘗試尋找或建立 tikz「形狀」。
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathstyle}% for \currentmathstyle
\usepackage{tikz}
\makeatletter
\newcommand{\mymathbox}[1]{%
\tikz[baseline=(temp.base)]{%
\node(temp){$\m@th\currentmathstyle#1$};
\draw (temp.south)+(2pt,0pt) -- +(0pt,-1ex) -- +(-2pt,0pt)% all offsets from (temp.south)
[rounded corners] -- (temp.south west) -- (temp.north west) -- (temp.north east) -- (temp.south east)
[sharp corners] -- cycle;
}%
}
\makeatother
\begin{document}
\begin{equation*}
\mymathbox{\frac{d}{dt}I(t)} = \frac{d}{dt}I(t)
\end{equation*}
\end{document}