How do I prevent my text from being italicized when I annotate it with additional glyphs?
For example if I add a "hat" to a variable, z
as in $\widehat z$, but want z
to not be italicized to match its use elsewhere:
Remove[z];
Plot[x^2, {x,-5,5},
AxesLabel->{"P("<>ToString@StringForm["``",z]<>")",
"Q("<>ToString@StringForm["Overscript[``, ^]",z]<>")"},
PlotTheme->"Classic"]
Conversely, how do I force z
to be italic when it lacks an annotation (ToString@Style[z,Italic]
doesn't do the trick)?