![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
29 Sep
2011
29 Sep
'11
10:15 a.m.
On Mon, 26 Sep 2011, Mojca Miklavec wrote:
Short summary: This allows the comma in $1, 2, 3$ to be have as punctuation comma (similar to \setupmathematics[autopunct=no]) and $1,23$ to behave as decimal comma (similar to \setupmatematics[autopunct=yes]). Since it is targeting pdftex and xetex engines, it makes , an active char in mathmode and redefines it as a macro that uses look ahead to check if the next token is a digit. In principle a cleaner implementation is possible in luatex (without using active characters), but I am not completely sure about this. It will be better to handle this as part of \mnum macro. Aditya