Skip to content

Commit

Permalink
fix: also hide enum numbers with show-hide-set-list-marker-none (#…
Browse files Browse the repository at this point in the history
…114)

* Also hide `enum` numbers

Fixes #10

* use none instead of []

---------

Co-authored-by: OrangeX4 <34951714+OrangeX4@users.noreply.github.com>
  • Loading branch information
rmburg and OrangeX4 authored Nov 14, 2024
1 parent 0ba73e2 commit 223a80c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/magic.typ
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@
///
/// Usage: `#show: show-hide-set-list-marker-none`
#let show-hide-set-list-marker-none(body) = {
show hide: set list(marker: none)
show hide: it => {
set list(marker: none)
set enum(numbering: n => none)

it
}
body
}

Expand Down Expand Up @@ -198,4 +203,4 @@
..range(bibitems.len()).map(i => (numbering("[1]", i + 1), bibitems.at(i))).flatten(),
)
}
}
}

0 comments on commit 223a80c

Please sign in to comment.