Typst solution state
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user