Universe, wrap-it

I’ve tested the package. In many cases, it works well. However, it’s crucial that the text can wrap around both the image and the caption. The caption text must wrap to the width of the image.

That would be a significant improvement.

Hi @alwi, thanks for your contribution. In the Questions category, you should ask concrete questions that we can answer to help you; see How to post in the Questions category. If this was meant as a “review” of the package, going into more depth (and moving to General) would be necessary. In both cases, a more expressive title would be great.

I assume that your goal was actually to give feedback to the author; @ntjess happens to also be on this forum, but a better place would be the Github repository: Issues · ntjess/wrap-it · GitHub. However, I’m not sure that wrap-it is still maintained – but there’s meander – Typst Universe which tackles the same problem in a more comprehensive way.

This general advice regarding posting on the forum and giving feedback aside, I have a practical suggestion: a simple way to fix your problem is to put your figure in a block of the desired width:

#block(width: 30%)[
  #figure(
    ...,
    caption: lorem(20),
  ) <...>
]

The figure will now take (at most) 30% of the total width, and the caption will wrap accordingly.

(If this has helped you, please still take the time and improve your post (How to post in the Questions category) to help future readers find and use this information)

2 Likes