Skip to main content

Module handler

Module handler 

Source
Expand description

The content handler that the cells feature contributes to the floats feature: CellsContent, named cells, which admits exactly one table of cells as a float’s content.

A float type declares the content handlers it admits (FloatType::handlers). The default table float type lists cells first, and lists the feature’s scoped package ENVIRONMENT_PACKAGE among the scoped packages of its body, so that \begin{cells} can be written there. The handler is contributed to the floats feature’s service slot CONTENT_SLOT as a peer contribution, regardless of the switch CellsConfig::global: a registry without the floats feature drops the contribution with one Note, and still builds.

Structs§

CellsContent
The content handler HANDLER (cells): it admits exactly one table of cells, a node of ENVIRONMENT (flm.cells.cells), and refuses any other content: two tables, text, a table beside a paragraph, or nothing at all. Its refusal reads “exactly one table of cells”, which the float’s rule reports as the end of the sentence “a ‘table’ must hold …”. See the module documentation.

Constants§

HANDLER
The name of the feature’s content handler, cells: a float type lists this name among its content handlers to admit one table of cells.