-
Notifications
You must be signed in to change notification settings - Fork 10
EN:Textbox
谢耳朵 edited this page Feb 1, 2026
·
5 revisions
[English Version] | 中文版
luatex-cn provides powerful vertical text box capabilities with grid alignment.
The \TextBox (or \文本框) command creates an independent vertical text area.
\TextBox[options]{Content}| Key | Description | Default |
|---|---|---|
height |
Height in grid units. 0 for auto-extension. | 0 |
n-cols |
Number of columns. | 0 |
border |
Show border. | false |
background-color |
Background color. | None |
floating |
Enable floating mode (needs x, y). | false |
-
Auto-Extension: If
heightis 0, the box extends naturally. -
Compression (Flat Text): If
heightis fixed and content is too long, text is vertically compressed (v0.1.5). - Independent Indentation (v0.2.2+): Textbox content no longer inherits paragraph indentation from main text, ensuring layout independence (fix #37).
\FillTextBox (or \填充文本框) is a variant of \TextBox with default fill alignment.
\FillTextBox[height=10]{Content}👉 Next: Features.
📜 LuaTeX-CN | Licensed under Apache License 2.0