Skip to content

Commit

Permalink
fix: add reset-footnote-number-per-slide to _default-slide-preamble
Browse files Browse the repository at this point in the history
  • Loading branch information
OrangeX4 committed Oct 14, 2024
1 parent dfe36c3 commit e0c3ffc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/configs.typ
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@
}
}

#let _default-slide-preamble = self => {
if self.at("reset-footnote-number-per-slide", default: true) {
counter(footnote).update(0)
}
}


/// The common configurations of the slides.
///
Expand Down Expand Up @@ -611,7 +617,7 @@
preamble: none,
default-preamble: _default-preamble,
slide-preamble: none,
default-slide-preamble: none,
default-slide-preamble: _default-slide-preamble,
subslide-preamble: none,
default-subslide-preamble: none,
page-preamble: none,
Expand Down

0 comments on commit e0c3ffc

Please sign in to comment.