xpinyin v3.1 LaTeX Package User Manual

This manual describes the usage, options, and implementation details of the xpinyin v3.1 LaTeX package for automatic Pinyin annotation of Chinese characters.


xpinyin v3.1 LaTeX Package User Manual - cover page
Brand
xpinyin
Category
Other software
Document type
User Manual
Language
Chinese
Pages
19
File format
PDF
File size
205 KB
Published
21 October, 2026
Updated
21 October, 2026
MD5 checksum
E1A2C8E59591D6C0606155CFFA66C27E

About this manual

The xpinyin package is a LaTeX extension designed to provide automatic Pinyin annotation for Chinese characters. It supports source files encoded in both GBK and UTF-8 and automatically selects the necessary dependencies (such as CJK, CJKutf8, or xeCJK) based on the compilation engine used (LaTeX, pdfLaTeX, or XeLaTeX). The package ensures correct output of tone marks by utilizing appropriate Western fonts. This manual is written in Chinese.

What's inside

  • Introduction
  • Basic Usage
  • User Manual
  • Code Implementation
  • Options
  • Dependencies
  • Font Settings
  • Multi-reading Characters
  • Disable/Enable Pinyin
  • Setup Commands

Frequently asked questions

Which compilation engines does xpinyin support?

The package supports LaTeX, pdfLaTeX, and XeLaTeX, automatically selecting the appropriate CJK or xeCJK dependencies.

How can I set the default Pinyin font?

By default, the Pinyin font is set to match the document's main font (\normalfont), but it can be changed using the 'font' option.

How do I handle multi-reading characters?

For multi-reading characters, you can use the \xpinyin command to set a specific pronunciation, or use the 'multiple' option to highlight them.

Download PDF (205 KB)