tips

 

LaTeX

  1. LaTeX does not come with a builtin argmax operator, and using \arg\max together is undesirable because subscripts aren't centered and it produces an ugly diastematic effect.  You can fix this by putting the following line at the top of your source file:

    \usepackage{amsmath}
    \newcommand{\argmax}{\operatornamewithlimits{argmax}}
    \DeclareMathOperator*{\argmax}{argmax}

    [Andreas Maletti informs me that \operatornamewithlimits is deprecated]

    Then you can use \argmax and get proper centering of subscripts, etc.