Is there anyway to get asciimath to recognize "\over"?
Thanx
Is there anyway to get asciimath to recognize "\over"?
Thanx
Sure - but it's not single character (ttype CONST)
First you need to know if you want to use asciimathml or latexmathml input/output values and you need to check code for handling {this} \over {that} both for MathML and AMT fallback (unless you want to use only MathML)
Can't you simply use `2/3` or $\frac{2}{3}$ to render $$\frac{2}{3}$$
The problem I have is I am using asciimath on my Sage server to do the pretty print
Try
The Sage functions that do most of the work and I use Sage's "latex()" to convert my equations into pretty print. The latex() at times creates \over which asciimath does not recognize. My servers are not in Moodle at this moment.
William Stein <wstein@gmail.com>The literature I have read suggests that while \frac is core Latex, \over is a primitive that "is out of place in a LaTeX document", and hence should be probably avoided anyway..... though in its defense Davide's jsmath does parse it correctly
"\over
and friends are primitive TeX commands whose unusual