Releases: Mc-Zen/zero
Version 0.6.1 (Feburary 2nd, 2026)
Version 0.6.0 (January 13th, 2026)
Changelog
Version 0.6.0
Exponent modes and rounding improvements
Exponents:
⚠️ Breaking Change: Removes the parameternum.fixedwhich is now replaced by the exponent modefixed(see below).- Adds new exponent modes:
autofor 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: trueto 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.tiesto 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 spellingzi.metreandzi.litrehave been removed for consistency and to avoid confusion.- Adds an option
unit.lowercase-literthat enables a lower case symbol for the unit liter.
Miscellaneous:
- Fixes parsing of
[#""]values in formatted tables.
Version 0.5.0 (August 21st, 2025)
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. Themodecan no longer benone, instead it defaults to"places"while the default precision isnonemeaning 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)
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
zimodule 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.kinddetection ofztable. - Fixes direct usage of
nonuminztable. - Fixes uncertainties in combination with a
fixedexponent.
Version 0.3.3 (Feburary 20th, 2025)
Fixes an issue with negative numbers in parentheses due to a change in Typst 0.13.
Version 0.3.2 (January 11th, 2024)
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)
- Improved support for
math: falsemode: numbers can now contain uncertainties and exponents without the use ofmath.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
and have it also affect cells where automatic number recognition and alignment is applied.
#show table.cell.where(y: 1): strong #show table.cell.where(y: 1): text.with(blue)
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)
- 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 bynonum[]is preserved. - Fixes number alignment tables with new version Typst 0.12.
Version 0.2.0 (October 3rd, 2024)
- Added support for using non-math fonts for
numvia the optionmath. This can be activated by calling#set-num(math: false). - Performance improvements for both
num()andztable(9)
Version 0.1.0 (August 19th, 2024)
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.