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$.
:::
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}
$$
:::
\[
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
\]
With timer#
Use timer to delay the solution button. The value is in minutes.
:::{solution}
---
timer: 5
---
Step 1: Try the problem before opening the solution.
:::
Step 1: Try the problem before opening the solution.
Options#
Option |
Meaning |
Default |
|---|---|---|
|
Control dropdown behavior. Use |
collapsed |
|
Optional button-lock timer in minutes. |
no timer |