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

Support V0.12 #7

Open
iandol opened this issue Oct 11, 2024 · 0 comments · May be fixed by #9
Open

Support V0.12 #7

iandol opened this issue Oct 11, 2024 · 0 comments · May be fixed by #9

Comments

@iandol
Copy link

iandol commented Oct 11, 2024

Typst V0.12 causes a bunch of warnings with lapreprint now, e.g.:

warning: `locate` with callback function is deprecated
    ┌─ lapreprint.typ:89:10
    │  
 89 │       header: locate(loc => {
    │ ╭─────────────^
 90 │ │       if(loc.page() == 1) {
 91 │ │         let headers = (
 92 │ │           if (open-access) {smallcaps[Open Access]},
    · │
100 │ │       }
101 │ │     }),
    │ ╰──────^
    │  
    = hint: use a `context` expression instead

warning: `show par: set block(spacing: ..)` has no effect anymore
    ┌─ lapreprint.typ:311:1
    │
311 │   show par: set block(spacing: 2em)
    │   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    │
    = hint: write `set par(spacing: ..)` instead
    = hint: this is specific to paragraphs as they are not considered blocks anymore

warning: `locate` with callback function is deprecated
    ┌─ lapreprint.typ:138:21
    │  
138 │     show heading: it => locate(loc => {
    │ ╭───────────────────────^
139 │ │     // Find out the final number of the heading counter.
140 │ │     let levels = counter(heading).at(loc)
141 │ │     set text(10pt, weight: 400)
    · │
176 │ │     ]
177 │ │   })
    │ ╰────^
    │  
    = hint: use a `context` expression instead

warning: `counter.display` without context is deprecated
    ┌─ lapreprint.typ:307:26
    │
307 │     #strong[#it.supplement #it.counter.display(it.numbering)]: #it.body
    │                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    │
    = hint: use it in a `context` expression instead

warning: calling `counter.final` with a location is deprecated
    ┌─ lapreprint.typ:118:53
    │
118 │               #counter(page).display() of #locate((loc) => {counter(page).final(loc).first()})
    │                                                             ^^^^^^^^^^^^^^^^^^^^^^^^
    │
    = hint: try removing the location argument

These are all warnings so do not yet stop compilation.

@ssotoen ssotoen linked a pull request Nov 13, 2024 that will close this issue
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 a pull request may close this issue.

1 participant