Ajustar el tamaño vertical de los términos que contienen \sqrt con subíndice y superíndice

Ajustar el tamaño vertical de los términos que contienen \sqrt con subíndice y superíndice

En el segundo \sqrt,

ingrese la descripción de la imagen aquí

ambosel subíndice y el superíndice son \smashed:

a_{\smash{0}}^{\smash{2}

Sin embargo, ¿ sqrtson de diferentes tamaños?

¿Cómo consigo que el segundo \sqrttenga el tamaño vertical exacto del primero?

Notas:

  • El tikzdibujo es sólo para mostrar que los dos \sqrtson de diferente tamaño.
  • nodesea ajustar el tamaño del primero \sqrtpara que coincida con el segundo.

Código:

\documentclass{article}
\usepackage{amsmath}
\usepackage{tikz}% <--- ONLY to show that the symbols are of different size

\newcommand{\MyTikzMark}[2]{%
    \tikz[baseline,remember picture] \node[anchor=base,inner sep=0pt] (#1) {$\displaystyle#2$};%
}%

\begin{document}
\[
    \MyTikzMark{Left Marker}{\sqrt{\overline{q}}} \sqrt{\overline{q}a_{\smash{0}}^{\smash{2}}}
\]
\begin{tikzpicture}[remember picture, overlay, dotted]
    \draw [red] ([shift={(-2ex,-1pt)}]Left Marker.north) -- ++(10.0ex,0);
    \draw [red] ([shift={(-2ex,+0pt)}]Left Marker.south) -- ++(10.0ex,0);
\end{tikzpicture}%
\end{document}

Respuesta1

hacerobtenga el mismo signo de raíz cuadrada; Al contrario de lo que se cree, TikZ entra en escena. Sin embargo, debes destruir todos los contenidos nuevos.

\documentclass{article}
\usepackage{amsmath}

\usepackage{tikz}% <--- ONLY to show that the symbols are of different size

\newcommand{\MyTikzMark}[2]{%
    \tikz[baseline,remember picture] \node[anchor=base,inner sep=0pt] (#1) {$#2$};%
}%


\begin{document}
\begin{gather*}
\sqrt{\overline{q}} \sqrt{\overline{q}\smash{a_{0}^{2}}}
\\
\MyTikzMark{Left Marker}{\displaystyle\sqrt{\overline{q}}}
\sqrt{\overline{q}\smash{a_{0}^{2}}}
\\
\MyTikzMark{Left Marker B}{\sqrt{\overline{q}}}
\textstyle\sqrt{\overline{q}\smash{a_{0}^{2}}}
\end{gather*}
\begin{tikzpicture}[remember picture, overlay, dotted]
    \draw [red] ([xshift=-2ex]Left Marker.north) -- ++(10.0ex,0);
    \draw [red] ([xshift=-2ex]Left Marker.south) -- ++(10.0ex,0);
    \draw [red] ([xshift=-2ex]Left Marker B.north) -- ++(10.0ex,0);
    \draw [red] ([xshift=-2ex]Left Marker B.south) -- ++(10.0ex,0);
\end{tikzpicture}

\end{document}

ingrese la descripción de la imagen aquí

información relacionada