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
With Typst 0.12.0 released recently, Mantys has to change its API calls a bit to remove deprecated calls. For example when I run typst compile docs/mantys-manual.typ docs/mantys-manual.pdf --root ./ with a freshly-cloned copy of this repo and Typst version 0.12.0 (737895d7), I get these warnings (long; click to open):
The output of typst compile
warning: `style` is deprecated
┌─ docs/mantys-manual.typ:5:11
│
5 │ #let TeX = style(styles => {
│ ╭────────────^
6 │ │ set text(font: "New Computer Modern")
7 │ │ let e = measure("E", styles)
8 │ │ let T = "T"
· │
11 │ │ box(T + h(-0.15em) + E + h(-0.125em) + X)
12 │ │ })
│ ╰──^
│
= hint: use a `context` expression instead
warning: `style` is deprecated
┌─ docs/mantys-manual.typ:14:13
│
14 │ #let LaTeX = style(styles => {
│ ╭──────────────^
15 │ │ set text(font: "New Computer Modern")
16 │ │ let a-size = 0.66em
17 │ │ let l = measure("L", styles)
· │
21 │ │ box(L + h(-a.width * 0.67) + A + h(-a.width * 0.25) + TeX)
22 │ │ })
│ ╰──^
│
= hint: use a `context` expression instead
warning: `locate` with callback function is deprecated
┌─ @preview/showybox:2.0.1/showy.typ:167:19
│
167 │ let showyblock = locate(loc => {
│ ╭────────────────────^
168 │ │ let my-id = _showy-id.at(loc)
169 │ │ let my-state = _showy-state(my-id.first())
170 │ │
· │
236 │ │ ]
237 │ │ })
│ ╰────^
│
= hint: use a `context` expression instead
warning: `locate` with callback function is deprecated
┌─ @preview/showybox:2.0.1/lib/shadows.typ:26:38
│
26 │ #let showy-shadow(sbox-props, sbox) = locate(loc => {
│ ╭───────────────────────────────────────^
27 │ │ if sbox-props.shadow == none {
28 │ │ return sbox
29 │ │ }
· │
71 │ │ )
72 │ │ })
│ ╰──^
│
= hint: use a `context` expression instead
warning: `locate` with callback function is deprecated
┌─ src/mty.typ:147:4
│
147 │ ) = locate(loc => {
│ ╭─────^
148 │ │ __s_mty_index.update(arr => {
149 │ │ arr.push((
150 │ │ term: idx-term(def.if-none(term, body)),
· │
159 │ │ }
160 │ │ })
│ ╰──^
│
= hint: use a `context` expression instead
warning: unknown font family: helvetica neue
┌─ src/api.typ:535:30
│
535 │ text(size:.75em, font:theme.fonts.sans, theme.colors.muted, "Argument")
│ ^^^^^^^^^^^^^^^^
warning: unknown font family: helvetica
┌─ src/api.typ:535:30
│
535 │ text(size:.75em, font:theme.fonts.sans, theme.colors.muted, "Argument")
│ ^^^^^^^^^^^^^^^^
warning: `state.display` is deprecated
┌─ src/mantys.typ:255:2
│
255 │ ╭ state("@mty-imports-scope").display(
256 │ │ (imports) => {
257 │ │ let scope = ("tidyref": tidyref) + api.__all__ + args.named().at("scope", default:(:))
258 │ │ if include-examples-scope {
· │
287 │ │ }
288 │ │ )
│ ╰───^
│
= hint: use `state.get` in a `context` expression instead
warning: `state.display` is deprecated
┌─ src/api.typ:644:2
│
644 │ ╭ state("@mty-imports-scope").display(
645 │ │ (imports) => mty.code-example(scope: imports + scope, ..args)
646 │ │ )
│ ╰───^
│
= hint: use `state.get` in a `context` expression instead
warning: `locate` with callback function is deprecated
┌─ src/api.typ:618:23
│
618 │ #let relref( label ) = locate(loc => {
│ ╭────────────────────────^
619 │ │ let q = query(selector(label).before(loc), loc)
620 │ │ if q != () {
621 │ │ return link(q.last().location(), "above")
· │
629 │ │ }
630 │ │ })
│ ╰──^
│
= hint: use a `context` expression instead
warning: `state.display` is deprecated
┌─ src/api.typ:651:67
│
651 │ #let shortex( code, sep: sym.arrow.r, mode:"markup", scope:(:) ) = state("@mty-imports-scope").display(
│ ╭────────────────────────────────────────────────────────────────────^
652 │ │ (imports) => [#raw(code.text, lang:"typ") #sep #eval(code.text, mode:"markup", scope:imports + scope)]
653 │ │ )
│ ╰─^
│
= hint: use `state.get` in a `context` expression instead
warning: `counter.display` without context is deprecated
┌─ src/mantys.typ:166:24
│
166 │ footer: align(center, counter(page).display("1"))
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
│
= hint: use it in a `context` expression instead
warning: Typst's default font has changed from Linux Libertine to its successor Libertinus Serif
┌─ src/mantys.typ:169:10
│
169 │ font: theme.fonts.text,
│ ^^^^^^^^^^^^^^^^
│
= hint: please set the font to `"Libertinus Serif"` instead
warning: `show par: set block(spacing: ..)` has no effect anymore
┌─ src/mantys.typ:84:4
│
84 │ #show par: set block(spacing: 1.3em)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│
= 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
┌─ src/mty.typ:181:4
│
181 │ ) = locate(loc => {
│ ╭─────^
182 │ │ let index = __s_mty_index.final(loc)
183 │ │ let terms = (:)
184 │ │
· │
220 │ │ )
221 │ │ })
│ ╰──^
│
= hint: use a `context` expression instead
warning: unknown font family: helvetica neue
┌─ src/mantys.typ:196:11
│
196 │ font:theme.fonts.headings,
│ ^^^^^^^^^^^^^^^^^^^^
warning: unknown font family: helvetica
┌─ src/mantys.typ:196:11
│
196 │ font:theme.fonts.headings,
│ ^^^^^^^^^^^^^^^^^^^^
warning: calling `measure` with a styles argument is deprecated
┌─ docs/mantys-manual.typ:7:10
│
7 │ let e = measure("E", styles)
│ ^^^^^^^^^^^^^^^^^^^^
│
= hint: try removing the styles argument
warning: calling `measure` with a styles argument is deprecated
┌─ docs/mantys-manual.typ:17:10
│
17 │ let l = measure("L", styles)
│ ^^^^^^^^^^^^^^^^^^^^
│
= hint: try removing the styles argument
warning: calling `measure` with a styles argument is deprecated
┌─ docs/mantys-manual.typ:18:10
│
18 │ let a = measure(text(a-size, "A"), styles)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│
= hint: try removing the styles argument
warning: `style` is deprecated
┌─ @preview/codelst:2.0.0/codelst.typ:221:21
│
221 │ let code-table = style(styles => {
│ ╭──────────────────────^
222 │ │ // Measure the maximum width of the line numbers
223 │ │ // We need to measure every line, since the numbers
224 │ │ // are styled and could have unexpected formatting
· │
275 │ │ )
276 │ │ })
│ ╰──────^
│
= hint: use a `context` expression instead
warning: calling `query` with a location is deprecated
┌─ src/api.typ:619:10
│
619 │ let q = query(selector(label).before(loc), loc)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│
= hint: try removing the location argument
warning: calling `query` with a location is deprecated
┌─ src/api.typ:623:8
│
623 │ q = query(selector(label).after(loc), loc)
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│
= hint: try removing the location argument
warning: calling `state.final` with a location is deprecated
┌─ src/mty.typ:182:13
│
182 │ let index = __s_mty_index.final(loc)
│ ^^^^^^^^^^^^^^^^^^^^^^^^
│
= hint: try removing the location argument
warning: calling `measure` with a styles argument is deprecated
┌─ @preview/codelst:2.0.0/codelst.typ:229:91
│
229 │ ..{(0pt,) + range(numbers-first - 1, line-count, step:numbers-step).map((lno) => measure(
│ ╭────────────────────────────────────────────────────────────────────────────────────────────^
230 │ │ numbers-style(codelst-numbering(numbering, lno + numbers-start)),
231 │ │ styles
232 │ │ ).width)}
│ ╰───────────^
│
= hint: try removing the styles argument
warning: calling `query` with a location is deprecated
┌─ src/mty.typ:535:44
│
535 │ cont.push(eval(mode:mode, scope: scope, code.text))
│ ^^^^^^^^^
│
= hint: try removing the location argument
The ag|sort|uniqed warnings are as follows:
warning: calling `measure` with a styles argument is deprecated
warning: calling `query` with a location is deprecated
warning: calling `state.final` with a location is deprecated
warning: `counter.display` without context is deprecated
warning: `locate` with callback function is deprecated
warning: `show par: set block(spacing: ..)` has no effect anymore
warning: `state.display` is deprecated
warning: `style` is deprecated
warning: Typst's default font has changed from Linux Libertine to its successor Libertinus Serif
warning: unknown font family: helvetica
warning: unknown font family: helvetica neue
With Typst 0.12.0 released recently, Mantys has to change its API calls a bit to remove deprecated calls. For example when I run
typst compile docs/mantys-manual.typ docs/mantys-manual.pdf --root ./
with a freshly-cloned copy of this repo and Typst version 0.12.0(737895d7)
, I get these warnings (long; click to open):The output of
typst compile
The
ag|sort|uniq
ed warnings are as follows:For more information, see:
Thank you for making and maintaining Mantys 🌼
I really hope it becomes a sort-of standard for Typst packages’ manuals.
The text was updated successfully, but these errors were encountered: