GeneralDecimal symbol using siunitx

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Decimal symbol using siunitx

Post by latexforever »

Hello everybody,

As I'm using

Code: Select all

\usepackage[allowzeroexp=true,obeymode=true,redefsymbols,textcelsius,textdegree,textminute,textmu,load={abbr,addn},decimalsymbol=,]{siunitx}
in my preamble, when I type, in the document:

Code: Select all

\boxed{\mu_{0}=4\pi K_{M}=\SI{12,57e-7}{N.A^{-2}}}
, the displayed value is 1257. Why?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Decimal symbol using siunitx

Post by localghost »

This can't work because the comma is the separator for the different key values in the option list. Hence the decimal symbol has to be given in another way.

Code: Select all

decimalsymbol=comma
Should be described in the siunitx manual.


Best regards
Thorsten¹
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Decimal symbol using siunitx

Post by latexforever »

Sorry, I didn't notice this subtility.

Thanks, localghost.
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Decimal symbol using siunitx

Post by josephwright »

You can always wrap stuff in braces (generally for a keyval list), so

decimalsign={,}

should also work.
--
Joseph Wright
Joseph Wright
latexforever
Posts: 120
Joined: Fri Nov 14, 2008 9:40 pm

Re: Decimal symbol using siunitx

Post by latexforever »

Thanks. I also thought it would work.
Post Reply