LaTeX数学上划线/ overrightarrow垂直对齐?

shi*_*ino 3 latex equation

当我使用以下内容时:

\begin{equation}
\overline{d} \overline{q}
\end{equation}
Run Code Online (Sandbox Code Playgroud)

上线未对齐,q上的线低于d上的线.\ overrightarrow也会发生同样的事情.有办法解决这个问题吗?

小智 6

\ vphantom可以解决它:

\begin{equation}
\overline{d} \overline{q\vphantom{d}}
\end{equation}
Run Code Online (Sandbox Code Playgroud)

\ vphantom根据参数的高度插入垂直空间,宽度为零.