Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corner unicodes (⌜⌝⌞⌟) are positioned wrong in math mode #4188

Open
1 task done
Zeta611 opened this issue May 19, 2024 · 1 comment
Open
1 task done

Corner unicodes (⌜⌝⌞⌟) are positioned wrong in math mode #4188

Zeta611 opened this issue May 19, 2024 · 1 comment
Labels
bug Something isn't working math Related to math syntax, layout, etc.

Comments

@Zeta611
Copy link

Zeta611 commented May 19, 2024

Description

Corner unicodes (U+231C--U+231F) are positioned wrong in math mode:

$⌜a⌟⌞b⌝$ vs $$$a$$$$$$b$$$
Screenshot 2024-05-19 at 14 45 37

Compare this with LaTeX:

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$⌜a⌟⌞b⌝$ vs $$$a$$$$$$b$$$
\end{document}
Screenshot 2024-05-19 at 14 47 34

both giving the same results.

Reproduction URL

No response

Operating system

macOS

Typst version

  • I am using the latest version of Typst
@Zeta611 Zeta611 added the bug Something isn't working label May 19, 2024
@Enivex
Copy link
Collaborator

Enivex commented May 19, 2024

The issue goes away if at least one of them is escaped (for instance $⌜a\⌟$), so I assume this has to do with delimiter matching somehow.

@Enivex Enivex added the math Related to math syntax, layout, etc. label May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working math Related to math syntax, layout, etc.
Projects
None yet
Development

No branches or pull requests

2 participants