fix: update template to new API

This commit is contained in:
Popa committed 2026-09-11 15:19:40 +02:00
1 parent 66b6c98cd0
commit 11b70aea9a
1 file changed
+6 -6
+6 -6
View File
@@ -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( #let logo = box(
width: 2.4cm, width: 2.4cm,
@@ -17,14 +17,14 @@
([Jane Doe], [John Doe]), ([Jane Doe], [John Doe]),
[Taylor Tutor], [Taylor Tutor],
logo: logo, logo: logo,
show-end-message: true, show-credits: true,
end-message: [Typeset with #link("https://typst.app")[Typst].], credits: [Typeset with #link("https://typst.app")[Typst].],
body, body,
) )
= Exercise 1 = Exercise 1
#ex_box( #exercise(
heading: [Warm-up], heading: [Warm-up],
points: [10 points], points: [10 points],
)[ )[
@@ -38,7 +38,7 @@ Proof by induction. #qed
= Exercise 2 = Exercise 2
#ex_box(points: [15 points])[ #exercise(points: [15 points])[
Implement a function that returns the first $n$ Fibonacci numbers. Implement a function that returns the first $n$ Fibonacci numbers.
] ]
@@ -57,6 +57,6 @@ def fibonacci(n: int) -> list[int]:
= Exercise 3 = Exercise 3
#ex_box(heading: [Discussion])[ #exercise(heading: [Discussion])[
Compare the iterative and recursive solutions. Compare the iterative and recursive solutions.
] ]