Skip to content

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!

@jchanes04
Copy link

@fenjalien Bumping the request to merge this PR so local packages aren't necessary with 0.13

@moinsr
Copy link

moinsr commented Apr 5, 2025

@fenjalien This fix also does work for me; a merge would really be appreciated to fix this package on typst 0.13

@AlexanderRitter02
Copy link

Hi @rossmeier, your last commit changed the package version in typst.toml to all zeros (0.0.0).
Is that a mistake?

@rossmeier rossmeier deleted the branch fenjalien:main August 6, 2025 16:23
@rossmeier rossmeier closed this Aug 6, 2025
@rossmeier rossmeier deleted the main branch August 6, 2025 16:23
@rossmeier rossmeier restored the main branch August 6, 2025 16:23
@rossmeier
Copy link
Author

Wuuups, sorry, that was my blunder. I updated the version to have a reproducible version for my personal projects. Shouldn't have done the PR using main :D
Should be fixed now!

@rossmeier rossmeier reopened this Aug 6, 2025
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

6 participants