Skip to content

Commit

Permalink
only reset counter if i-figured is used
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Nov 21, 2024
1 parent e555b68 commit eacd6e7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib.typ
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,16 @@ show heading.where(
linebreak()
}

show heading: reset-counters // from i-figured
show heading: reset-counter(mathcounter, levels: 1) // from headcount
// reset counter from i-figured for section-based equation numbering
show heading: it => {
if equate-settings == none {
reset-counters(it)
} else {
it
}
}
// from headcount for theorems
show heading: reset-counter(mathcounter, levels: 1)
// ------------------- other settings -------------------
// Settings for Chapter in the outline
show outline.entry.where(
Expand Down
Binary file modified template/main.pdf
Binary file not shown.

0 comments on commit eacd6e7

Please sign in to comment.