Skip to content

EN:Quick Start

谢耳朵 edited this page Jan 27, 2026 · 4 revisions

English | 中文版

Quick Start

This page helps you quickly get started with luatex-cn for traditional Chinese book typesetting.

Basic Template

\documentclass[四库全书]{ltc-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}

Common Commands

Interlinear Notes (Double-line Small Text)

Main text\\夹注{This is interlinear note content, auto-balances}continued text.

Side Notes

Main text\\侧批[yoffset=10pt]{This is side note content}continued text.

Paragraph Indentation

\\begin{段落}[indent=2]
    天地玄黄\\\\
    宇宙洪荒
\\end{段落}

Spaces

Need\\空格[2]two spaces here.

Annotation Box

\\批注[x=5cm, y=2cm, height=6, color={1 0 0}]{Annotation content}

Seal

\\印章[page=1, xshift=2cm, yshift=5cm]{seal.png}

Force Column Break

End of this column\\\\
Start of new column

Preset Styles

Choose preset styles via document class options:

Option Description
四库全书 Qing Dynasty Siku Quanshu style, single fishtail
红楼梦甲戌本 Manuscript style, no fishtail
\\documentclass[四库全书]{ltc-guji}
% or
\\documentclass[红楼梦甲戌本]{ltc-guji}

Next Steps

Clone this wiki locally