Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latex-type-tutor: allow only valid LaTeX math #7

Open
jfine2358 opened this issue Jan 6, 2020 · 0 comments
Open

latex-type-tutor: allow only valid LaTeX math #7

jfine2358 opened this issue Jan 6, 2020 · 0 comments
Labels
latex-type-tutor Project: LaTeX Typing Tutor

Comments

@jfine2358
Copy link
Owner

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?

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

@jfine2358 jfine2358 added the latex-type-tutor Project: LaTeX Typing Tutor label Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
latex-type-tutor Project: LaTeX Typing Tutor
Projects
None yet
Development

No branches or pull requests

1 participant