-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Home
Frank Lin edited this page Aug 7, 2026
·
20 revisions
English | 中文版
Welcome to the LuaTeX-CN Wiki. This site provides comprehensive documentation for users and developers to help you create high-quality Chinese typesetting with LuaTeX-CN — classical vertical books, modern vertical books, and clreq-conformant horizontal documents.
- 🚀 Quick Start - Get started with your first project in 5 minutes
- 📦 Installation - Install LuaTeX-CN on your system
- 📚 Examples - Explore "Records of the Grand Historian" (Shiji) and "Dream of the Red Chamber"
- Templates & Format - Understand the "Banxin" (Page Center) concept
- Font Setup - Config Chinese fonts and fallback chains
- Layout Control - Chapters, TOC entries, and fine-grained layout control
Vertical — four document classes
- guji (Ancient Books) - Traditional vertical typesetting (default class)
- guji-digital - Digitization mode: one source line = one vertical column, for reproducing a source edition's page layout exactly
- cn-vbook / tw-vbook (Modern Books) - Modern vertical books with punct squeeze and footnotes
Horizontal — one package
-
\usepackage{luatex-cn} (horizontal) - Modern horizontal Chinese per W3C clreq: CJK–Western spacing, four kinsoku levels, per-line compression/stretch, interlinear marks and ruby, paragraph and widow control. Loads on top of
articleand friends — it is a package, not a class - clreq conformance matrix - per-clause status for both directions, with evidence and documented deviations
- Punctuation System - Modern punct styles (mainland/Taiwan), squeeze, kinsoku
- Judou - Classical Chinese punctuation (judou/plain/normal modes)
- Interlinear & Side Notes - Detailed usage of jiazhu and side notes
- Annotations & Marginal Notes - Floating annotations and marginal notes (MeiPi)
- Decorations - Underlines, book titles, and correction marks
- Elevation - Honorific elevation formatting
- Text Boxes - Absolute positioning and adaptive containers
- Seals - Adding and positioning electronic seals
- Debugging - Grid visualization and layout debugging
For information on contributing or understanding the internal architecture:
- Contact: Sheldon Li (sheldonli.dev@gmail.com), Frank Lin (ctan@linshuang.info)
📜 LuaTeX-CN | Licensed under Apache License 2.0