only show used acronyms (#51)
Gitea Action for checking typst compilation / run-ci-linux (push) Successful in 28s Details

This commit is contained in:
Sven Vogel 2024-08-26 15:26:28 +02:00
parent 410c753339
commit 0438d73ab5
2 changed files with 8 additions and 2 deletions

View File

@ -170,7 +170,13 @@ SOFTWARE.*/
numbering: none,
caption: {
context {
let term_references = __query_labels_with_key(here(), entry.key)
let key = if entry.key.ends-with("__glossary_entry") {
entry.key.replace("__glossary_entry", "")
} else {
entry.key
}
let term_references = __query_labels_with_key(here(), key)
if term_references.len() != 0 or show-all [
#let desc = entry.at("desc", default: "")
#let long = entry.at("long", default: "")

View File

@ -93,7 +93,7 @@
#if "glossary" in config.thesis and config.thesis.glossary != none {
print-glossary(
show-all: true,
show-all: false,
disable-back-references: true,
enable-group-pagebreak: true,
glossary(config.thesis.glossary, config),