diff --git a/shell.nix b/shell.nix index a71ba0e..e3ea31b 100644 --- a/shell.nix +++ b/shell.nix @@ -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 diff --git a/src/glossarium.typ b/src/glossarium.typ index 7589b4a..d4ceedb 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -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) diff --git a/src/pages/outline.typ b/src/pages/outline.typ index 4d6aeab..143e4ce 100644 --- a/src/pages/outline.typ +++ b/src/pages/outline.typ @@ -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 => { diff --git a/src/style.typ b/src/style.typ index 6ddd72b..511adf0 100644 --- a/src/style.typ +++ b/src/style.typ @@ -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 }