Gunnar wrote:
How can I automatically get a decimal comma instead of a decimal point in math
environments?
I've tried
\AtBeginDocument{\def\extrasspanish{}}
and even
\DeclareMathSymbol{,}{\mathpunct}{letters}{"3B}
\DeclareMathSymbol{.}{\mathord}{letters}{"3B}
\DeclareMathSymbol{\decimal}{\mathord}{letters}{"3A}
but no success.
Any better ideas? I wish to have numbers converted automatically.
I do not understand what you want.
If you want to use decimal comma instead of a decimal point, then
write decimal commas instead of writing points. That way you get what
you want, and the math looks good.
The keyboard have both comma and point, and the numeric keypad
may be programmed to make one or the other depending on
what you want.
Or do you need conversion because you want to publish the same set
of formulas in two different versions - one with commas and
one with points?
Helge Hafting