I would like to write $R^{(2)}$ and use this as a FrameLabel. This means that I specifically want () around the 2 in the exponent. I've tried using
ToExpression["$R^{(2)}$", TeXForm]
but this produces only the 2 in the exponent with no parantheses. Thank you for any help and merry christmas!


Plot[x, {x, 0, 1}, Frame -> True, FrameLabel -> {x, R^"(2)"}]– Bob Hanlon Dec 23 '19 at 16:46https://mathematica.stackexchange.com/questions/140336/how-to-convert-texform-to-string-via-toexpression-without-it-being-evaluated-in
does not seem to solve the problem (note: instead of converting to string, convert to traditional form to preserve superscript). Mathematica still removes the brackets. There needs to be a direct way of converting from
– Dec 23 '19 at 18:44TeXFormtoString, but if you're only doing it for the label, then the solution above is better.