TransWikia.com

Spacing under square root

TeX - LaTeX Asked by Ron LaHire on June 13, 2021

How can I remove space automatically added above expression under square root when I write for examplesqrt{k^2_t-k^2}. In fractionfrac{sqrt{k^2_t-k^2}}{1} there isn’t this type of space.

enter image description here

One Answer

When TeX is in display-math mode, the numerator and denominator of a fraction are rendered in text style. If you want to apply text style to other material in a display-math environment, you need to provide the directive textstyle explicitly.

enter image description here

documentclass{article} 
begin{document}
[ % start an unnumbered display math group
sqrt{k^2_t-k^2} qquad
{textstylesqrt{k^2_t-k^2}} qquad
frac{sqrt{k^2_t-k^2}}{1}
]
end{document}

Addendum to address a follow-up comment by @mavzolej, who claims that inserting the textstyle instruction doesn't "work" if the expression inside the square root term contains langle (and rangle too, presumably). Unfortunately, he/she didn't provide compilable code to demonstrate the correctness of the claim. For sure, changing sqrt{k^2_t-k^2} to sqrt{langle k^2_t-k^2rangle} does not imply that imposing textstyle won't succeed in reducing the overall size of the square root term:

enter image description here

documentclass{article}
newcommandstuff{sqrt{langle k^2_t-k^2rangle}}
begin{document}
$displaystylestuff quadmbox{vs.}quad textstylestuff$
end{document}

Correct answer by Mico on June 13, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP