7
\$\begingroup\$

MathJax just added ASCIIMath support, and I think it'd be great to support it as an option, alongside regular \$\LaTeX\$-based MathJax.

In many posts (such as this one) people forget to or are too lazy to properly format units:

What we see: \$5 kg\$ (\$5 kg\$)

What we should see (pretty!): \$5~\mathrm{kg}\$ (\$5~\mathrm{kg}\$).

In ASCIIMath, you can use quotation marks ("") to delimit roman text, so the properly formatted variant becomes \`5\ "kg"`.

\$\endgroup\$
4
  • \$\begingroup\$ Is it also lighter? anyway in my defense, I didn't know how to format units :) \$\endgroup\$
    – clabacchio
    Commented Mar 21, 2012 at 6:59
  • \$\begingroup\$ :) I wasn't bashing you, I just couldn't find another example quickly enough. \$\endgroup\$ Commented Mar 22, 2012 at 6:11
  • \$\begingroup\$ But i'm not the poster, just one of those who make the mistake :) \$\endgroup\$
    – clabacchio
    Commented Mar 22, 2012 at 6:56
  • \$\begingroup\$ That's what I get for doing two things at the same time. \$\endgroup\$ Commented Mar 22, 2012 at 18:57

0

You must log in to answer this question.

Browse other questions tagged .