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

TeX: \\ and & should be ignored #50

Closed sammarshallou closed 12 years ago

sammarshallou commented 12 years ago

Although it probably only applies in incorrect usage, the commands \ (double backslash) and & (which only work within specific environments) should be ignored in other places. At present, the system converts them into literal text.

Example:

& \frac{d\text{lo}{{\text{g}}{e}}{{R}{AB}}}{dT}=0-\frac{2}{3}\frac{d{{\log }_{e}}T}{dT}+\alpha {{T}^{-4/3}} \

sammarshallou commented 12 years ago

In order to fix this, I also had to correct a couple of issues relating to tokenising of & (it was tokenised the same as &) and handling of error messages that are displayed as MathML commments (these included escaped &).