Typst solution state

This commit is contained in:
2025-03-02 14:40:22 -08:00
parent acf57ceab6
commit 8d49154277
2 changed files with 52 additions and 19 deletions

View File

@ -93,7 +93,9 @@
// Make handout title
{
import "header.typ": make_header, solution_warning
import "solution.typ": show_solutions
import "solution.typ": solutions_state, reset_solutions
reset_solutions()
let url = link(
"https://betalupi.com/handouts",
@ -108,8 +110,10 @@
top_right: url,
)
if show_solutions {
solution_warning()
context {
if solutions_state.get() {
solution_warning()
}
}
}