Skip to content

[Suggestion] Option to align deciamal places #2

@legendre6891

Description

@legendre6891

Could you add an option a column that aligns decimal places? This is fairly common in social sciences.

See: https://tex.stackexchange.com/questions/2746/aligning-numbers-by-decimal-points-in-table-columns

It would be nice if tably could automatically figure out:

  1. The number of places before the decimal point, i.e., the maximal number column.
  2. The number of places after the decimal point, i.e., the maximal number in a particular column.

That way, [table-format=3.2] doesn't have to be specified manually.

In addition, it would be nice if it can handle the 'header column' and automatically wrap the contents
around braces to prevent aligning the decimal point. The comment at the TeX.SX link above provides the context:

in response to a comment by daniel kullmann Nov 15 '11 at 10:31 The official way of getting siunitx to ignore bits of text, like headers, is to just wrap them in braces; i.e. {name} will work just as well as \multicolumn{1}{c}{name}. See for instance tex.stackexchange.com/questions/3709/… (would still like newbies to be able to post comments!) – Sam Mason Sep 23 '12 at 17:41

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions