2

I have problem typing this on the hat of max in the following example:

enter image description here

user3232
  • 737

2 Answers2

3

Following egreg's suggestion, for math operators that are not defined by default, one can use \operatorname*{...}_{...}^{...}. Or, for typesetting math texts that are not math operators, you can also use the \overset (and \underset) command of the AMSmath package:

enter image description here

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\[
  \max_{j=1}^{|B|} 
  \qquad
  \operatorname*{argmax}_{j=1}^{|B|}
\]

\[
  \underset{j=1}{\overset{|B|}{math \; texts \; \mbox{and regular texts in math mode}}}
\]

\end{document}
Herr K.
  • 17,946
  • 4
  • 61
  • 118
1

For example

\[
\max_{j=1}^{|B|}
\]