I'm using siunitx
to input some big numbers and units in my document.
Is there a way to make the output of \num{3.14}
be "3,13" instead of "3.13"? In Spanish, we use the first one.
I'm using siunitx
to input some big numbers and units in my document.
Is there a way to make the output of \num{3.14}
be "3,13" instead of "3.13"? In Spanish, we use the first one.
At the most basic
\sisetup{output-decimal-marker = {,}}
will do the job.
The package includes some pre-defined 'locales' for different typographic traditions, for example
\sisetup{locale = FR}
To date, I've not had details on Spanish conventions, so do not have an ES
locale (there is more than just the decimal marker to worry about). In particular, what do you use for the exponent, 1.23 \times 10^{3}
or 1.23 \cdot 10^{3}
(or ...).
\cdot
for exponents. \times
is more used for operations like vector products. Oh, i almost forgot. We use period for thousand separation.
– Tomas
Jun 16 '11 at 16:43
ES
would be Spain, I guess MX
is Mexico, and so on. (For example, FR
does not mean the text is in French, it means that the typography follows the conventions in use in France.)
– Joseph Wright♦
Oct 17 '12 at 15:42
\usepackage[locale=FR]{siunitx}
– Martin Thoma
Jan 13 '14 at 10:55
\usepackage[spanish,es-nodecimaldot]{babel}
should be enough. – egreg Jun 16 '11 at 16:56