I wanted to get theta below argmax in the middle . I used the following code:
\usepackage{amsmath,amssymb,graphicx,enumerate,algorithm}
\begin{document}
$\theta_i$ = $argmax_{\theta} Q(\theta, \theta_i)$
\end{document}
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI wanted to get theta below argmax in the middle . I used the following code:
\usepackage{amsmath,amssymb,graphicx,enumerate,algorithm}
\begin{document}
$\theta_i$ = $argmax_{\theta} Q(\theta, \theta_i)$
\end{document}
I think you are looking for an operator \argmax
which can be defined in the following way (needs amsmath
)
\DeclareMathOperator*{\argmax}{arg\,max}
To have "theta below argmax in the middle" in inline math, you have to specify \limits
when using it.
MWE:
\documentclass{article}
\usepackage{amsmath}
\DeclareMathOperator*{\argmax}{arg\,max}
\begin{document}
\noindent Inline math: $\theta_i = \argmax\limits_{\theta} Q(\theta, \theta_i)$
\bigskip\bigskip
\noindent Displayed math
\[\theta_i = \argmax_{\theta} Q(\theta, \theta_i)\]
\end{document}
Output
\\
you need double back quotes.
– egreg
Aug 10 '16 at 10:25
$...$
which is inline math mode, there the limit is not shown below argmax as it will disturb the line spacing. – daleif Aug 10 '16 at 7:02$
are not needed, the=
should also be math mode – daleif Aug 10 '16 at 7:03{}
on the gui. – user30471 Aug 10 '16 at 7:07