Skip to content

行内公式与中文之间没有自动空格

行内公式与中文之间没有自动空格

相关问题:想问下,typst 的盘古之白什么时候支持公式和文字之间的空格

临时修复方法:

typst
#show math.equation.where(block: false): it => h(0.25em, weak: true) + it + h(0.25em, weak: true)
汉字$A$汉字
Typst compiled image

已知副作用

若列表某项以公式开头,此法有时会添加多余空隙。

typst
= 默认效果
- $A$ 正常
+ $A$ 正常
/ term: $A$ 正常

= 此法效果
#show math.equation.where(block: false): it => {
  // 加宽前侧空隙以让副作用更易观察
  h(5em, weak: true) + it + h(0.25em, weak: true)
}

- $A$正常
+ $A$正常
/ term: $A$不正常
- $A$不正常#parbreak()
+ $A$不正常#parbreak()
Typst compiled image

另请参见

贡献者

The avatar of contributor named as Y.D.X. Y.D.X.
The avatar of contributor named as QuadnucYard QuadnucYard
The avatar of contributor named as flaribbit flaribbit

页面历史

Comments
  • Latest
  • Oldest
  • Hottest

基于 MIT 许可发布