lib edits
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
#import "misc.typ": *
|
#import "misc.typ": *
|
||||||
#import "object.typ": definition, example, generic, problem, remark, theorem
|
#import "object.typ": definition, example, generic, problem, remark, theorem
|
||||||
#import "solution.typ": (
|
#import "solution.typ": (
|
||||||
if_no_solutions, if_solutions, if_solutions_else, instructornote,
|
if_no_solutions, if_solutions, if_solutions_else, instructornote, review_box,
|
||||||
sample_solution, solution,
|
sample_solution, solution,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -30,12 +30,17 @@
|
|||||||
by: none,
|
by: none,
|
||||||
subtitle: none,
|
subtitle: none,
|
||||||
short_warning: false,
|
short_warning: false,
|
||||||
|
page_numbers: true,
|
||||||
) = {
|
) = {
|
||||||
set page(
|
set page(
|
||||||
margin: 20mm,
|
margin: 20mm,
|
||||||
width: 8.5in,
|
width: 8.5in,
|
||||||
height: 11in,
|
height: 11in,
|
||||||
footer: align(center, context counter(page).display()),
|
footer: {
|
||||||
|
if page_numbers {
|
||||||
|
align(center, context counter(page).display())
|
||||||
|
}
|
||||||
|
},
|
||||||
footer-descent: 5mm,
|
footer-descent: 5mm,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -51,6 +56,8 @@
|
|||||||
justify: true,
|
justify: true,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set math.mat(delim: "[")
|
||||||
|
|
||||||
//
|
//
|
||||||
// List style
|
// List style
|
||||||
set list(
|
set list(
|
||||||
|
@ -106,6 +106,29 @@
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#let review_box(title, content) = {
|
||||||
|
align(center, stack(
|
||||||
|
block(
|
||||||
|
width: 100%,
|
||||||
|
breakable: false,
|
||||||
|
fill: oblue,
|
||||||
|
stroke: oblue + 2pt,
|
||||||
|
inset: 1.5mm,
|
||||||
|
align(left, text(fill: white, weight: "bold", title)),
|
||||||
|
),
|
||||||
|
|
||||||
|
block(
|
||||||
|
width: 100%,
|
||||||
|
height: auto,
|
||||||
|
breakable: false,
|
||||||
|
fill: oblue.lighten(80%).desaturate(10%),
|
||||||
|
stroke: oblue + 2pt,
|
||||||
|
inset: 3mm,
|
||||||
|
align(left, content),
|
||||||
|
),
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#let instructornote(content) = {
|
#let instructornote(content) = {
|
||||||
if_solutions(align(center, stack(
|
if_solutions(align(center, stack(
|
||||||
|
Reference in New Issue
Block a user