Send As SMS

3/29/2006

how to write argmax in latex

to write argmax with respect to some variable (i.e. theta), code:

\arg\max_\theta


5 Comments:

Hirak said...

Nice blog for LATEX stuff. Keep it up!
**
The above works quite well though it leaves an extra space between the ARG and MAX. To avoid it use the negative space command:

\arg \! \max_\theta

hth!

7/31/2006 12:11:41 PM  
Lawrence David said...

cool tip! learned my new trick of the day :)

7/31/2006 12:12:36 PM  
Nacho Martin said...

Nice tip!

An very useful at this precise moment :)

8/10/2006 11:05:04 AM  
Rafa said...

you are #1 when one googles "argmax latex"
you saved me from opening the stupid latex manual

9/15/2006 04:14:14 PM  
js said...

with this solution the subscripted variable will appear centered beneath the word "max", instead of centered beneath the whole word. i found a way to solve this on wikipedia:

place the following command in the header of your latex document:

\newcommand{\argmax}{\operatornamewithlimits{argmax}}

now you can use it like this:

\argmax_\theta

9/19/2006 09:55:21 AM  

Post a Comment

Links to this post:

Create a Link

<< Home

My blog has moved! Redirecting...

You should be automatically redirected. If not, visit http://stinkpot.afraid.org:8080/tricks/ and update your bookmarks.