You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is prompted by a post made by Fernando Gouvea to texhax (URL below). He wrote:
My students often write things like F’(x) = $\int sin(x)$. Catching the incorrect placement of $ would help them learn. Catching sin vs \sin would be even nicer.
Your program is presumably adding ( and ) before passing to MathJax? (Those are valid LaTeX, by the way.) could it also strip $ before and after?
Out of the box, MathJax allows things that LaTeX doesn't. For example, the use of '$' as a dollar sign. As this is a LaTeX typing tutor, perhaps some effort should be made to report or prevent such constructions.
This is prompted by a post made by Fernando Gouvea to texhax (URL below). He wrote:
See: https://tug.org/pipermail/texhax/2020-January/024147.html
Out of the box, MathJax allows things that LaTeX doesn't. For example, the use of '$' as a dollar sign. As this is a LaTeX typing tutor, perhaps some effort should be made to report or prevent such constructions.
As for 'sin' vs '\sin', perhaps #3 might help.
This issue is related to #5
The text was updated successfully, but these errors were encountered: