# How to type this certain expression (duplicate question for reference purpose)? [duplicate]

In graphing I hope to output the following format for example $|a_{1020}|^2$.

I need to use this as my axes label in a plot and to type this expression in Mathematica. I am fully aware there is a guideline post. This question (with an answer below) serves as a specific case (some elements may quite commonly occur in graphing) for future reader. If not, please close this question but do not downvote it.

If kindly uplift the downvote as I am closed to getting banned due to this one question. If you find this question useful as a special case, please upvote it.

## marked as duplicate by dr.blochwave, MarcoB, Mr.Wizard♦Jul 9 '15 at 17:59

TraditionalForm[Abs[Subscript[a,1020]]^2]

• Use quotes to force Mathematica to treat stuff as strings and not as numbers/variabels. TraditionalForm[Abs[Subscript["a", "102900"]]^2] – yohbs Jul 9 '15 at 7:28