Pablo-Gonzalez-Calderon / showybox-package

A Typst package for creating colorful and customizable boxes
MIT License
50 stars 5 forks source link

Fixes: Breakable boxes and no border #2

Closed jneug closed 1 year ago

jneug commented 1 year ago

This fixes the thin border still visible if the frame width is set to zero and allows boxes to be breakable regardless of the title option

In addition, it fixes an issue that made the border look thinner than the width option would suggest. A 2pt border will now be 2pt thick.

jneug commented 1 year ago

I just realized, that this fix does not break showyboxes with shadows!

But at least it should fix the other issues mentioned and break boxes with titles but without shadows.

jneug commented 1 year ago

I added an alternate method for drawing shadows that works for breakable boxes, but doesn’t look quite as nice for larger offsets.

With this commit, the method for drawing shadow is automatically chosen based on the breakable option, but it might be preferable to have a consistent look for all boxes and only use one method.

jneug commented 1 year ago

Also, due to your significant contributions I'll put your name in the heading of showy.typ file ;)

Thanks, that is great.

If you are open to it, I would like to do some more work on the package. (I have some free time until the end of this week.) Like adding some more options to showyboxes for more flexibility and perhaps a footer similar to the title.

Pablo-Gonzalez-Calderon commented 1 year ago

Also, due to your significant contributions I'll put your name in the heading of showy.typ file ;)

Thanks, that is great.

If you are open to it, I would like to do some more work on the package. (I have some free time until the end of this week.) Like adding some more options to showyboxes for more flexibility and perhaps a footer similar to the title.

Sure, go ahead. Meanwhile I'll release v.0.2.1 with new changes at Typst's official package repository. Therefore the new changes will be public ;)