<div><div dir="auto">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.</div></div><div dir="auto"><br></div><div dir="auto">Your program is presumably adding \( and \) before passing to MathJax? (Those are valid LaTeX, by the way.) could it also strip $ before and after?</div><div dir="auto"><br></div><div dir="auto">Fernando</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 1, 2020 at 12:30 PM Jonathan Fine <<a href="mailto:jfine2358@gmail.com">jfine2358@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Peter<br>
<br>
Thank you for your thoughtful response. Based on it, I've opened a new issue.<br>
<br>
latex-type-tutor: LaTeX math delimiters \( … \), \[ … \], and $ … $.<br>
<a href="https://github.com/jfine2358/scratch/issues/5" rel="noreferrer" target="_blank">https://github.com/jfine2358/scratch/issues/5</a><br>
<br>
And I've there made the following response:<br>
<br>
<BEGIN><br>
I see four issues here: scope, documentation, error recovery and the '$' symbol.<br>
<br>
Scope: Learning to type LaTeX mathematics is the purpose of this<br>
tutor. It relies on MathJax to provide the instant preview rendering.<br>
There's nothing similar to MathJax for LaTeX paragraph mode.<br>
<br>
Documentation: Some sort of help page would be helpful. I'll open a<br>
new issue for this.<br>
<br>
Error recovery: MathJax writes invalid tokens in red. Perhaps we could<br>
improve on this.<br>
<br>
The '$' symbol: Mathjax recognises by '$' and '$' as giving a dollar<br>
sign. LaTeX recognises only '$'. Perhaps, because it's a LaTeX typing<br>
tutor, it should not allow '$' as a substitute for '$'.<br>
<END><br>
<br>
We can continue this conversation, if you wish, either here or there.<br>
Once again, thank you for your thoughtful response.<br>
<br>
best regards<br>
<br>
Jonathan<br>
<br>
</blockquote></div></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">==================================================================<br>Fernando Q. Gouvea                                          Editor, MAA Reviews<br>Dept of Mathematics and Statistics                     <a href="http://www.colby.edu/~fqgouvea" target="_blank">http://www.colby.edu/~fqgouvea</a><br>Colby College                                                    <a href="http://www.maa.org/press/maa-reviews" target="_blank">http://www.maa.org/press/maa-reviews</a><br>Mayflower Hill 5836               <br>Waterville, ME 04901          <br><br>A training in mathematics is a prerequisite today for work in almost<br>any scientific field, but even for those who are not going to become<br>scientists, it is essential because, if it is only through speech that<br>we can understand what freedom means, only through mathematics <br>can we understand what necessity means.<br>  -- W. H. Auden<br><br><br></div></div></div></div>