examyv1.1.0

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 | strrequiredpositional
The content of the box (e.g. a prompt or a #solution[..]). Can be blank (e.g., #answer-box[]).
solutiondefaultnone| content
A 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.
widthdefaultautoanswer-box-width| length | ratio | relative | fraction
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.
heightdefaultautoanswer-box-height| length | ratio | relative | fraction | none

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% - .33em
The vertical position of a box placed inline in a sentence.
default-heightdefaultautoanswer-box-default-height| length
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.
default-widthdefaultautoanswer-box-default-width| length
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.
strokedefaultautoanswer-box-stroke| length | color | gradient | tiling | stroke | dictionary | none
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.
filldefaultautoanswer-box-fill| color | gradient | tiling | none
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 | dictionarydefault0pt
Same as a box's radius.
outsetlength | ratio | relative | dictionarydefault0pt
Same as a box's outset.
clipbooldefaultfalse
Same as a box's clip.