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
This commit is contained in:
Sven Vogel 2024-11-20 09:10:13 +00:00
commit 6f25d3e918
3 changed files with 4 additions and 5 deletions

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
}