gbchu
June 11, 2026, 10:43am
1
Description
Since cjk-latin-spacing not working with inline eqution, I used show set to make it work. However, as title said, typst version 0.14 ~ 0.15-testing will result in equation offset after line break or a block level element.
Minimum working example:
normal
#list([$1/2$
])
#show math.equation.where(block:false): it => h(1em,weak: true) + it + h(1em,weak: true)
set left space
#list([$1/2$
])
#list([$1/2$
#block[]
])
version 0.14 ~ 0.15 Testing
version 0.10 ~ 0.13.1
Operating system
MacOS
Typst version
I am using the latest version of typst
I don’t know why I can’t submit an issue or star typst on GitHub, so I posted it here
1 Like
Y.D.X
June 11, 2026, 11:02am
2
I can reproduce your description, and I notice that the following weak spaces are collapsed correctly.
#list(
{
h(1em, weak: true)
$1/2$
},
$1/2$,
{
show math.equation.where(block: false): it => h(1em, weak: true) + it
$1/2$
},
)
More tests:
#list(
{
h(1em, weak: true)
$1/2$ // good
parbreak()
},
{
show math.equation.where(block: false): it => h(1em, weak: true) + it
$1/2$ // bad
parbreak()
},
{
show math.equation.where(block: false): it => h(1em, weak: true) + it
$1/2$ // good
},
{
block({
h(1em, weak: true)
$1/2$ // good
})
parbreak()
},
{
h(0.000000000001em)
h(1em, weak: true)
$1/2$ // bad, but expected
parbreak()
},
)
(Tested with typst v0.15.0-rc.1, v0.14.2, v0.14.0)
Search | DeepWiki
EDIT:
Oh, you should link to Why h function make list or enum so weird? - #2 by gezepi , which already explained many things!
EDIT 2:
Please add cross links!
opened 07:00AM - 13 Jun 26 UTC
bug
layout
styling
regression
### Description
Since cjk-latin-spacing not working with inline eqution, I used… `show set` to make it work. However, as title said, typst version 0.14 ~ 0.15-testing will result in weak space can't be collapsed after line break or a block level element.
Minimum working example:
```typst
normal
#list([$1/2$
])
#show math.equation.where(block:false): it => h(1em,weak: true) + it + h(1em,weak: true)
set left space
#list([$1/2$
])
#list([$1/2$
#block[]
])
```
version 0.14 ~ 0.15 Testing
<img width="197" height="220" alt="Image" src="https://github.com/user-attachments/assets/a8ab694e-400f-4aa9-8dbd-4493e5758709" />
version 0.10 ~ 0.13.1
<img width="389" height="513" alt="Image" src="https://github.com/user-attachments/assets/1bf5ebc4-cab4-4bb8-a412-5a0ea52ab139" />
### Operating system
macOS
### Typst version
- [x] I am using the latest version of Typst
gbchu
June 11, 2026, 3:21pm
3
This is indeed a bug, there was no such issue before version 0.14. I don’t know how to solve this problem