2

Consider the code for the MnWE:

\documentclass{article}
\usepackage{physics}
\usepackage{mathtools}
\usepackage{amsmath}


\begin{document}

    \begin{equation}
        \norm{f - L}_{\infty} = \overbrace{\abs{\frac{K_2}{2}}}^{\mathclap{\text{worst $f''(x)$ over all subintervals}}}\left(\underbrace{\frac{h}{2}}_{\mathclap{\text{worst (b - a)}}}\right)^2
    \end{equation}

\end{document}

Which results in the following output:

enter image description here

What is the right way to fix the text clash?

1

1 Answer 1

1

Simply move all the left/right bracketing and exponentiation, into the underbrace argument:

\documentclass{article}
\usepackage{physics}
\usepackage{mathtools}
\usepackage{amsmath}


\begin{document}

    \begin{equation*}
        \norm{f - L}_{\infty} = \overbrace{\abs{\frac{K_2}{2}}}^{\mathclap{\text{worst $f''(x)$ over interval}}}\underbrace{\left(\frac{h}{2}\right)^2}_{\mathclap{\text{worst (b - a)}}}
    \end{equation*}

\end{document}

enter image description here

This also fixes the otherwise odd sizing of the left/right brackets.

You must log in to answer this question.

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