alias HpackQualityCallback
(alias) HpackQualityCallback = fun(incident: ("overfull"|"underfull"|"loose"|"tight"), detail: integer, head: Node, first: integer, last: integer) -> Node
This callback can be used to intercept the overfull messages that can result from packing a horizontal list (as happens in the par builder).
The incident is one of overfull
, underfull
, loose
or
tight
. The detail is either the amount of overflow in case of overfull
, or the badness otherwise. The head is the list that is constructed
(when protrusion or expansion is enabled, this is an intermediate list).
Optionally you can return a node, for instance an overfull rule indicator. That
node will be appended to the list (just like TeX's own rule would).
Reference:
- Corresponding C source code: packaging.c#L862
- Corresponding C source code: packaging.c#L932
😱 Types incomplete or incorrect? 🙏 Please contribute!