How to expose layout information as metadata?

this is similar to how context produces opaque content blocks:

in this case, what you wanna do is produce the labeled metadata from within the layout callback, which is where you actually have access to the value:

#layout(size => [#metadata(size.width.mm())<layout>])
1 Like