forked from tomkys144/skripta
16 lines
259 B
Typst
16 lines
259 B
Typst
#let def(title: none, body) = block(
|
|
fill: luma(210),
|
|
stroke: 0.5pt + luma(200),
|
|
inset: 1.2em,
|
|
radius: 0.2em,
|
|
width: 100%,
|
|
spacing: 1.5em,
|
|
[
|
|
#if title != none [
|
|
*Definice (#title):*
|
|
] else [
|
|
*Definice:*
|
|
]
|
|
#body
|
|
],
|
|
) |