I am trying to display some numbers using a locale that formats them with dots as thousands separator and commas as decimal separators: 19.003,41.

Accordingly to this answer it can be done with babel, but I don't really want to use it throughout the entire document, I just want to be able to wrap the desired number in some tag that formats it

For example, for the number from above, I wonder if there is some way where you can do something like


and get the result 19.003,41 in the document.

1 Answer 1


You could perhaps load siunitx and use


enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.