examyv1.1.0

solutionelement

#solution(
  body,
  width: none,
  color: auto,
  background-color: auto,
  otherwise: none,
)

A solution to a question/part/subpart, shown only when solutions are shown (see config's show-solutions).

Arguments

bodycontentrequiredpositional
The solution content.
widthdefaultnone| auto | relative
The width of the solution box. Setting to auto fits the content; none lets the surrounding content decide (e.g. a solution on its own in an #answer-box[..] fills its width).
colordefaultautosolution-color| color
The color of the text of the solution. Setting to auto uses config's solution-color.
background-colordefaultautosolution-background-color| color
The background color for the solution. Setting to auto uses config's solution-background-color.
otherwisedefaultnone| content

Content shown in place of the solution when solutions are hidden. Can be used to show, for example, lined paper when no solution is visible.

Note: to provide space for a student to write an answer use #answer-box[..] instead.