problem 1.2 b'
This commit is contained in:
38
utils/boxes.typ
Normal file
38
utils/boxes.typ
Normal file
@@ -0,0 +1,38 @@
|
||||
#let infobox(
|
||||
body,
|
||||
title: none,
|
||||
stroke-color: black,
|
||||
fill-color: luma(245),
|
||||
border-width: 1pt,
|
||||
radius: 4pt,
|
||||
padding: 8pt,
|
||||
) = {
|
||||
block(
|
||||
width: 100%,
|
||||
stroke: (paint: stroke-color, thickness: border-width),
|
||||
fill: fill-color,
|
||||
radius: radius,
|
||||
inset: padding,
|
||||
)[
|
||||
#if title != none [
|
||||
*#title*\
|
||||
]
|
||||
#body
|
||||
]
|
||||
}
|
||||
|
||||
#let problembox(body, title: none) = infobox(
|
||||
body,
|
||||
title: title,
|
||||
fill-color: aqua.transparentize(80%)
|
||||
)
|
||||
|
||||
#let answerbox(body, title: none) = infobox(
|
||||
body,title: title, fill-color: red.transparentize(80%)
|
||||
)
|
||||
|
||||
#let addinfobox(body, title: none) = infobox(
|
||||
body,
|
||||
title: title,
|
||||
fill-color: rgb("#FFB3BF").transparentize(80%)
|
||||
)
|
||||
Reference in New Issue
Block a user