[Tex/LaTex] Vertically aligning textsuperscript and textsubscript together


I would like to show both super and subscript together some text.

I tried this sometext\textsuperscript{1}\textsubscript{2}

But 2 does not show up right below 1.

Thanks for your help. Also how can I show 1 & 2 in front of sometext as well.


I tried some both the answers posted below and here is the attachment. I was trying to put 2 digit number 16 and 32 in superscript and subscript. alt text

alt text

Best Answer

without using directly math and with colors:


sometext\SPSB{1}{2} more text

sometext\SP{1} more\SB{2} text\SP{1}


alt text