Merge pull request #3 from betoma/counter-fix

changed counter to work with typst 0.1.0
This commit is contained in:
Greg Shuflin 2023-04-08 00:11:06 -07:00 committed by GitHub
commit 2efa9a71b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -88,6 +88,10 @@
}
}
if numbering {
gloss_count.step()
}
let gloss_number = if numbering {
[(#gloss_count.display())]
} else {
@ -95,10 +99,6 @@
}
[#gloss_number #pad(left: 1em)[#gloss_items]]
if numbering {
gloss_count.step()
}
}
#let numbered_gloss = gloss.with(numbering: true)