fenjalien / metro

A typst package to add typsetting to units!
Apache License 2.0
66 stars 5 forks source link

[add] num command #1

Closed Mc-Zen closed 1 year ago

Mc-Zen commented 1 year ago

Also fixes:

Also adds:

Actually I noticed, the _state dictionary need not contain any default keys if the internal _unit and num-impl functions have default values for these keys (see the definition of num-impl). This way, the _state contains less key-value pairs in most cases and the overhead of updating the '..options' in num, qty and unit is reduced. This could also be applied to '_unit' in a similar fashion.

fenjalien commented 1 year ago

It looks good! Thank you :)