name-blockfunction
#name-block(
title: none,
fields: ((prefix: [Name:]), (prefix: [Student ID:])),
)A block of lines for students to fill in their name and other details.
Note: it uses the document's font. To change it, use a set rule (e.g. #{ set text(font: "DejaVu Sans Mono"); name-block() }).
Arguments
titledefaultnone| contentA heading shown centered above the block.
fields(dictionary | content)[]default((prefix: [Name:]), (prefix: [Student ID:]))The rows of the block. A dictionary
(prefix: .., suffix: ..) (both optional) draws the prefix, a line to write on, and the suffix. Any other content is shown as is, as a row of its own.