Marmare314 / lemmify

A library for typesetting mathematical theorems in typst.
GNU General Public License v3.0
11 stars 7 forks source link

Overflow when combining with showybox #6

Open lcnbr opened 11 months ago

lcnbr commented 11 months ago

I am trying to combine lemmify and showybox but I can't seem to get a breakable thm..Here is what I've got: https://typst.app/project/r4vhyPDGq4h0SUcJRKABkR

Marmare314 commented 11 months ago

Looks like it should work. I have no idea why this is happening but in the meantime the following code seems to work.

#let thmbox(color) = block.with(breakable: true, fill: color, inset: 0.7em, radius: 3pt)
#show thm-selector("thm-group", subgroup: "theorem"): thmbox(thmcolors.red)

I have not yet figured out what the difference between this and your example is (showybox uses a block internally too).

lcnbr commented 11 months ago

Oh, thanks for the workaround!