2

Thanks to another question, I have defined argmin operator. It works fine when I use it in equations except for when I apply it in cases environment. As you see, the x becomes an index instead of being underneath of argmin.

argmin cases latex

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb}

\DeclareMathOperator*{\argmin}{argmin}

\begin{document}

\begin{align}
x^*=\argmin_x x^2-3x+1
\end{align}

\begin{align}
\begin{cases}
x^*=\argmin_x x^2-3x+1 \\
x>0
\end{cases}
\end{align}


\end{document}
Werner
  • 603,163
ar2015
  • 962
  • Rather use equation than align for a single-equation math display. It makes syntactically sense. – Werner Oct 20 '17 at 00:47

1 Answers1

3

This is the expected behaviour, since each entry within a cases environment is set using \textstyle, making sub-/superscripts to an operator be set beside rather below/above it. You either need to force \displaystyle, or use the dcases environment from mathtools:

enter image description here

\documentclass{article}

\usepackage{mathtools}

\DeclareMathOperator*{\argmin}{argmin}

\begin{document}

\begin{equation}
  x^* = \argmin_x x^2 - 3x + 1
\end{equation}

\begin{equation}
  \begin{dcases}
    x^* = \argmin_x x^2 - 3x + 1 \\
    x > 0
  \end{dcases}
\end{equation}

\end{document}
Werner
  • 603,163