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

make typst 0.13 compatible #26

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

rossmeier
Copy link

@rossmeier rossmeier commented Feb 6, 2025

Typst 0.13 will remove some symbols and make type and str incompatible. Adjust the relevant places in the code to be compatible with those changes.

Fixes: #27
Fixes: #28

@amesgen

This comment was marked as off-topic.

@rossmeier
Copy link
Author

rossmeier commented Feb 26, 2025

Should be noted that this is not enough to make it working with typst 0.13. Found another big regression that basically all units containing more than a single unit are broken

Edit: pushed an update fixing that. Everything seems okay for now, not sure if more might be broken

Typst 0.13 has brought several changes breaking metro:
 - Memoved some symbols:
   Those were replaced with the proposed replacements from the typst
   changelog
 - Make type and str incompatible:
   Cast type to str in the relevant point for a debug message
 - Revamp string handling in math mode:
   Symbols now appear as their own class "symbol" which is recognized
   identical to text now
@rossmeier
Copy link
Author

@amesgen Could you check if you still have the problem? Might have been part of that regression that I found with the math parsing. At least, I can't reproduce your problem with the fix applied.

@w1th0utnam3
Copy link

@fenjalien Any chance of merging this so we don't have to rely on local packages?

@amesgen
Copy link

amesgen commented Mar 6, 2025

@amesgen Could you check if you still have the problem? Might have been part of that regression that I found with the math parsing. At least, I can't reproduce your problem with the fix applied.

Indeed, can confirm that everything now works nicely with the branch from this PR 👍 Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import fails in Typst 0.13.0: Unknown variable kelvin Fails with Typst 0.13
3 participants