lib module

label function

#let label(body, node: none, offset: (x: 4pt, y: -4pt))

Documentation

Construct a Typst-native node label annotation. offset.x and offset.y shift the label after projection; positive values move right and down.

Parameters

  • body (content): Label content.
  • node (int): Node ID to annotate. Default: none.
  • offset (dictionary): Typst x and y length offsets from the projected node. Default: (x: 4pt, y: -4pt).

Returns

dictionary

Defined in lib.typ:394.

Source

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