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
In Typst 0.10 and lower, the locate function took a closure that made the current location in the document available (like here does now). Compatibility with the old way will remain for a while to give package authors time to upgrade. To that effect, locate detects whether it received a selector or a user-defined function and adjusts its semantics accordingly. This behaviour will be removed in the future.
The text was updated successfully, but these errors were encountered:
locate() with function argument is deprecated. Generally
can be replaced with
and if you actually need a position reference like the
loc
parameter, you can use thehere()
function. https://typst.app/docs/reference/introspection/here/From https://typst.app/docs/reference/introspection/locate/:
The text was updated successfully, but these errors were encountered: