You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extra space after question mark in math mode #4133
"!" is actually class Normal, not Punctuation. Though both ":" and "?" have class Punctuation, so I'm not entirely sure why their behaviors are different.
OK that explains it. For example "¡" has punctuation class like "?" and is shown the same way, and I get the desired output when I set the class to "normal":
Activity
Enivex commentedon May 14, 2024
"!" is actually class Normal, not Punctuation. Though both ":" and "?" have class Punctuation, so I'm not entirely sure why their behaviors are different.
https://www.unicode.org/Public/math/revision-15/MathClass-15.txt
EpicEricEE commentedon May 15, 2024
The default class of ":" is overridden by Typst to a relation, probably to match the behavior of LaTeX:
typst/crates/typst/src/math/fragment.rs
Line 252 in 484a0e6
sijow commentedon May 15, 2024
OK that explains it. For example "¡" has punctuation class like "?" and is shown the same way, and I get the desired output when I set the class to "normal":
Maybe what's missing is a clean way to configure the class to only affect the symbol in math...