行内公式与中文之间没有自动空格
相关问题:想问下,typst 的盘古之白什么时候支持公式和文字之间的空格
临时修复方法:
typst
#show math.equation.where(block: false): it => h(0.25em, weak: true) + it + h(0.25em, weak: true)
汉字$A$汉字已知副作用
若列表某项以公式开头,此法有时会添加多余空隙。
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()
另请参见
- 差距分析:“raw”两边缺少中西间距(级别:Advanced)
- CJK-Latin-spacing not working with raw text · typst#2702 (open issue)
- 差距分析:行内公式两边缺少中西间距(级别:Advanced)
- CJK-Latin-spacing not working with inline equation · typst#2703 (open issue)
- Leading weak spacing created by show rule does not always collapse (since 0.14) · typst#8505 (open issue)