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

Decimal separator alignment of decimal values #223

Open
BambOoxX opened this issue Oct 15, 2023 · 2 comments
Open

Decimal separator alignment of decimal values #223

BambOoxX opened this issue Oct 15, 2023 · 2 comments

Comments

@BambOoxX
Copy link

BambOoxX commented Oct 15, 2023

Hi, one of the nice features that are available in siunitx is the ability to align decimal values on the decimal marker (. or ,) depending on the language practices.
It could be nice the have that capability in PrettyTables.jl since it's probable that people will try to display some scientific data with it.

@ronisbr
Copy link
Owner

ronisbr commented Oct 16, 2023

Hi @BambOoxX !

Nice suggestion, it should be easy to implemente this for the LaTeX back end. Notice that this feature is already present in the text back end. I just need to verify what is the best way to add this in the API. Suggestions?

@BambOoxX
Copy link
Author

Sorry, not so many suggestions.
I guess having a new alignment value like alignment = :d for "decimak" would be a way to put it into the public API.
How does it work in the text backend, I've never used it in that way ?
I suppose my approach would be to support S[table-number-alignment = center] as a default, but I have no clue as to how to integrate this in the API. There are so many options available in siunitx, I wouldn't know where to start.

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