Replies: 1 comment
-
You can add explicit linebreak opportunities by adding #show raw.where(block: false): it => {
show ".": "." + sym.zws
it
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing a tutorial for a Python package and have a lot of
pkg.pkg.pkg.class.function
kind of text in the document. I'm also usingset par(justify: true, linebreaks: "optimized")
to get a Latex-like look where the ending of lines are lined up.It turns out these two really don't play well together, because Typst doesn't want to break line midway of raw text except at spaces, as it seems. See the following example for the messed-up line spacing.
However, in my case I would like Typst to know that it's allowed break lines after a dot (
.
). Is there anyway to do so, or other ways to just improve the layout in such cases?Beta Was this translation helpful? Give feedback.
All reactions