Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove leading zero before decimal #587

Closed
ma-ji opened this issue Feb 11, 2022 · 4 comments
Closed

remove leading zero before decimal #587

ma-ji opened this issue Feb 11, 2022 · 4 comments

Comments

@ma-ji
Copy link

ma-ji commented Feb 11, 2022

Hi, I understand that this is not recommended in the new version, but can I still do that? I've tried this setup but doesn't work: \sisetup{round-mode=figures,round-precision=2,add-integer-zero=false,table-format = -2.2}

@josephwright
Copy link
Owner

This came up in https://chat.stackexchange.com/transcript/message/60390465#60390465 (and the following messages): I'd suggested I could add print-zero-integer as a replacement for the old add-integer-zero=false - would that work for you?

@ma-ji
Copy link
Author

ma-ji commented Feb 11, 2022

Unfortunately it does not work, showing The key 'siunitx/print-zero-integer' is unknown and is being [...res,round-precision=2,table-format = -2.2}]. (siunitx version 3.0.48)

Thank you very much for your prompt response!

@josephwright
Copy link
Owner

@ma-ji I meant would that work as in the option doesn't exist at the moment, I wonder about conceptually.

@ma-ji
Copy link
Author

ma-ji commented Feb 11, 2022

@ma-ji I meant would that work as in the option doesn't exist at the moment, I wonder about conceptually.

Absolutely yes!!! Sorry for the misunderstanding.

I guess many people will welcome this addition. For my case, my regression coefficients are all below 1, it is not necessary to print out all zeros in the table, and this has been a convention for many social science journals.

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

No branches or pull requests

2 participants