-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Correction
[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" will have a deletion mark (、), and "correct" will appear at smaller size in the bottom-right corner.
- 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
The \decorate (or \装饰) command overlays decoration characters on each character in the content.
\decorate[options]{content}
% or Chinese alias
\装饰[参数]{内容}| Key | Description | Default |
|---|---|---|
char |
Decoration character | 。 |
color |
Decoration color | red |
xoffset / xshift
|
Horizontal offset | 0pt |
yoffset / yshift
|
Vertical offset | 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}A convenience wrapper for adding circle marks to the right side of characters.
\EmphasisMark[color=red]{content}
% or Chinese aliases
\着重号[color=red]{内容}
\圈点{内容}| Key | Description | Default |
|---|---|---|
color |
Mark color | red |
This is \EmphasisMark{important} content.
% or classical style
\圈点{要旨}In vertical typesetting, underlines appear as vertical lines on the left side of characters, used to mark proper nouns like personal names and place names.
\Underline[color=red, offset=0.6em]{content}
% or Chinese aliases
\下划线[color=red]{内容}
\下劃線{内容}
\专名号{内容}| Key | Description | Default |
|---|---|---|
color |
Line color | red |
offset |
Offset distance | 0.6em |
% Mark a person's name
Know \专名号{Sima Qian}.
% or use underline command
\Underline{Confucius} said: Learn and practice.In vertical typesetting, wavy underlines appear as wavy vertical lines on the left side of characters, used to mark book titles and chapter names.
\WavyUnderline[color=red, offset=0.6em]{content}
% or Chinese aliases
\波浪线[color=red]{内容}
\波浪線{内容}
\书名号{内容}| Key | Description | Default |
|---|---|---|
color |
Line color | red |
offset |
Offset distance | 0.6em |
% Mark a book title
Read \书名号{Records of the Grand Historian}.
% or use wavy underline command
\WavyUnderline{The Analerta} is a Confucian classic.📜 LuaTeX-CN | Licensed under Apache License 2.0