You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can refer to a algorithms using the `{proof:ref}` role like: ```{proof:ref}`my-algorithm` ```, which will replace the reference with the algorithm number like so: {proof:ref}`my-algorithm`. When an explicit text is provided, this caption will serve as the title of the reference.
516
516
517
-
## Exercises
518
-
519
-
An exercise directive can be included using the `proof:exercise` pattern. The directive is enumerated by default and can take in an optional title argument. The following options are also supported:
520
-
521
-
*`label` : text
522
-
523
-
A unique identifier for your exercise that you can use to reference it with `{proof:ref}`. Cannot contain spaces or special characters.
524
-
*`class` : text
525
-
526
-
Value of the exercise’s class attribute which can be used to add custom CSS or JavaScript.
527
-
*`nonumber` : flag (empty)
528
-
529
-
Turns off exercise auto numbering.
530
-
531
-
**Example**
532
-
533
-
```{proof:exercise}
534
-
:label: my-exercise
535
-
536
-
Recall that $n!$ is read as "$n$ factorial" and defined as
You can refer to an exercise using the `{proof:ref}` role like: ```{proof:ref}`my-exercise` ```, which will replace the reference with the exercise number like so: {proof:ref}`my-exercise`. When an explicit text is provided, this caption will serve as the title of the reference.
0 commit comments