Added short warning to typst lib
This commit is contained in:
@ -32,6 +32,7 @@
|
||||
title: none,
|
||||
by: none,
|
||||
subtitle: none,
|
||||
short_warning: false,
|
||||
) = {
|
||||
set page(
|
||||
margin: 20mm,
|
||||
@ -92,7 +93,7 @@
|
||||
|
||||
// Make handout title
|
||||
{
|
||||
import "header.typ": make_header, solution_warning
|
||||
import "header.typ": make_header, solution_warning, short_solution_warning
|
||||
import "solution.typ": show_solutions
|
||||
|
||||
let url = link(
|
||||
@ -108,8 +109,13 @@
|
||||
top_right: url,
|
||||
)
|
||||
|
||||
|
||||
if show_solutions {
|
||||
solution_warning()
|
||||
if short_warning {
|
||||
short_solution_warning()
|
||||
} else {
|
||||
solution_warning()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user