-
Hi all, is there a way to insert a working newline inside \text{} ? currently if the text is too long, notion creates a horizontal scrollbar. Is this a limitation in notion? thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I can't think of a way to do newlines in a single |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if you've solved this already, or whether the following addresses what you are trying to do, but I had a play and came up with the following. I'm assuming you have wide text as part of some mathematics expression, and you need it to wrap with the option to insert line breaks at desired points. I'm also assuming you want a mobile-friendly solution. So here's 3 possible solutions. (1) The first modifies the white-space and display of the span containing text and then makes use of (2) The second and third examples separate the text from KaTeX for more flexibility. I've wrapped the math expression and the text (which is in a p tag with class "katex", so it has the appropriate font) in a flex div. For The final example uses a ZeroWidthSpace to place a line break in a desired position - it can also be used in the KaTeX-only approach. Here is what I'm talking about: https://bourne2learn.com/math/katex/wrapping-text.php It works fine on a phone. Hope it helps |
Beta Was this translation helpful? Give feedback.
I can't think of a way to do newlines in a single
\text
. Maybe use multiple\text
s and newlines (\\
) between them?