Skip to content

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:

😱 Types incomplete or incorrect? 🙏 Please contribute!