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.
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}
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.
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
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}}.
\documentclass{article}
\begin{document}
$\min\limits_{\mathbf{x}}$ \quad $\displaystyle\min_{\mathbf{x}}$
\end{document}