ronisbr / PrettyTables.jl

Print data in formatted tables.
MIT License
404 stars 38 forks source link

Decimal separator alignment of decimal values #223

Open BambOoxX opened 11 months ago

BambOoxX commented 11 months ago

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 commented 11 months ago

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 commented 9 months ago

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.