2

There are many questions here about increasing the height of the square root (e.g. How to adjust/increase the height of square root?), but I'd like to decrease it. Consider the following code and picture:

\sqrt{\tfrac{2 \log \left(2 n T^{2}\right)}{s}}

enter image description here

I think the exponent on the T is causing issues, so maybe lowering the exponent may help? Thanks for any help.

4
  • 2
    Don't use \left(...\right). Instead, just use (...).
    – Werner
    Jan 26, 2021 at 6:21
  • @Werner that helps a little bit, but perhaps there is a more fine-grained control that LaTeX provides over the height of the square root?
    – D.R
    Jan 26, 2021 at 6:29
  • 2
    I see nothing particularly strange when \left and \right are omitted.
    – egreg
    Jan 26, 2021 at 6:52
  • You can use \smash to ignore the extra height from the 2. E.g. \smash{2nT^2} will get rid of the tiny difference in the height of the bars after removing \left and \right.
    – Fintan
    Jan 26, 2021 at 9:43

2 Answers 2

4

I present five possibilities. The top one is your, where \left and \right are the cause for the big space.

\documentclass{article}
\usepackage{mathtools}

\begin{document}

\begin{alignat}{2}
&\text{with \texttt{\string\left...\string\right}}&\quad&
\sqrt{\tfrac{2 \log \left(2 n T^{2}\right)}{s}}
\\
&\text{without \texttt{\string\left...\string\right}}&&
\sqrt{\tfrac{2 \log (2 n T^{2})}{s}}
\\
&\text{with \texttt{\string\cramped}}&&
\sqrt{\tfrac{\cramped{2 \log (2 n T^{2})}}{s}}
\\
&\text{smashing the numerator}&&
\sqrt{\tfrac{2\smash[t]{{}\log (2 n T^{2})}}{s}}
\\
&\text{smashing and cramping the numerator}&&
\sqrt{\tfrac{2\smash[t]{{}\log (2 n \cramped{T^{2}})}}{s}}
\end{alignat}

\end{document}

enter image description here

I'd go with the simplest one, that is, (2).

4

The culprit is actually the pair of parentheses under the square root. Does the following code do what you want?

\sqrt{\tfrac{2 \log \smash[t]{\left( 2 n T^{2} \right)}\vphantom{T^2}}{s}}

enter image description here

Edit: as suggested by Mico, you can also use this code:

\sqrt{\tfrac{2\log\left(\smash[t]{2 n T^{2}}\right)}{s}}

enter image description here

However, the parentheses are a bit too small for my taste.

2
  • +1. You might also show the output produced by \left(\smash[t]{ 2 n T^{2}} \right).
    – Mico
    Jan 26, 2021 at 11:34
  • @Mico: You're right. I'll add it in a moment.
    – Bernard
    Jan 26, 2021 at 11:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .