answer-boxelement
#answer-box(
body,
solution: none,
width: auto,
height: auto,
baseline: 50% - .33em,
default-height: auto,
default-width: auto,
stroke: auto,
fill: auto,
radius: 0pt,
outset: 0pt,
clip: false,
)A box for students to write their answers in.
Arguments
bodycontent | strrequiredpositionalThe content of the box (e.g. a prompt or a
#solution[..]). Can be blank (e.g., #answer-box[]).solutiondefaultnone| contentA solution shown at the end of the box (e.g.
#answer-box(solution: [42])[]). This is equivalent to writing #solution[..] as the last item of content in body.The width of the box. Set to a fraction (e.g.
1fr) to fill the rest of the line. Setting to auto uses config's answer-box-width.The height of the box. Setting to auto uses config's answer-box-height. Can be any length unit including fractional units (e.g. 1fr), along with a special value:
none: if non-empty, fits the box's content, ignoring #solution[..]s, whatever config's answer-box-height is. This value ensures an exam and answer key have the same layout.
An empty box with height none gets a height of default-height.
baselinelength | ratio | relativedefault50% - .33emThe vertical position of a box placed inline in a sentence.
The height of the box when it is empty and its height is otherwise unspecified. Setting to
auto uses config's answer-box-default-height.The width of the box when its width is
auto, unless its height is a fractional unit (e.g. 2fr). Setting to auto uses config's answer-box-default-width.The outline stroke of the box, specified like a
box's stroke (e.g. (bottom: .5pt) for a single line to write on). Setting to auto uses config's answer-box-stroke.The background color of the box, specified like a
box's fill (e.g. luma(245)). Setting to auto uses config's answer-box-fill.radiuslength | ratio | relative | dictionarydefault0ptSame as a
box's radius.outsetlength | ratio | relative | dictionarydefault0ptSame as a
box's outset.clipbooldefaultfalseSame as a
box's clip.