Forgot password?
 Create new account
View 151|Reply 1

tikz window断行

[Copy link]

3146

Threads

8493

Posts

610K

Credits

Credits
66158
QQ

Show all posts

hbghlyj Posted at 2023-2-24 04:51:13 |Read mode
因为代码不是普通文本, 建议为.tikzta添加一条CSS line-break: anywhere;强制断行
此帖为例
添加前添加后
New Text Document.gif New Text Document.gif

701

Threads

110K

Posts

910K

Credits

Credits
94172
QQ

Show all posts

kuing Posted at 2023-2-25 14:57:14
hbghlyj 发表于 2023-2-24 04:51
因为代码不是普通文本, 建议为添加一条CSS 强制断行
以此帖为例
照这么说,论坛自带的 code 代码块也存在同样的问题吧?

不过,大多数情况来说,我觉得默认的换行规则会更好看一点。

PS、line-break: anywhere 准确地说是允许在任意字符处换行,类似的还有 word-break: break-all ,两者有区别,大致上来说,后者还会顾及部分规则,前者是真的完全任意。

florian.rivoal.net/talks/line-breaking/#cover 这个网站很详细地介绍了各种换行的知识(点击右下角的箭头或按键的 Page Down 来看就是幻灯片,效果真好😃)

手机版Mobile version|Leisure Math Forum

2025-4-20 22:11 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list