Boxed Chinese characters with Pinyin above and translation below based LaTeX3
hanzibox is a LaTeX package developed in LaTeX3, which provides
\writegrid macros. These macros are used for typesetting Chinese character with or without a background grid such as a cross grid or star grid for Chinese character writting learning.
And you can display the Hanyu Pinyin above the Chinese character and the translation below them as needed.
\hanzibox macro can automatically invoke the
\xpinyin* macro of the
xpinyin package to get Hanyu Pinyin according to the Chinese characters. And the
\hanzibox macro provides an asterisk version of
\hanzibox*, whose function is achieved by automatically invoking the
\pinyin macro to get Hanyu Pinyin. The
\hanzidialog macro is implemented by manually inserting the
\pinyin macro of the
xpinyin package in it's pinyin option. The
\writegrid macro is for write a composition anwser grid.
hanzibox is a utility for learning to write and pronounce Chinese characters, and can be used for Chinese character learning plans, presentations, exercise booklets and other documentation work.
The development of this package was inspired by Jan Vorisek's hanzibox package.
However, the new package redesigned the
\hanzidialog macros and the background grid is redesigned with the
l3draw package by reference to zitie package. Also, the new package provides more options and arguments in order to get better results.
hanzibox.sty package currently only supports the XeTeX engine and only supports UTF-8 encoded LaTeX source files.
You can read the manual (in Chinese) for more details and examples.
- github repository:
- gitee repository:
Copyright and Licence
Copyright (C) 2020-2022 by Nan Geng <email@example.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 http://www.latex-project.org/lppl/lppl-1-3c.txt and the latest version of this license is in http://www.latex-project.org/lppl.txt 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 Nan Geng.
This package consists of the file hanzibox.dtx, and the derived files hanzibox.sty, hanzibox.pdf, hanzibox.ins, README.md (this file).
Download the contents of this package in one zip archive (601.8k).
hanzibox – Boxed Chinese characters with Pinyin above and translation below
This is a LaTeX package written to simplify the input of Chinese with Hanyu Pinyin and translation. Hanyu Pinyin is placed above Chinese with the xpinyin package, and the translation is placed below.
The package can be used as a utility for learning to write and pronounce Chinese characters, for Chinese character learning plans, presentations, exercise booklets and other documentation work.
|Licenses||The LaTeX Project Public License 1.3c|
|Copyright||2020–2022 Nan Geng|
|Contained in||TeX Live as hanzibox|
MiKTeX as hanzibox