... why not read this instead?
It's only post No. 4 and I'm already not fully translating my notes... My excuse is that it's a very practical post, so I'll skip the introduction on what is LaTeX and my attempts at humorous comments to focus on what you're looking for if you ended up here...
In this forum I found the best way to define the functions argmin and argmax in LaTex. I slightly modified it to add a small space \: or even smaller space \, between arg and max and here is it.
in the preamble - i.e. before \begin{document} - and then simply call the function with
\argmin{x}{f(x)}
and tada!
Beautiful.
It's only post No. 4 and I'm already not fully translating my notes... My excuse is that it's a very practical post, so I'll skip the introduction on what is LaTeX and my attempts at humorous comments to focus on what you're looking for if you ended up here...
In this forum I found the best way to define the functions argmin and argmax in LaTex. I slightly modified it to add a small space \: or even smaller space \, between arg and max and here is it.
\newcommand{\argmin}[2]{%
\smash{\mathop{{\rm arg \: min}}\limits_{#1}}\, #2}
\smash{\mathop{{\rm arg \: min}}\limits_{#1}}\, #2}
in the preamble - i.e. before \begin{document} - and then simply call the function with
\argmin{x}{f(x)}
and tada!
Beautiful.
No comments:
Post a Comment