opencollab / jlatexmath

A Java API to render LaTeX
Other
514 stars 109 forks source link

°C doesn't work #36

Closed murkle closed 6 years ago

murkle commented 7 years ago

°C gets changed to \\circC

Suggested fix: parseString.replace(pos, pos + 1, "^\\circ"); needs to be changed to this in TexParser.java parseString.replace(pos, pos + 1, "^{\\circ}");

Test-case: "\rotatebox{90.0}{ \text{ Temperature [°C] } }"

calixteman commented 6 years ago

Fix in commit: https://github.com/opencollab/jlatexmath/commit/745ff2e225a5bdc4151b93e49fb1ba85562c7038