Is there an equivalent to LaTeX’s \parshape?

I want to wrap text around an image and make the text closely surround the image, as shown in the picture below.

image
(copied from stackexchange)

In LaTeX this is achieved by \parshape, so is there anyway to achieve it or any plan to support it?

Hello! You can probably achieve similar results with wrap-it – Typst Universe.

1 Like

Thanks for your reply. wrap-it is a fantastic package and I have been using it for a long time, but it’s based on grid so its outputs are somehow restricted to rectangles (only allows perpendicular straight borders). I’m still looking for a method to automatically[1] typeset some text in a more configurable shape like this
image
or this
image.


  1. I guess this can probably be achieved by splitting paragraph into lines and adding a lot of texts and moves, but I don’t want to typeset manually. ↩︎

Several clicks brought me from wrap-it to laurmaedje’s blog: https://laurmaedje.github.io/posts/layout-models/. Guess I should wait for future development.

I’m afraid this is not possible at the moment, while there’s no ongoing work to support this feature directly, there is work being done on the layout engine to eventually support this. But it’s unclear when this will be supported.

I can’t seem to find an issue for this at the moment.

3 Likes