Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

feature-proposal: automatic international numbernotation #7

Open
GoogleCodeExporter opened this issue May 7, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

Pgf-pie is really nice. But I lack one feature: numbernotation according to my 
region/country. American/English notation has for instance a dot between 
decimals. For instance: the half of one is 0.5. In my country(Belgium) the dot 
is a comma: 0,5. 
I did a little modification in de pgf-pie.sty so that it works for the normal 
slice In line 60 I adjusted the line to:
{\scalefont{#3}\beforenumber\pgfmathprintnumber[use comma]{#3}\afternumber};

Then it switched to mathfont... To solve this problem I modified it with 

{\scalefont{#3}\beforenumber\pgfmathprintnumber[assume math mode=true, use 
comma]{#3}\afternumber};



My question: is it possible to change automatically to the correct 
region-specific numbernotation on basis of the babel-settings (or somewhere 
else)? 


Original issue reported on code.google.com by [email protected] on 8 May 2014 at 7:00

@yguilhem
Copy link

yguilhem commented Jun 4, 2020

There might be a way using \num{} and \SI{}{} commands from siunitx package.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants