<solution>

The <solution> tag is optionally part of a structured <example>-like, <project>-like, or <exercise>. It contains the details of how to complete the problem, as opposed to a <hint> or merely the <answer>. The visibility and knowling behavior of hints, answers, and solutions can be controlled separately from the statement of the exercise, example, or project at the document level via the publication file.

Syntax

Variants

There are 2 variants of <solution>.

Examples

An <example> structured with statement, hint, answer, and solution

Solutions can also go on individual tasks of a highly structured project or exercise