[Tex/LaTex] Decimal comma: extract one feature from babel-spanish

babelmath-modepunctuation

\usepackage[spanish]{babel} makes $12.34$ to print "12,34", not "12.34". It doesn't change dot to comma if one says for example $x.y$.

Can I use only that feature from babel package, and still use finnish hyphenation, typography etc?

Best Answer

I would suggest you use the siunitx package and set the comma as decimal point by \sisetup{output-decimal-marker = {,}}.

Using this package will also allow you to use some other very nice features that you'll find handy, such as 3-number separators, SI units, D columns (when dealing with tables full of numbers) and much more!

Take a look at the siunitx package documentation.

Also, according to section 4.1 of the "Estilo spanish para el sistema babel", you can set the use of comma as decimal point by \decimalcomma.

In other words, load the babel package like this: \usepackage[spanish,finnish]{babel} (so your main language is finnish) and then set the comma as decimal point by \decimalcomma.

Finally, as suggested by cgnieder, you could try looking at this post: How to convert dots to commas in mathmode?

Related Question