Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Prevent influence of figure show rules
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicEricEE committed May 6, 2024
1 parent fd190e3 commit 1c3674e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions equate/src/equate.typ
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@
fill: yellow
) if debug

// Prevent show rules on figures from messing with replaced labels.
show figure.where(kind: math.equation): it => {
if it.body == none { return it }
if it.body.func() != metadata { return it }
none
}

// Main equation number.
let main-number = counter(math.equation).get().first()

Expand Down

0 comments on commit 1c3674e

Please sign in to comment.