#Get indentation level of bullet list in show rule
3 messages · Page 1 of 1 (latest)
?r
#let fib = $sans("fib")$
#set list(marker: none, indent: .7em)
#show list: it => block(
stroke: (left: 1pt),
outset: (left: -.3em, top: .8em, bottom: .4em),
inset: (left: -.4em, top: -.7em, bottom: .0em),
it
)
- *function* $fib(n)$ *is*
- *if* $n < 0$ *then*
- *error*
- *else if* $n = 0$ *or* $n = 1$ *then*
- *return* $n$
- *return* $fib(n-1) + fib(n-2)$.