Reference

Every function Keisen exports, with its arguments and defaults.

The complete Keisen API: the entry point, the table parts, the formatters, the locations, the aggregations, and the theme options.

Everything in this section is read from the source. tests/unit/test-exports.typ holds lib.typ to a list of public names, so an accidental export cannot slip in, though nothing yet checks that list against these pages.

A document imports the package from Typst Universe, which loads lib.typ. Everything a document needs comes out of that one file, the nanoplot renderers included, because a Typst package specification cannot carry a subpath: @preview/keisen:x.y.z/src/... is not valid syntax, so a module reachable only from a clone would be reachable by nobody who installs the package.

The pages

  • Entry point for display-table and the three selectors every directive takes.
  • Table parts for the header, the stub, row groups, spanners, notes, styles, and options.
  • Columns for labelling, aligning, sizing, hiding, moving, and combining columns.
  • Formatters for turning a value into the notation it is read in.
  • Nanoplots for the in-cell renderers and the domain they share.
  • Locations for addressing cells by what the data says.
  • Aggregations for summary rows and the functions that fill them.
  • Themes and options for the four presets and every option key.
  • Serialised specifications for reaching the pipeline from another language.
  • Figures and Quarto for wrapping a table in a float.

Limitations

  • Summary rows require groups, from table-stub(group: ..) or from table-row-group; use grand-summary-rows for a table without them. Rows outside every declared group are summarised by the grand summary alone.
  • Neither a nanoplot column nor a combined column can be summarised: a series of readings has nothing to aggregate, and a combined column holds content rather than quantities. Naming either in summary-rows is an error rather than a blank cell.
  • A combined column is opaque, so it is not decimal-aligned and infers start alignment.
Back to top