In the second \sqrt
,
both the subscript and superscript are \smash
ed:
a_{\smash{0}}^{\smash{2}
Yet, the sqrt
are of different sizes?
How do I get the second \sqrt
to be the exact vertical size of the first?
Notes:
- The
tikz
drawing is only to show that the two\sqrt
are of different size. - I do not want to adjust the size of the first
\sqrt
to match the second.
Code:
\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}
2
or (b) become a tangent line to the upper curve of the numeral2
? – Mico Apr 29 '17 at 9:02\sqrt
to ignore the height/depth of the superscript/subscript. – Peter Grill Apr 29 '17 at 9:07\MyTikzMark
that is used to set the first\sqrt
is in\textstyle
while the other\sqrt
is in\displaystyle
. Try to add\displaystyle
to\MyTikzMark
. Or add\sqrt{\overline{q}a_{0}^{2}}
as a third version. – StefanH Apr 29 '17 at 9:16