0

does any of you know how i can underscript in latex.

I want to write min and then a x under, like on the image.

Thanks!! <3enter image description here

2 Answers2

1

Depends on the context, so a minimal working example would have been useful.

If this should be math, e.g.

\documentclass{article}

\usepackage{mathtools}

\begin{document} [\min_x] \end{document}

enter image description here

If x is not a variable you can use \min_{\mathrm{x}} or even \min_{\text{x}}, depending on the expected result. See the amsmath user manual for more information about \text.

For other use cases, see also \limits and \nolimits in the amsmath user manual.

cabohah
  • 11,455
  • 1
    It's not necessary to load the mathtools package to run \min. – Mico Dec 10 '23 at 11:44
  • 1
    @Mico I know, but IMHO new users cannot learn early enough to use at least amsmath or even better mathtools and I also bring up \text in my answer, which needs at least amsmath. – cabohah Dec 10 '23 at 11:46
1

The way to achieve your formatting goal depends on whether \min occurs in inline-math mode or in display-math mode. In the former case, it's necessary to write \min\limits_{\mathbf{x}}. In the latter case, you can just write \min_{\mathbf{x}}.

mod

\documentclass{article}
\begin{document}
$\min\limits_{\mathbf{x}}$ \quad $\displaystyle\min_{\mathbf{x}}$
\end{document}
Mico
  • 506,678