Cutting off text so that it fits in one line in the header #4076
Locked
adrfantini
started this conversation in
General
Replies: 3 comments 1 reply
|
About 1 year later I think this is still a significant issue. I did not find a better way to dynamically truncate a text based on the available space, without going to new lines. |
0 replies
|
There is https://typst.app/universe/package/chomp/ which does exactly this. |
1 reply
|
For others seeing this discussion, the solution I settled on for my use case of hydra headers is here: https://forum.typst.app/t/truncating-hydra-headers-to-a-single-line/8152/4?u=apple |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I want to have a header with a line of text + an image. If the line of text is too long, it should cutoff and display ellipsis.
My current MRE implementation of this is this, but it's quite ugly: is there a better way? Thanks!
All reactions