如何在表達帽上打出具體的東西?

如何在表達帽上打出具體的東西?

max在以下範例中,我在帽子上鍵入此內容時遇到問題:

在此輸入影像描述

答案1

例如

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

答案2

根據egreg的建議,對於預設未定義的數學運算符,可以使用\operatorname*{...}_{...}^{...}.或者,對於排版不是數學運算子的數學文本,您也可以使用套件的\overset(and \underset) 命令AMSmath

在此輸入影像描述

\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}

相關內容