Skip to content

Releases: Mc-Zen/zero

Version 0.6.1 (Feburary 2nd, 2026)

02 Feb 22:14

Choose a tag to compare

Changelog

  • Fixed dictionary input for 3rd-party packages.
  • Fixed math parameter in unit arguments.
  • Added more common combined units like zi.m-s2, zi.g-cm^3, zi.kg-m^3, zi.J-K and many more.

Version 0.6.0 (January 13th, 2026)

13 Jan 13:33
1ff1e87

Choose a tag to compare

Changelog

Version 0.6.0

Exponent modes and rounding improvements

Exponents:

  • ⚠️ Breaking Change: Removes the parameter num.fixed which is now replaced by the exponent mode fixed (see below).
  • Adds new exponent modes:
    • auto for standard formatting,
    • "sci" for automatic scientific notation,
    • (fixed: n) for fixing the exponent to a specific value, and
    • "eng" for automatic engineering notation.
  • Improves rendering of exponents for math: true to guarantee a look just like the number was generated by hand with an equation.

Rounding:

  • ⚠️ Breaking Change: Renames rounding modes "down" to "towards-negative-infinity" and "up" to "towards-infinity".
  • Adds an option round.ties to configure the behavior for rounding the digit 5.
  • Adds two new rounding directions "towards-zero" and "away-from-zero".
  • Adds support for padding with a minimum number of digits when rounding.
  • Fixes rounding when no integer part is given (like num[.5]).

Units:

  • Fixes spacing with angle units (there should be no space between the number and an angle unit).
  • ⚠️ Breaking Change: The unit alternatives with British spelling zi.metre and zi.litre have been removed for consistency and to avoid confusion.
  • Adds an option unit.lowercase-liter that enables a lower case symbol for the unit liter.

Miscellaneous:

  • Fixes parsing of [#""] values in formatted tables.

Version 0.5.0 (August 21st, 2025)

21 Aug 17:24

Choose a tag to compare

Changelog

  • Adds a new unit construction method that allows for more complex units involving math, symbols or basically anything.
  • ⚠️ Breaking Change: The rounding setup has been streamlined. The mode can no longer be none, instead it defaults to "places" while the default precision is none meaning that no rounding is applied. This is more convenient when rounding single numbers (e.g., num(round: (precision: 2))[9.80665]) because the mode does not have to be set repeatedly.
  • Fixes an issue with non-breakable units and quantities.

Version 0.4.0 (June 30th, 2025)

30 Jun 10:52

Choose a tag to compare

With this release, we introduce functions for formatting units and quantities. Moreover, we add a new notion for setting up table alignment for seamless interoperability with other table Typst packages.

Changelog

  • Adds the zi module for unit and quantity formatting.
  • Adds new way of applying table alignment via show-rules for seamless interoperability with other table packages.
  • Adds option to configure the group threshold individually for the integer and fractional part.
  • Fixes numbers in RTL direction context.
  • Fixes figure.kind detection ofztable.
  • Fixes direct usage of nonum in ztable.
  • Fixes uncertainties in combination with a fixed exponent.

Version 0.3.3 (Feburary 20th, 2025)

20 Feb 11:06

Choose a tag to compare

Fixes an issue with negative numbers in parentheses due to a change in Typst 0.13.

Version 0.3.2 (January 11th, 2024)

11 Jan 18:08

Choose a tag to compare

This release adds a align-columns function for third-party package developers.
Also, issues arising for upcoming Typst 0.13 are fixed.

Version 0.3.1 (December 10th, 2024)

10 Dec 10:14

Choose a tag to compare

  • Improved support for math: false mode: numbers can now contain uncertainties and exponents without the use of math.equation.
  • More selective number recognition in tables: Numerals need to start with one of 0123456789+-., to be automatically recognized as a number (⚠️Breaking change).
  • Fixes show rules on tables: it is now possible to apply rules like
      #show table.cell.where(y: 1): strong
      #show table.cell.where(y: 1): text.with(blue)
    and have it also affect cells where automatic number recognition and alignment is applied.

Special thanks to @Alex-Muirhead for work on math: false mode and a sharp eye when we hit diverging layout issues.

Version 0.3.0 (October 26, 2024)

26 Oct 19:04

Choose a tag to compare

  • Adds nonum[] function that can be used to mark content in cells as not belonging to the number. The remaining content may still be recognized as a number and formatted/aligned accordingly. The content wrapped by nonum[] is preserved.
  • Fixes number alignment tables with new version Typst 0.12.

Version 0.2.0 (October 3rd, 2024)

03 Oct 14:37

Choose a tag to compare

  • Added support for using non-math fonts for num via the option math. This can be activated by calling #set-num(math: false).
  • Performance improvements for both num() and ztable(9)

Version 0.1.0 (August 19th, 2024)

19 Aug 12:15

Choose a tag to compare

Initial release.

This package provides tools for academic number formatting with features like input parsing, rounding, digit grouping, scientific notation and more. In particular, the package can automatically align numerical data in a table.