-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Features
谢耳朵 edited this page Feb 6, 2026
·
14 revisions
English | 中文版
luatex-cn provides a rich set of features for ancient Chinese book typesetting, ranging from core vertical engines to various decorative elements.
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.
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.
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.
-
TOC Entries: Added
\条目(v0.2.5+) with hierarchical indentation for table of contents.
-
Force Column:
\列(or\Column) forces content to start in a new column. -
Last Column:
\末列(or\LastColumn) places content in the last column of the current page. -
Page Breaks: Supports standard
\newpageand\clearpage.
- Seals: Add collection or personal seals anywhere with opacity support.
- Judou: Traditional punctuation marks (circles and dots). Enhanced support for more Chinese punctuation since v0.2.1.
- Fonts: Auto-detection, font families, and fallback chains for rare characters. Supports simplified/traditional Chinese font names since v0.2.2.
- Textbox: Grid-based layout with auto-compression and filling.
- Correction & Decoration: Correction marks (\fix) and character decoration (\decorate).
- Style Registry: Phase 2 multi-attribute style storage (color, font_size, grid_height), supports cross-page style preservation.
-
Metadata System: Centralized book metadata management (
\title,\publisher,\ChapterMarker). -
Debug Mode:
\LtcDebugOndisplays page grid coordinates,\LtcShowGridshows coordinate grid for layout debugging. - Plugin Architecture: Standardized plugin API with unified initialize/layout/render three-phase interfaces.
Preset classical styles available out-of-the-box. See Templates for details.
-
四库全书(Siku Quanshu): Qing Dynasty imperial style. -
四库全书彩色: Colored version of Siku Quanshu style. -
红楼梦甲戌本: Manuscript style with extensive annotations.
👉 Next Steps: Check Templates | Debug Mode | Examples
📜 LuaTeX-CN | Licensed under Apache License 2.0