Forgot password?
 Register account
View 348|Reply 1

tikz window断行

[Copy link]

3153

Threads

7906

Posts

610K

Credits

Credits
64096
QQ

Show all posts

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

682

Threads

110K

Posts

910K

Credits

Credits
90973
QQ

Show all posts

kuing Posted 2023-2-25 14:57
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|Discuz Math Forum

2025-6-5 01:22 GMT+8

Powered by Discuz!

× Quick Reply To Top Edit