lib module

legend function

#let legend(entries: none, position: top + right, inset: 8pt)

Documentation

Construct a compact categorical legend.

Parameters

  • entries (array): Legend entries containing color and label fields. Default: none.
  • position (any): Typst alignment used to place the legend. Default: top + right.
  • inset (length): Distance from the selected render edge. Default: 8pt.

Returns

dictionary

Defined in lib.typ:527.

Source

Module
lib
Defined in
lib.typ:527
Source
View source