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?
Answer
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}"}]
Comments
Post a Comment