Make the subscript of a \DeclareMathOperator* used in an equation seem like the one used in inline math

amsmath

I have a symbol defined by DeclareMathOperator*:

\DeclareMathOperator*{\Symb}{Symb}

When I add a subscript to it in the inline-math mode, i.e., $\Symb_{\mathbftt{AB}}$, it is displayed as expected:

enter image description here

But if I use it in an equation, the subscript is rendered like a limit right underneath the symbol:

enter image description here

How can I make the second usage look like the first one?

\documentclass[12pt]{article} 

\newcommand\mathbftt[1]{\textnormal{\ttfamily\bfseries #1}}

\usepackage{mathtools}
\DeclareMathOperator*{\Symb}{Symb}

\begin{document} 
 $\Symb_{\mathbftt{AB}}$
 \begin{equation}
    \Symb_{\mathbftt{AB}}
 \end{equation}
\end{document}

Best Answer

enter image description here

The * form you used is to request that behaviour of subscripts, so simply delete the *

\documentclass[12pt]{article} 

\newcommand\mathbftt[1]{\textnormal{\ttfamily\bfseries #1}}

\usepackage{mathtools}
\DeclareMathOperator{\Symb}{Symb}

\begin{document} 
 $\Symb_{\mathbftt{AB}}$
 \begin{equation}
    \Symb_{\mathbftt{AB}}
 \end{equation}
\end{document}
Related Question