typst / packages

Packages for Typst.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

colorful-boxes : Breakable boxes

maucejo opened this issue · comments

Hi, at the moment colorful-boxes (previously typst-boxes) does not allow for breakable boxes, which can be somewhat annoying.
My solution is to download typst-boxes and modify the source code.

A simple question, how to create a PR for this package. Should I fork the whole typst/packages repository or should I fork the original repository ?

Thank you

Hi, at the moment colorful-boxes (previously typst-boxes) does not allow for breakable boxes, which can be somewhat annoying.
My solution is to download typst-boxes and modify the source code.

A simple question, how to create a PR for this package. Should I fork the whole typst/packages repository or should I fork the original repository ?

Thank you

You contribute to the original repository.

Also (a little bit of spam) you could try to use showybox package, it has implemented that already --and other custom options also! Here's an example of a breakable box in showybox:

image

Also (a little bit of spam) you could try to use showybox package, it has implemented that already --and other custom options also! Here's an example of a breakable box in showybox:

image

Is it possible to replicate slantedColorbox of typst-boxes with showybox ?

Is it possible to replicate slantedColorbox of typst-boxes with showybox ?

At the moment, it's not possible, due to some limitations of v1.1.0 boxed titles. Now, v1.2.0 (kinda) is in developement and have a similar kind of box. Here's an example:

// v1.2.0 example
#showybox(
  frame: (
    radius: 0pt,
    thickness: 2pt
  ),
  title-style: (
    boxed: true
  ),
  boxed-style: (
    radius: 0pt,
    anchor: (y: bottom)
  ),
  title: "This isn't quite perfect but...",
  width: 50%,
)[#lorem(10)]

image

As said, PRs should be made to the original repository. I see you've made one already, linking it here for posterity: lkoehl/typst-boxes#3