CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/xpinyin



xpinyin is a package written to simplify the input of Hanyu Pinyin. The package provides macros to automatically add pinyin to Chinese characters. It can only be used in conjunction with xeCJK or CJK/CJKutf8 package.

Given that the implementation of pinyin package of CJK bundle is not very well, it seems that xpinyin is a good replacement of it.

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


This package is a part of the ctex-kit project.

Issues and pull requests are welcome.

Copyright and Licence

Copyright (C) 2012-2022 by Qing Lee <sobenlee@gmail.com>
This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either
version 1.3c of this license or (at your option) any later
version. This version of this license is in
and 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 package consists of the file  xpinyin.dtx,
             and the derived files xpinyin.sty,
                                   xpinyin-database.def and
                                   README.md (this file).

Download the contents of this package in one zip archive (209.8k).

xpinyin – Automatically add pinyin to Chinese characters

The package is written to simplify the input of Hanyu Pinyin. Macros are provided that automatically add pinyin to Chinese characters.

Home pagehttp://www.ctex.org/HomePage
Bug trackerhttps://github.com/CTeX-org/ctex-kit/issues
Version3.0 2022-06-04
LicensesThe Project Public License 1.3c
Copyright2012–2022 Qing Lee
MaintainerQing Lee
TDS archivexpinyin.tds.zip
Contained inTeX Live as xpinyin
MiKTeX as xpinyin
Experimental 3
Guest Book Sitemap Contact Contact Author