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

Build errors with typst v0.12 #21

Open
luv2code opened this issue Nov 8, 2024 · 0 comments
Open

Build errors with typst v0.12 #21

luv2code opened this issue Nov 8, 2024 · 0 comments

Comments

@luv2code
Copy link

luv2code commented Nov 8, 2024

I have typst installed via snap which keeps it everygreen. I have some formatting changes, and so I wanted to catch my branch up and update my copy of the book - but the build failed.

My workaround is to downgrade typst to v0.11.

here is the build output with typst v0.12:

just build-pdf
typst compile --font-path fonts HypermediaSystems.typ
warning: unknown font family: yrsa
  ┌─ -1-copy-ack.typ:1:41
  │
1 │ #show heading: set text(size: 1em, font: "Yrsa")
  │                                          ^^^^^^

warning: `locate` with callback function is deprecated
  ┌─ lib/indexing.typ:3:24
  │
3 │   #let index(..content) = locate(loc =>
  │ ╭─────────────────────────^
4 │ │ [#metadata((content: content.pos(), location: loc))<jkrb_index>])
  │ ╰─────────────────────────────────────────────────────────────────^
  │
  = hint: use a `context` expression instead

warning: Typst's default font has changed from Linux Libertine to its successor Libertinus Serif
   ┌─ lib/style.typ:52:18
   │
52 │   #set text(font: body-font, size: 12pt, lang: "en")
   │                   ^^^^^^^^^
   │
   = hint: please set the font to `"Libertinus Serif"` instead
   = hint: Linux Libertine is available on your system - you can ignore this warning if you are sure you want to use it
   = hint: this warning will be removed in Typst 0.13

warning: unknown font family: berkeley mono
   ┌─ lib/style.typ:54:28
   │
54 │   #show raw: set text(font: mono-font)
   │                             ^^^^^^^^^

warning: `show par: set block(spacing: ..)` has no effect anymore
   ┌─ lib/style.typ:66:3
   │
66 │   #show par: set block(spacing: leading)
   │    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   │
   = 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
   ┌─ lib/indexing.typ:23:2
   │
23 │ ╭   locate(
24 │ │     loc => {
25 │ │       let index-terms = query(<jkrb_index>, loc)
26 │ │       let terms-dict = (:)
   · │
86 │ │     },
87 │ │   )
   │ ╰───^
   │
   = hint: use a `context` expression instead

warning: `locate` with callback function is deprecated
    ┌─ lib/style.typ:190:7
    │
190 │         #locate(loc => counter(heading).update((..args) =>
    │ ╭────────^
191 │ │         (args.pos().at(0), chapter-counter.at(loc).last())))
    │ ╰────────────────────────────────────────────────────────────^
    │
    = hint: use a `context` expression instead

warning: calling `query` with a location is deprecated
   ┌─ lib/indexing.typ:25:24
   │
25 │       let index-terms = query(<jkrb_index>, loc)
   │                         ^^^^^^^^^^^^^^^^^^^^^^^^
   │
   = hint: try removing the location argument

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

No branches or pull requests

1 participant