Requires latex functionality

$$
\DeclareMathOperator*{\argmin}{arg\,min}
\DeclareMathOperator*{\argmax}{arg\,max}
$$

$$
\argmin_{text}
$$

$$
\argmax_{text}
$$