Thursday, February 2, 2012

Aggregate functions in LaTeX

\usepackage{amsmath} % for underset

\newcommand{\aggregate}[2]{\underset{#2}{\operatornamewithlimits{#1\ }}}


\begin{equation}
x^{*}=\aggregate{argmax}{x\in\mathbf{\mathcal{X}}} f(x)-g(x)
\label{foo.eq}
\end{equation}



Looks like:

No comments:

Post a Comment

Followers