From Newsgroup: comp.text.tex
Liam Huang submitted an update to the
zhnumber
package.
Version: 3.1
License: lppl1.3c
Summary description: Typeset Chinese representations of numbers
Announcement text: --------------------------------------------------------------------------------
This release of zhnumber v3.1 adds counting-rod numeral support, new date formatting options, several bug fixes, and compatibility updates.
NEW FEATURES
- Added counting-rod numerals `\zhrod` and `\zhrodbox`, along with the configuration command `\zhrodsetup` (#366).
- Added support for outputting year-only or year-and-month dates.
BUG FIXES
- Fixed a typo where `\zhdigwithoptions` passed its options as an extra argument to `\zhnum_digits_counter:n`. Previously, `\zhdig` with options would error with "Use of \??? doesn't match its definition" and produce garbled output (#1008).
- Fixed a typo where the `Tn` key was bound to the Heavenly-Stems-and-Earthly-Branches (o|#uo>) variable instead of the Heavenly Stems (on-o|#) variable. Setting `Tn` previously affected the output of `\zhganzhi` rather than `\zhtiangan` (#1077).
IMPROVEMENTS
- Documented the behavior of option-bearing forms when written to auxiliary files: the counter value is frozen at write time, while the style is applied when the auxiliary file is read back (#1008).
- `\zhnum` and `\zhdig` with options now expand the counter to its numeric value before passing it to the underlying implementation, so that the counter value is frozen when written to `.toc` and similar auxiliary files (#1008).
- Replaced the deprecated `\keys_set_filter:nnnN` with `\keys_set_exclude_groups:nnnN` to avoid errors under debug mode starting from l3kernel 2026-09-09 (#1095).
- Raised the minimum required LaTeX3 version to 2025/10/09.
Source code:
https://github.com/CTeX-org/ctex-kit
Issue tracker:
https://github.com/CTeX-org/ctex-kit/issues --------------------------------------------------------------------------------
This package is located at
https://mirrors.ctan.org/macros/latex/contrib/zhnumber
More information is at
https://ctan.org/pkg/zhnumber
--------------------------------------------------------------------------------
Thanks for the upload.
For the CTAN Team
Manfred Lotz
CTAN is run entirely by volunteers and supported by TeX user groups.
Please join a user group or donate to one, see
https://ctan.org/lugs .
--- Synchronet 3.22a-Linux NewsLink 1.2