EpicEricEE / typst-plugins

My plugins and packages for typst
MIT License
28 stars 1 forks source link

bad interaction with the `ilm` package #11

Closed CarloLucibello closed 3 months ago

CarloLucibello commented 3 months ago

Hi, thanks for the nice package! I discovered a bad interaction with the ilm package. The following document produces a bad numbering of the equations (I'm on the the typst web app):

#import "@preview/ilm:1.1.1": ilm
#import "@preview/equate:0.2.0": equate

#show: equate.with(breakable: true, sub-numbering: true)
#set math.equation(numbering: "(1.1)")

#show: ilm.with()

= Intro

The dot product of two vectors $arrow(a)$ and $arrow(b)$ can
be calculated as shown in @dot-product.

$
  angle.l a, b angle.r &= arrow(a) dot arrow(b) \
                       &= a_1 b_1 + a_2 b_2 + ... a_n b_n \
                       &= sum_(i=1)^n a_i b_i. #<sum>
$ <dot-product>

The sum notation in @sum is a useful way to express the dot
product of two vectors.
Screenshot 2024-06-19 at 09 47 21
CarloLucibello commented 3 months ago

Nevermind, if I exchange the order of the shows the problem is fixed

#show: ilm.with()

#show: equate.with(breakable: true, sub-numbering: true)
#set math.equation(numbering: "(1.1)")
EpicEricEE commented 3 months ago

It was probably just ilm overriding the set rule for the numbering of equations.