Comprehensive TeX Archive Network

Direc­tory tex-archive/macros/latex/contrib/zhnumber

The zhnumber package provides commands to typeset Chinese representations of
numbers. The main difference between this package and 'CJKnumb' is that commands
provided by this package is expandable in the proper way. So, it seems that
zhnumber is a good alternative to CJKnumb package.

It may be distributed and/or modified under the conditions of the
LaTeX Project Public License (LPPL), either version 1.3c of this license or
(at your option) any later version. The latest version of this license is in


and version 1.3 or later is part of all distributions of LaTeX version
2005/12/01 or later.

This work has the LPPL maintenance status "maintained".
The Current Maintainer of this work is Qing Lee.

This work consists of the file  zhnumber.dtx,
          and the derived files zhnumber.pdf,
                                zhnumber.ins and
                                README (this file).

Basic Usage
The package provides the following macros:

    Convert `number' to a full Chinese representation.

    Similar to \arabic{counter}, but representation of 'counter' as Chinese numerals.

    Handle `number' as a string of digits and convert each of them into the
    corresponding Chinese digit. The starred version uses the Chinese circle glyph
    for digit zero; the unstarred version uses the traditional glyph.

You can read the package manual (in Chinese) for more detailed explanations.

Qing Lee
Email: sobenlee@gmail.com

If you are interested in the process of development you may observe


The package is supplied in dtx format and as a pre-extracted zip file,
zhnumber.tds.zip. The later is most convenient for most users: simply
unzip this in your local texmf directory and run texhash to update the
database of file locations. If you want to unpack the dtx yourself,
running "xetex zhnumber.dtx" will extract the package whereas
"xelatex zhnumber.dtx" will typeset the documentation.

The package requires LaTeX3 support as provided in the l3kernel and l3packages
bundles. Both of these are available on CTAN as ready-to-install zip files.
Suitable versions are available in the latest version of MiKTeX and TeX Live
(updating the relevant packages online may be necessary).

To compile the documentation without error, you will need the xeCJK package
and some specific Chinese Simplified fonts (TrueType or OpenType).


Name Size Date Notes
README 2782 2016-02-02 17:00
zh­num­ber.dtx 65645 2016-02-02 16:40
zh­num­ber.pdf 325428 2016-02-02 17:01

Down­load the con­tents of this pack­age in one zip archive (326.8k).

zh­num­ber – Type­set Chi­nese rep­re­sen­ta­tions of num­bers

The pack­age pro­vides com­mands to type­set Chi­nese rep­re­sen­ta­tions of num­bers. The main dif­fer­ence be­tween this pack­age and CJKnumb is that the com­mands pro­vided are ex­pand­able in the ‘proper’ way.

Pack­age De­tailszh­num­ber
Li­censeThe LaTeX Project Public Li­cense 1.3
Copy­right2012,2014–2016 Qing Lee
Main­tainerQing Lee
TDS archivezhnumber.tds.zip
Con­tained inTeX Live as zh­num­ber
MiKTeX as zh­num­ber
Topics sup­port for type­set­ting Chi­nese lan­guages
for­mat­ting num­bers, etc
Guest Book Sitemap Contact Contact Author