Some of my figures have long captions, which results in ugly outlines.
Is there a way to either truncate the outline.entry
text, set a maximum width for the text length or trigger a linebreak after N characters, such that the outline.entry
would compile to this:
I inspected the source and managed to modify the part after the section title with show outline.entry: set box(...)
but I couldn't figure out how to access what comes before the BoxElem
.
You can indeed construct your own
outline.entry
show rule in typst instead of rust. The key ingredient isclip: true
on the box surroundingit.body
: