We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First of all, thank you for this awesome package! Transitioning from Beamer is a breath of fresh air.
When I compile my slides with Typst 0.12 and the University theme, here are some of the deprecation warnings I get:
warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/logic.typ:251:2 │ 251 │ ╭ locate( loc => { 252 │ │ repetitions.update(rep => calc.max(rep, pause-counter.at(loc).first() + 1)) 253 │ │ }) │ ╰────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:15:23 │ 15 │ #let current-section = locate( loc => { │ ╭────────────────────────^ 16 │ │ let sections = sections-state.at(loc) 17 │ │ if sections.len() > 0 { 18 │ │ sections.last().body · │ 21 │ │ } 22 │ │ }) │ ╰──^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:40:25 │ 40 │ #let last-slide-number = locate(loc => logic.logical-slide.final(loc).first()) │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:35:42 │ 35 │ #let polylux-progress(ratio-to-content) = locate( loc => { │ ╭───────────────────────────────────────────^ 36 │ │ let ratio = logic.logical-slide.at(loc).first() / logic.logical-slide.final(loc).first() 37 │ │ ratio-to-content(ratio) 38 │ │ }) │ ╰──^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:24:53 │ 24 │ #let polylux-outline(enum-args: (:), padding: 0pt) = locate( loc => { │ ╭──────────────────────────────────────────────────────^ 25 │ │ let sections = sections-state.final(loc) 26 │ │ pad(padding, enum( 27 │ │ ..enum-args, 28 │ │ ..sections.map(section => link(section.loc, section.body)) 29 │ │ )) 30 │ │ }) │ ╰──^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:56:16 │ 56 │ let content = locate( loc => { │ ╭─────────────────^ 57 │ │ let colors = uni-colors.at(loc) 58 │ │ 59 │ │ if logo != none { · │ 91 │ │ }) 92 │ │ }) │ ╰────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/logic.typ:268:2 │ 268 │ ╭ locate( loc => { 269 │ │ if counter(page).at(loc).first() > 1 { 270 │ │ pagebreak(weak: true) 271 │ │ } 272 │ │ }) │ ╰────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/logic.typ:292:4 │ 292 │ ╭ locate( loc => { 293 │ │ let curr-subslide = subslide.at(loc).first() 294 │ │ if curr-subslide <= repetitions.at(loc).first() { 295 │ │ if curr-subslide > 1 { pagebreak(weak: true) } · │ 306 │ │ } 307 │ │ }) │ ╰──────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:108:25 │ 108 │ let progress-barline = locate( loc => { │ ╭──────────────────────────^ 109 │ │ if uni-progress-bar.at(loc) { 110 │ │ let cell = block.with( width: 100%, height: 100%, above: 0pt, below: 0pt, breakable: false ) 111 │ │ let colors = uni-colors.at(loc) · │ 120 │ │ } else { [] } 121 │ │ }) │ ╰────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:130:6 │ 130 │ ╭ locate( loc => { 131 │ │ let colors = uni-colors.at(loc) 132 │ │ block(fill: colors.c, inset: (x: .5em), grid( 133 │ │ columns: (60%, 40%), · │ 136 │ │ )) 137 │ │ }) │ ╰────────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:156:6 │ 156 │ ╭ locate( loc => { 157 │ │ let colors = uni-colors.at(loc) 158 │ │ 159 │ │ show: block.with(width: 100%, height: auto, fill: colors.b) · │ 167 │ │ ) 168 │ │ }) │ ╰────────^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:8:30 │ 8 │ #let register-section(name) = locate( loc => { │ ╭───────────────────────────────^ 9 │ │ sections-state.update(sections => { 10 │ │ sections.push((body: name, loc: loc)) 11 │ │ sections 12 │ │ }) 13 │ │ }) │ ╰──^ │ = hint: use a `context` expression instead warning: `locate` with callback function is deprecated ┌─ @preview/polylux:0.3.1/logic.typ:256:28 │ 256 │ #let paused-content(body) = locate( loc => { │ ╭─────────────────────────────^ 257 │ │ let current-subslide = subslide.at(loc).first() 258 │ │ let current-pause-counter = pause-counter.at(loc).first() 259 │ │ · │ 264 │ │ } 265 │ │ }) │ ╰──^ │ = hint: use a `context` expression instead warning: calling `counter.final` with a location is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:36:52 │ 36 │ let ratio = logic.logical-slide.at(loc).first() / logic.logical-slide.final(loc).first() │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ = hint: try removing the location argument warning: `state.display` is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:163:31 │ 163 │ cell(fill: colors.a, uni-short-author.display()), │ ^^^^^^^^^^^^^^^^^^^^^^^^^^ │ = hint: use `state.get` in a `context` expression instead warning: `state.display` is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:164:15 │ 164 │ cell(uni-short-title.display()), │ ^^^^^^^^^^^^^^^^^^^^^^^^^ │ = hint: use `state.get` in a `context` expression instead warning: `state.display` is deprecated ┌─ @preview/polylux:0.3.1/themes/university.typ:165:15 │ 165 │ cell(uni-short-date.display()), │ ^^^^^^^^^^^^^^^^^^^^^^^^ │ = hint: use `state.get` in a `context` expression instead warning: calling `counter.final` with a location is deprecated ┌─ @preview/polylux:0.3.1/utils/utils.typ:40:39 │ 40 │ #let last-slide-number = locate(loc => logic.logical-slide.final(loc).first()) │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ │ = hint: try removing the location argument
The text was updated successfully, but these errors were encountered:
I'm glad you like it! These warnings are a known issue and are at the top of my agenda.
Sorry, something went wrong.
No rush! I figured they might be known and due to a recent Typst update, I just didn't see an issue so I opened one to keep track.
locate
style
context
Successfully merging a pull request may close this issue.
First of all, thank you for this awesome package! Transitioning from Beamer is a breath of fresh air.
When I compile my slides with Typst 0.12 and the University theme, here are some of the deprecation warnings I get:
The text was updated successfully, but these errors were encountered: