sammarshallou / webmaths

Java web services for handling MathML and TeX (intended for use with a Moodle filter)
GNU General Public License v3.0
5 stars 7 forks source link

ITeX: Requires escaping of ^ character #65

Closed sammarshallou closed 12 years ago

sammarshallou commented 12 years ago

Where the ^ literal character is used in an equation, this should be escaped so that TeX does not end up making subscripts out of it.

An example demonstrating this problem is currently ^0 (until #64 is fixed). Currently, this equation generates MathML that displays as literal characters ^ and 0.

Note: This problem may only apply when ^ is incorrectly included in the tag rather than or etc. Perhaps a better solution would be some filtering of the tag to strip out things that aren't numbers, if this could be done according to the specification in some way.

sammarshallou commented 12 years ago

Fixed this and also added support for the text mode escape \textasciicircum (and a whole stack of infrastructure to make text mode escapes work)