Skip to content

Suggestion: Add builtin support for SI unit formatting #1708

@tgross35

Description

@tgross35

Hey everyone,

Has there been discussion about adding some sort of SI unit formatting to quartio, similar to what siunitx allows for LaTeX?

This sort of thing is quite helpful when working with derived SI units, or prefixes that aren't found on latin keyboards. siunitx (documentation here) handles this in LaTeX, and it would be nice to somehow bring this functionality over.

siunitx ensures that the units are formatted consistently, with a required nonbreaking space between number and unit. It also has some nice features for things like formatting angles, lists, and ranges. As examples, \qty{30}{\uA} is rendered as "30 µA", \qty{70}{\Mohm\per\um} as "70 MΩ µm^-1" (with the correct exponent of course), \ang{180} as "180°" , or \qtyrange{0.15}{30}{\MHz} as "0.15 MHz to 30 MHz. (There are a lot more examples in the PDF documentation linked above).

Something like this would be a very nice fit for Quarto's use in scientific documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmathany issue related to math support in specific formats

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions