| 1 |
Visual debugging for LuaTeX |
| 2 |
=========================== |
| 3 |
|
| 4 |
The LuaTeX package `lua-visual-debug` shows boxes, glues, kerns and penalties in the PDF output. |
| 5 |
|
| 6 |
Usage: |
| 7 |
|
| 8 |
LaTeX: |
| 9 |
|
| 10 |
\usepackage{lua-visual-debug} |
| 11 |
|
| 12 |
or plain: |
| 13 |
|
| 14 |
\input lua-visual-debug.sty |
| 15 |
|
| 16 |
or OpTeX: |
| 17 |
|
| 18 |
\load[lua-visual-debug] |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
Requirements: The package has only been tested with LuaTeX and |
| 23 |
the formats plain and LaTeX. Other formats might work as well, |
| 24 |
but other engines only show a warning message. |
| 25 |
|
| 26 |
|
| 27 |
Copyright 2012–2025 Patrick Gundlach (<[email protected]>) and others (see Git information) |
| 28 |
|
| 29 |
Package version: 2026-04-24 v1.1 |
| 30 |
|
| 31 |
Public repository: <https://github.com/Udi-Fogiel/lvdebug> |
| 32 |
|
| 33 |
Licensed under the MIT license. See the Lua file for details. |
| 34 |
|
| 35 |
The idea is heavily inspired by Hans Hagen's <https://www.pragma-ade.com/articles/art-visi.pdf> |
| 36 |
|
| 37 |
|
| 38 |
Example output |
| 39 |
-------------- |
| 40 |
|
| 41 |
<p align="center"><img width="300px" src="https://i.imgur.com/S78jTxb.png"></p> |