Skip to content

EN:Features

谢耳朵 edited this page Jan 29, 2026 · 14 revisions

English | 中文版

Features Overview

luatex-cn provides a rich set of features for ancient Chinese book typesetting, ranging from core vertical engines to various decorative elements.

1. Core Typesetting Engine

A grid-based layout system built on LuaTeX for high-precision vertical text flows.

  • RTT Direction: Native support for top-to-bottom, right-to-left direction.
  • Grid Positioning: Characters are precisely aligned to a defined grid.
  • Pagination & Column Flow: Handles complex page splitting and column transitions automatically.

2. Traditional Book Elements

Full support for visual elements required by traditional binding:

  • Banxin & Yuwei: Support for single/double fishtails, black silk frames, etc.
  • Split Page: Support for electronic reading and traditional "tube page" binding.
  • Border System: Double borders, inner borders, and customizable thickness.

3. Annotation & Revision System

Multiple ways to add comments to the text:

  • Interlinear Notes: Double-line small text within main body with auto-balancing.
  • Side Notes: Vertical annotations between text columns.
  • Annotations: Floating annotation boxes placed anywhere on the page.

4. Decorations & Utilities

  • Seals: Add collection or personal seals anywhere with opacity support.
  • Judou: Traditional punctuation marks (circles and dots).
  • Fonts: Auto-detection, font families, and fallback chains for rare characters.
  • Textbox: Grid-based layout with auto-compression and filling.
  • Correction & Decoration: Correction marks (\fix) and character decoration (\decorate).

5. Template System

Preset classical styles available out-of-the-box:

  • 四库全书 (Siku Quanshu): Qing Dynasty imperial style.
  • 红楼梦甲戌本: Manuscript style with extensive annotations.

👉 Next Steps: Check Quick Start or Examples.

Clone this wiki locally