$$ a/b $$ Multiline

16 views
Skip to first unread message

Calum

unread,
Jan 10, 2023, 2:55:50 PM1/10/23
to MathJax Users
Hello,

Can I get Mathjax to display $$ a/b $$ and other fractions written with slashes as


rather than



Thank you!

Davide Cervone

unread,
Jan 11, 2023, 9:07:27 AM1/11/23
to mathja...@googlegroups.com
One reason this isn't usually done is that the notation is ambiguous.  Does "a+b/2c" mean "(a+b)/(2c)" or "a+(b/2)c", for example?

It would be possible to make / act like Plain TeX's \over macro, so that you could use "{a/b}" to get the equivalent of "\frac{a}{b}", and so the two forms above would be distinguished by using "{a+b/2c}" versus "a+{b/2}c", but that may not be what you want.

Alternatively, you may want to consider using AsciiMath rather than LaTeX as your input format, as it does use / for fractions.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/041cf9db-713e-475a-973b-cab7d5f9788bn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages