examyv1.1.0

choicefunction

#choice(
  body,
  bubble: "circle",
  correct: false,
  outset: auto,
  size: auto,
  stroke: auto,
  solution-color: auto,
  solution-background-color: auto,
)

A single bubble (round or square) followed by the choice it labels. For a list of choices, use #choices[..].

When solutions are shown, a correct: true bubble is filled in to indicate it is a correct choice.

Arguments

bodydefaultnone| content | str | int | floatpositional
The text of the choice, shown after the bubble. Leave it out (e.g. #choice[]) for a bubble on its own.
bubbledefault"circle"| "square"
The shape of the bubble: "circle" for "select one", "square" for "select all that apply".
correctbooldefaultfalse
Whether this choice is correct; has an effect only when solutions are shown.
outsetdefaultautobubble-outset| length | dictionary
The space around the bubble, specified like a box's inset. Sides given replace those of config's bubble-outset; the others are kept. Setting to auto uses config's bubble-outset.
sizedefaultautobubble-size| length
The diameter of a bubble. Setting to auto uses config's bubble-size.
strokedefaultautobubble-stroke| length | color | gradient | tiling | stroke | dictionary
The outline of the bubble, specified like config's bubble-stroke (e.g. .15em, blue, or .15em + blue). What it leaves out, its thickness or its color, is config's. Setting to auto uses config's bubble-stroke.
solution-colordefaultautosolution-color| color
The primary color for a correct bubble; i.e., the color of its outline, check mark, and text when filled in. Setting to auto uses config's solution-color.
solution-background-colordefaultautosolution-background-color| color
The background color for a correct bubble when filled in. Setting to auto uses config's solution-background-color.