Marmare314 / lemmify

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

Overflow when combining with showybox #6

Open lcnbr opened 1 year ago

lcnbr commented 1 year 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 1 year 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 1 year ago

Oh, thanks for the workaround!