Mannot in cetz | How to fix layout did not converge?

Hello all,

I am getting a “layout did not converge within 5 attempts” warning using the following piece of code (minimal reproducible example):

#import@preview/cetz:0.5.2”
#import@preview/mannot:0.3.1”: *

#align(center)[
cetz.canvas({
import cetz.draw: *
content((0, 0), [$ markrect( - x) $])
})
]

However, when I remove the minus sign before the x, the warning disappears. Is there any way to work around this issue?

Thanks

Try using a newer version of mannot, the newest is 0.4.0

1 Like