Skip to main content

graphic-marker

graphic-marker(fn, body)(source)

Mark body as a graphic drawn by fn, so that config-article(wrap: ..) can target it.

A drawing package's output is ordinary content by the time the article collects its floats, with nothing left to name it by, so the mark travels with it. touying-reducer applies this itself; use it for a static diagram that is not animated.

Example: #graphic-marker(cetz.canvas, cetz.canvas(..))

Parameters

fn : function​

The drawing function, such as cetz.canvas.

body : content​

The graphic.

Returns: content