Link Terms To Their First Use
Explicit originals choose the first use. A sorted catalogue displays safe definition summaries without printing or executing their endnote bodies.
Setup Required
Source
#deixis-mark(id: <lemma>, series: "glossary",
marker: none, data: (term: "Lemma",))[*Lemma*]
means the dictionary form of a word.
#deixis-endnote-body(of: <lemma>)[A dictionary headword.]
Later, #context {
let n = deixis-query-notes(series: "glossary")
.find(n => n.id == <lemma>)
link(n.dest)[lemma]
} links to its first use.
#deixis-mark(id: <token>, series: "glossary",
marker: none, data: (term: "Token",))[*Token*]
means one occurrence of a word.
#deixis-endnote-body(of: <token>)[One occurrence in a text.]
== Glossary
#context {
let terms = deixis-query-notes(series: "glossary")
.sorted(key: n => n.data.term)
for n in terms {
block[#strong(link(n.dest, n.data.term)): #n.summary]
}
}