# Axes labeling with superscripts

I need to label the y-axis of a plot with the form a/GeV^-1, where ^ denotes superscript. But Mathematica always write GeV a instead, interpreting 1/GeV^-1 as GeV. How to avoid this interpretation?

• put it inside " ". AxesLabel->{"x axis", "a/GeV^-1"} – Sumit May 2 '17 at 13:58
• see: 20566 – Kuba May 2 '17 at 13:59

There is a $\LaTeX$ typesetting package, MaTeX, written for such situations by Szabolcs.

<< MaTeX

Plot[x^2, {x, -10, 10}, AxesLabel -> MaTeX /@ {"\\text{$x$ axis}", "a/\\mathrm{GeV}^{-1}"}]


• Hope you don't mind the edit :-) (feel free to revert) – Szabolcs May 24 '17 at 10:33
• @Szabolcs Of course not. Thanks for your corrections. – zhk May 24 '17 at 10:36

In:

label = Row[ {"a/Ge", Superscript["V", -1] }];
Plot[Sin[x], {x, 0, 2 Pi}, AxesLabel -> label]
`

Out:

• The answer is updated according to your suggestion. :) – UnchartedWorks May 24 '17 at 12:16