-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Correction
谢耳朵 edited this page Feb 6, 2026
·
9 revisions
[English Version] | 中文版
luatex-cn provides tools for classical text correction and decoration, including correction marks, emphasis marks, and underlines (proper name marks / book title marks).
The \fix (or \改) command marks corrections in classical text editing. It retains the original character with a deletion mark (、) and places the replacement character at the bottom right.
\fix{replacement}
% or Chinese alias
\改{替换字}This has a \fix{correct}wrong text.In this example, "wrong" is marked with a deletion symbol, and "correct" is placed at its bottom-right corner at 60% size.
- Deletion Mark: Automatically overlays a deletion point (、) on the character.
- Replacement Text: Placed at bottom-right corner at 60% of original font size.
- Non-destructive: Does not affect the original grid layout.
Preset commands for marking text according to classical or modern standards.
| Command | Alias | Description | Use Case |
|---|---|---|---|
\Underline |
\下划线 |
Straight line on the left | General highlighting |
\专名号 |
- | Straight line on the left | Proper names (Person, Place) |
\WavyUnderline |
\波浪线 |
Wavy line on the left | General highlighting |
\书名号 |
- | Wavy line on the left | Book/Article titles |
Options ([options]):
-
color: Line color (default:red). -
offset: Distance from text (default:0.6em).
Example:
\专名号[color=black]{Confucius}
\书名号{The Analects}| Command | Alias | Description |
|---|---|---|
\EmphasisMark |
\着重号 |
Add small circles (。) to the right of each char |
\圈点 |
- | Same as above |
Example:
\EmphasisMark{Very Important}The \decorate (or \装饰) command allows overlaying arbitrary content on each character.
\decorate[options]{content}| Key | Description | Default |
|---|---|---|
char |
Decoration character | 。 |
color |
Color | red |
xoffset |
Horizontal offset (xshift) | 0pt |
yoffset |
Vertical offset (yshift) | 0pt |
scale |
Scale factor | 1.0 |
font-size |
Force specific font size | auto |
% Add a red circle on each character in "important"
\decorate[char=○, scale=0.8, color=red]{important}📜 LuaTeX-CN | Licensed under Apache License 2.0