I want to use a comma as the decimal sign, and I want to get rid of the
extra space after the comma in math mode. Of course, I could say $1{,}1$
but I don't want to type this each time. With latex, I used
\mathchardef\CommaOrdinary="013B
\mathchardef\CommaPunct ="613B
\mathcode`,="8000
{\catcode`\,=\active
\gdef ,{\obeyspaces\futurelet\next\CommaCheck}}
\def\CommaCheck{\if\space\next\CommaPunct\else\CommaOrdinary\fi}
(taken from the dante faq) to be able to type $1,1$ for decimal numbers as
well as $f(x, y)$ with the comma separating elements of a list. An attempt
to use this in context led to
! Missing number, treated as zero.
<to be read again>
\def
\handlecompoundcharacter #1->\def
\dohandlecompoundcharacter {\ifx \next
\bg...
l.7 \mathchardef\CommaOrdinary="
013B
?
probably due to the use of " for shorthands. I got around this by
converting the hex numbers to base 10, leading to a working soluting if the
definitions are at the end of my environment file (i.e. after font setups).
Furthermore, I would like to include the code in my cont-sys.tex, but this
has no effect at all (because this file is read in first?).
Probably there is a more context-like way to do it?
Eckhart