-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Templates
谢耳朵 edited this page Feb 20, 2026
·
5 revisions
中文版 | English Version
luatex-cn provides a flexible template system with built-in and custom templates.
| Template Name | Document Class | Description |
|---|---|---|
四库全书 |
ltc-guji |
Classic official book style (B&W) |
四库全书彩色 |
ltc-guji |
Classic official book style (Color) |
红楼梦甲戌本 |
ltc-guji |
Manuscript style with side/top notes |
default |
ltc-cn-vbook / ltc-tw-vbook
|
Default modern vertical style (Taiwan punct) |
中华书局 |
ltc-cn-vbook |
Zhonghua Shuju modern style (Mainland punct) |
Specify the template name in document class options:
% guji templates
\documentclass[四库全书彩色]{ltc-guji}
\documentclass[红楼梦甲戌本]{ltc-guji}
% cn-vbook / tw-vbook templates (v0.2.7+)
\documentclass{ltc-cn-vbook} % Default template
\documentclass[中华书局]{ltc-cn-vbook} % Zhonghua Shuju templateCreate a luatex-cn-guji-<template-name>.cfg file in the configs/ directory:
\gujiSetup{ template = default }
\pageSetup{
paper-width = 1077.2pt,
paper-height = 1077.2pt,
}
\contentSetup{
n-column = 12,
font-size = 30pt,
border = true,
}
\banxinSetup{
upper-yuwei = true,
lower-yuwei = true,
}
\endinputCreate a luatex-cn-book-<template-name>.cfg file in the configs/ directory:
\pageSetup{
paper-width = 148mm,
paper-height = 210mm,
page-number-style = digits,
}
\contentSetup{
font-size = 11pt,
line-spacing = 13pt,
n-column = 0,
border = false,
}
\punctSetup{punct-style=taiwan}
\endinput\documentclass{ltc-guji}
\gujiSetup{
book-name = My Book Title,
chapter-title = Chapter One,
}
\contentSetup{
n-column = 10,
font-size = 24pt,
border = true,
}
\begin{document}
% ...
\end{document}| Command | Parameter | Description | Default |
|---|---|---|---|
\gujiSetup |
book-name |
Book name | - |
chapter-title |
Chapter title | - | |
template |
Template name | default |
|
\contentSetup |
n-column |
Columns per half page | 12 |
font-size |
Font size | 30pt | |
line-spacing |
Line spacing | 45pt | |
n-char-per-col |
Characters per column | 18 | |
border |
Show border | true | |
layout-mode |
Layout mode (v0.2.7+) | grid |
|
\pageSetup |
paper-width |
Paper width | - |
paper-height |
Paper height | - | |
margin-* |
Margins | - | |
page-number-style |
Number style (v0.2.7+) | none |
|
\banxinSetup |
banxin-upper-ratio |
Upper section ratio | 0.18 |
upper-yuwei |
Upper fish tail | true | |
\punctSetup |
punct-style |
Punct style (v0.2.7+) | taiwan |
punct-squeeze |
Squeeze (v0.2.7+) | true |
|
kinsoku |
Line-breaking rules (v0.2.7+) | true |
👉 Next: See Debug Mode or Features
📜 LuaTeX-CN | Licensed under Apache License 2.0