[Tex/LaTex] Superscript and subscript

superscripts

I want to write a superscript and a subscript at the same place.Every time I do it, it is a superscript then a space followed by the subscript. How do I stack it vertically?

Best Answer

I presume you are in math mode and I assume you want to have both superscript and subscript horizontally aligned next to the symbol you are super-/subscripting. You can achieve this like this: $A_b^c$. Note that the order is irrelevant, $A^c_b$ looks identical. You can group symbols using curly brackets like so: ${A_b}^c$ or $A_{b^c}$. Examples for super-/subscripting in math mode