How to fix alignment issues with vectors or matrices in an enum?

Hi everyone,

I’m trying to use #enum to create a list that includes a vector or a matrix in the first line, but I noticed that the alignment of the first line doesn’t seem to match properly. Here’s a minimal example of my code:

#enum([
  Der Vektor $vec(1,2,3)$
],[
  Hier ist eine Matrix $mat(12,25,16;13,64,16;14,14,15)$
])

SCR-20241124-qkhy

This results in the lines being visually misaligned. The vector or matrix content seems to throw off the text alignment. I’ve attached an image to illustrate the issue.

Does anyone know how to adjust the alignment or work around this problem?

Thanks in advance for your help!

1 Like

Might be related, with some possible workarounds

https://github.com/typst/typst/issues/1204