jfine2358 / scratch

3 stars 1 forks source link

latex-type-tutor: LaTeX math delimiters \( … \), \[ … \], and $ … $. #5

Open jfine2358 opened 4 years ago

jfine2358 commented 4 years ago

Peter Wilson wrote:

You say the first box is the maths to type. But when I type $2+2=4$ or \(2+2=4\) I get those as the answer, not 2+2=4. You were asking for maths but only accepted regular text.

It would have been better, I think, to have asked for either some plain text or a set of characters with no implication about setting mathematics.

See: https://tug.org/pipermail/texhax/2020-January/024145.html

jfine2358 commented 4 years ago

I see four issues here: scope, documentation, error recovery and the '$' symbol.

Scope: Learning to type LaTeX mathematics is the purpose of this tutor. It relies on MathJax to provide the instant preview rendering. There's nothing similar to MathJax for LaTeX paragraph mode.

Documentation: Some sort of help page would be helpful. I'll open a new issue for this.

Error recovery: MathJax writes invalid tokens in red. Perhaps we could improve on this.

The '$' symbol: Mathjax recognises by '$' and '\$' as giving a dollar sign. LaTeX recognises only '\$'. Perhaps, because it's a LaTeX typing tutor, it should not allow '$' as a substitute for '\$'.