OmarIthawi / arabic-mathjax

Beautiful Arabic Math on all browsers. An extension for MathJax v2.
https://arabicmath.org
MIT License
23 stars 7 forks source link

Spaceless-commas in TeX conflicts with \transn #15

Open OmarIthawi opened 5 years ago

OmarIthawi commented 5 years ago

When you use commas in a number, a common LaTeX trick is to surround them with brackets to suppress the extra space that MathJax inserts after the comma. See below for how this looks, and how it interacts with the new \transn{} utility function. We can live with the extra spaces for now, but it might be nice to enhance \transn{} to be aware of this common pattern and remove the extra braces from the Arabic output.

image

OmarIthawi commented 5 years ago

Thanks @barillax for reporting the issue!