-
Hi! Is it possible to have a comma as a decimal separator, meaning that there isn't added extra space after the comma? When using LaTeX I would use the icomma package. I know that I can write 3{,}14159... etc., but when writing a lot of decimal numbers, it would be easier to make an overall change if possible. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could use icomma.sty's behavior is to add spacing when the comma is followed by a space. I believe this is implemented by the following setting: {macros: {",": (context) => context.future()?.text === " " ? "{\\char`,}" : "\\char`,"} I don't think this can currently be expressed via |
Beta Was this translation helpful? Give feedback.
You could use
\def,{{\char`,}}
or the setting{macros: {",": "{\\char`,}"}}
to permanently redefine,
to{,}
. But this makes it hard to form lists.icomma.sty's behavior is to add spacing when the comma is followed by a space. I believe this is implemented by the following setting:
I don't think this can currently be expressed via
\def
, but hopefully this suffices for your purposes.