fix: update template to new API
This commit is contained in:
1 file changed
+6
-6
+6
-6
@@ -1,4 +1,4 @@
|
||||
#import "@preview/clean-sheets:0.3.0": base-template, ex_box, qed
|
||||
#import "@preview/clean-sheets:0.3.0": base-template, exercise, qed
|
||||
|
||||
#let logo = box(
|
||||
width: 2.4cm,
|
||||
@@ -17,14 +17,14 @@
|
||||
([Jane Doe], [John Doe]),
|
||||
[Taylor Tutor],
|
||||
logo: logo,
|
||||
show-end-message: true,
|
||||
end-message: [Typeset with #link("https://typst.app")[Typst].],
|
||||
show-credits: true,
|
||||
credits: [Typeset with #link("https://typst.app")[Typst].],
|
||||
body,
|
||||
)
|
||||
|
||||
= Exercise 1
|
||||
|
||||
#ex_box(
|
||||
#exercise(
|
||||
heading: [Warm-up],
|
||||
points: [10 points],
|
||||
)[
|
||||
@@ -38,7 +38,7 @@ Proof by induction. #qed
|
||||
|
||||
= Exercise 2
|
||||
|
||||
#ex_box(points: [15 points])[
|
||||
#exercise(points: [15 points])[
|
||||
Implement a function that returns the first $n$ Fibonacci numbers.
|
||||
]
|
||||
|
||||
@@ -57,6 +57,6 @@ def fibonacci(n: int) -> list[int]:
|
||||
|
||||
= Exercise 3
|
||||
|
||||
#ex_box(heading: [Discussion])[
|
||||
#exercise(heading: [Discussion])[
|
||||
Compare the iterative and recursive solutions.
|
||||
]
|
||||
Reference in new issue
Block a user