#Checklist white spacing
5 messages · Page 1 of 1 (latest)
?r
#let checklist(name, action, ..options) = {
set text(font: "IBM Plex Mono")
stack(
dir: ttb,
block(
width: 100%,
inset: .5em,
stroke: 2pt,
fill: luma(75%),
align(center, text(
font: "<choose a monospace font that supports smallcaps>",
smallcaps[*#name*],
)),
),
if action == none {
block(
inset: .5em,
stroke: (top: none, rest: 2pt),
for (key, value) in options.pos() [
#key#box(width: 1fr, repeat[.])#value \
],
)
} else {
block(
inset: .5em,
stroke: (top: none, bottom: none, rest: 2pt),
for (key, value) in options.pos() [
#key#box(width: 1fr, repeat[.])#value \
],
)
block(
width: 100%,
inset: .5em,
stroke: (top: none, rest: 2pt),
align(center, text(
font: "<choose a monospace font that supports smallcaps>",
smallcaps[*#action*],
)),
)
},
)
}
#checklist(
"PREFLIGHT",
"Request startup clearance from ATC",
([Parking Brake], [SET]),
([Ignition Switch], [OFF]),
([Avionics], [OFF]),
([Master Switch], [ON]),
([Fuel Level], [Checked]),
([Avionics], [ON and fan audible]),
)
in case this is actually still open: set the spacing of the two blocks to zero.
?r
#let checklist(name, action, ..options) = {
set text(font: "IBM Plex Mono")
stack(
dir: ttb,
block(
width: 100%,
inset: .5em,
stroke: 2pt,
fill: luma(75%),
align(center, text(
font: "<choose a monospace font that supports smallcaps>",
smallcaps[*#name*],
)),
),
if action == none {
block(
inset: .5em,
stroke: (top: none, rest: 2pt),
for (key, value) in options.pos() [
#key#box(width: 1fr, repeat[.])#value \
],
)
} else {
block(
inset: .5em,
spacing: 0em,
stroke: (top: none, bottom: none, rest: 2pt),
for (key, value) in options.pos() [
#key#box(width: 1fr, repeat[.])#value \
],
)
block(
width: 100%,
inset: .5em,
spacing: 0em,
stroke: (top: none, rest: 2pt),
align(center, text(
font: "<choose a monospace font that supports smallcaps>",
smallcaps[*#action*],
)),
)
},
)
}
#checklist(
"PREFLIGHT",
"Request startup clearance from ATC",
([Parking Brake], [SET]),
([Ignition Switch], [OFF]),
([Avionics], [OFF]),
([Master Switch], [ON]),
([Fuel Level], [Checked]),
([Avionics], [ON and fan audible]),
)