Closed murkle closed 6 years ago
°C gets changed to \\circC
°C
\\circC
Suggested fix: parseString.replace(pos, pos + 1, "^\\circ"); needs to be changed to this in TexParser.java parseString.replace(pos, pos + 1, "^{\\circ}");
parseString.replace(pos, pos + 1, "^\\circ");
parseString.replace(pos, pos + 1, "^{\\circ}");
Test-case: "\rotatebox{90.0}{ \text{ Temperature [°C] } }"
"\rotatebox{90.0}{ \text{ Temperature [°C] } }"
Fix in commit: https://github.com/opencollab/jlatexmath/commit/745ff2e225a5bdc4151b93e49fb1ba85562c7038
°C
gets changed to\\circC
Suggested fix:
parseString.replace(pos, pos + 1, "^\\circ");
needs to be changed to this in TexParser.javaparseString.replace(pos, pos + 1, "^{\\circ}");
Test-case:
"\rotatebox{90.0}{ \text{ Temperature [°C] } }"