lib module

marker function

#let marker(
  node: none,
  body: none,
  offset: (x: 0pt, y: 0pt),
  size: 5pt,
  fill: white,
  stroke: 0.8pt + black,
)

Documentation

Construct a node-anchored marker. If body is omitted, a circle is drawn.

Parameters

  • node (int): Node ID to mark. Default: none.
  • body (none, content): Optional marker content; none draws a circle. Default: none.
  • offset (dictionary): Typst x and y length offsets from the projected node. Default: (x: 0pt, y: 0pt).
  • size (length): Marker width and height. Default: 5pt.
  • fill (any): Circle fill accepted by Typst. Default: white.
  • stroke (any): Circle stroke accepted by Typst. Default: 0.8pt + black.

Returns

dictionary

Defined in lib.typ:410.

Source

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