Compare commits

..

8 Commits

Author SHA1 Message Date
Sven Vogel 4df961b5e3 Merge pull request 'build/update-nix-channel' (#75) from build/update-nix-channel into main
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 1m53s Details
Reviewed-on: #75
2024-11-20 09:15:48 +00:00
Sven Vogel 6f25d3e918 Merge pull request 'chore: remove deprecation warnings for typst v0.12.0' (#74) from chore/remove-deprecation-warnings into build/update-nix-channel
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 2m4s Details
Reviewed-on: #74
2024-11-20 09:10:13 +00:00
Sven Vogel ddfec22fe8 fix(style): add context around `counter.display` src/style.typ:187:23 due to "`counter.display` without context is deprecated"
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 2m2s Details
2024-11-20 10:04:17 +01:00
Sven Vogel f3ebfaf538 fix(glossar): remove `here()` location paramter at src/glossarium.typ:32:4 due to "calling `state.final` with a location is deprecated" 2024-11-20 10:03:24 +01:00
Sven Vogel d9e7d875d6 fix(glossar): remove `here()` location parameter at src/glossarium.typ:52:29 due to "calling `state.final` with a location is deprecated" 2024-11-20 10:03:12 +01:00
Sven Vogel 26f77f3690 fix(glossar): remove `here()` location paramter at src/glossarium.typ:40:4 due to "calling `query` with a location is deprecated" 2024-11-20 10:02:58 +01:00
Sven Vogel 0856fb4570 fix(outline): remove `here()` location paramter at src/pages/outline.typ:16:16 due to "calling `query` with a location is deprecated" 2024-11-20 10:02:25 +01:00
Sven Vogel f03c1e0554 build: update nix channel to 24.11 (#69)
Update nix channel in shell.nix used by actions in order to make use of
Typst v0.12.0 andd remove dependency of the nix-unstable channel

refers to: #69
2024-11-20 08:48:57 +01:00
4 changed files with 5 additions and 6 deletions

View File

@ -1,5 +1,5 @@
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-24.11";
pkgs = import nixpkgs { config = {}; overlays = []; };
in

View File

@ -34,10 +34,9 @@ SOFTWARE.*/
loc,
inclusive: false,
),
loc,
)
} else {
query(selector(label(__glossary_label_prefix + key)), loc)
query(selector(label(__glossary_label_prefix + key)))
}
}
@ -49,7 +48,7 @@ SOFTWARE.*/
// Reference a term
#let gls(key, suffix: none, long: none, display: none) = {
context {
let __glossary_entries = __glossary_entries.final(here())
let __glossary_entries = __glossary_entries.final()
if key in __glossary_entries {
let entry = __glossary_entries.at(key)

View File

@ -13,7 +13,7 @@
#let render_filtered_outline(title: str, kind: selector) = (
context {
let elems = query(figure.where(kind: kind), here())
let elems = query(figure.where(kind: kind))
let count = elems.len()
show outline.entry: it => {

View File

@ -184,7 +184,7 @@
show figure.caption: c => [
#if c.body.fields().len() > 0 {
text(weight: "medium")[
#c.supplement #c.counter.display("1.1.1")
#c.supplement #context c.counter.display("1.1.1")
]
c.separator
}