[Tex/LaTex] Subscript on the bottom and Superscript on the top

amsmathmath-modesuperscripts

I am writing an equation and I want that subscript should be in the center bottom and superscript should be on the center top of the symbol instead of bottom and top sides. I tried to use the \underset command but it only places subscript at the desired place but not the superscript

A minimal working example is given below:

      \documentclass{paper}
      \usepackage{amsthm}
      \usepackage{amsmath}
      \usepackage{mathptmx}
      \usepackage{mathrsfs}
      \begin{document}
      \begin{equation}
      \underset{0}{S}^{q} = f\Bigg\{\dfrac{SE}{TA}\Bigg\}  
      \label{eq:incrS}
      \end{equation}
      \end{document}

Best Answer

You can use \operatorname* to get limits positioning of the sub and super script, but also you should almost never use \big sequence of commands they are really just part of the implementation of the open and close form \bigl and \bigr. Bigg seems much too big here, I'd use Big although some might use the intermediate bigg size. Also \dfrac isn't needed I just used \frac (which makes the same output in this case)

enter image description here

  \documentclass{paper}
  \usepackage{amsthm}
  \usepackage{amsmath}
  \usepackage{mathptmx}
  \usepackage{mathrsfs}
  \begin{document}
  \begin{equation}
  \operatorname*{S}_0^{q} = f\Bigl\{\frac{SE}{TA}\Bigr\}  
  \label{eq:incrS}
  \end{equation}
  \end{document}