#Get indentation level of bullet list in show rule

3 messages · Page 1 of 1 (latest)

fleet ginkgo
#

I want to disable some show rule on all lists of indentation level 1, however I don't think there is a "level" attribute in lists giving you their level. In the following code I want to remove the leftmost vertical line.

#

?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)$.