tensor works extremely well for a wide variety of subscript/superscript applications. For this one in particular, you would just uselocalghost wrote:tensor does exactly the same.
Code: Select all
\tensor[^{pre-superscript}_{pre-subscript}]{object after scripts}{}