-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Quick Start
谢耳朵 edited this page Feb 15, 2026
·
4 revisions
English | 中文版
This page helps you quickly get started with luatex-cn for traditional Chinese book typesetting.
\documentclass[四库全书]{guji}
% Optional: specify font
% \setmainfont{Noto Serif SC}
\title{钦定四库全书}
\chapter{史记\\卷一}
\begin{document}
\begin{正文}
This is sample vertical text for ancient book typesetting.
\end{正文}
\end{document}Main text\\夹注{This is interlinear note content, auto-balances}continued text.Main text\\侧批[yoffset=10pt]{This is side note content}continued text.\\begin{段落}[indent=2]
天地玄黄\\\\
宇宙洪荒
\\end{段落}Need\\空格[2]two spaces here.\\批注[x=5cm, y=2cm, height=6, color={1 0 0}]{Annotation content}\\印章[page=1, xshift=2cm, yshift=5cm]{seal.png}End of this column\\\\
Start of new column\title{Book Title}
\publisher{Publisher Name}
\ChapterMarker{Volume 1}Or using the setup command:
\metadataSetup{
title = Book Title,
publisher = Publisher Name
}\LtcDebugOn % Enable debug ruler, shows grid coordinates
\LtcDebugOff % Disable debug modeChoose preset styles via document class options:
| Option | Description |
|---|---|
四库全书 |
Qing Dynasty Siku Quanshu style, single fishtail |
红楼梦甲戌本 |
Manuscript style, no fishtail |
\\documentclass[四库全书]{guji}
% or
\\documentclass[红楼梦甲戌本]{guji}📜 LuaTeX-CN | Licensed under Apache License 2.0