Skip to content

EN:Correction

谢耳朵 edited this page Feb 6, 2026 · 9 revisions

[English Version] | 中文版

Correction & Decoration

luatex-cn provides tools for classical text correction and decoration, including correction marks, emphasis marks, and underlines (proper name marks / book title marks).

Correction (GaiZi)

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.

Usage

\fix{replacement}
% or Chinese alias
\改{替换字}

Example

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.

Technical Details

  • 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.

Text Decoration

Preset commands for marking text according to classical or modern standards.

1. Underline Marks

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}

2. Emphasis Marks

Command Alias Description
\EmphasisMark \着重号 Add small circles (。) to the right of each char
\圈点 - Same as above

Example:

\EmphasisMark{Very Important}

Generic Decoration

The \decorate (or \装饰) command allows overlaying arbitrary content on each character.

Usage

\decorate[options]{content}

Parameters

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

Example

% Add a red circle on each character in "important"
\decorate[char=○, scale=0.8, color=red]{important}

👉 Next: Textbox or Features.

Clone this wiki locally