From 0856fb4570b8869b277ecf27141d03f0bc90267b Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:02:25 +0100 Subject: [PATCH 1/5] fix(outline): remove `here()` location paramter at src/pages/outline.typ:16:16 due to "calling `query` with a location is deprecated" --- src/pages/outline.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => { From 26f77f369040a4d6a66ea027d057feaab8f061d7 Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:02:58 +0100 Subject: [PATCH 2/5] fix(glossar): remove `here()` location paramter at src/glossarium.typ:40:4 due to "calling `query` with a location is deprecated" --- src/glossarium.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glossarium.typ b/src/glossarium.typ index 7589b4a..6624619 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -37,7 +37,7 @@ SOFTWARE.*/ loc, ) } else { - query(selector(label(__glossary_label_prefix + key)), loc) + query(selector(label(__glossary_label_prefix + key))) } } From d9e7d875d6b12c1a055a7ddb94d6792627681a3e Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:03:12 +0100 Subject: [PATCH 3/5] fix(glossar): remove `here()` location parameter at src/glossarium.typ:52:29 due to "calling `state.final` with a location is deprecated" --- src/glossarium.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/glossarium.typ b/src/glossarium.typ index 6624619..ce7f5a6 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -49,7 +49,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) From f3ebfaf5380c50f60a063b27e8e42b931ca0a27e Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:03:24 +0100 Subject: [PATCH 4/5] fix(glossar): remove `here()` location paramter at src/glossarium.typ:32:4 due to "calling `state.final` with a location is deprecated" --- src/glossarium.typ | 1 - 1 file changed, 1 deletion(-) diff --git a/src/glossarium.typ b/src/glossarium.typ index ce7f5a6..d4ceedb 100644 --- a/src/glossarium.typ +++ b/src/glossarium.typ @@ -34,7 +34,6 @@ SOFTWARE.*/ loc, inclusive: false, ), - loc, ) } else { query(selector(label(__glossary_label_prefix + key))) From ddfec22fe84733e63c2b50eb70761075a92ebc29 Mon Sep 17 00:00:00 2001 From: servostar Date: Wed, 20 Nov 2024 10:04:17 +0100 Subject: [PATCH 5/5] fix(style): add context around `counter.display` src/style.typ:187:23 due to "`counter.display` without context is deprecated" --- src/style.typ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }