solution directive#
The solution directive creates a full-solution admonition that is collapsed by default. Students expand it to see the solution.
Basic usage#
:::{solution}
Step 1: Set up the equation.
Step 2: Solve for $x$.
:::
Løsning
Step 1: Set up the equation.
Step 2: Solve for \(x\).
With custom title#
:::{solution} Full solution
$$
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
$$
:::
Full solution
\[
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\]
Options#
Option |
Meaning |
Default |
|---|---|---|
|
Control dropdown behavior. Use |
collapsed |