Use-order and alphabetical used symbols

This commit is contained in:
Greg Shuflin 2023-07-11 01:33:29 -07:00
parent 6fee9d6e4c
commit 2b5cad038d
1 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,12 @@
// An example function that uses `with_used_abbreviations`
#let print_usage_chart = with_used_abbreviations.with(debug: false)(final_used_abbreviations => {
show terms: t => {
for t in t.children [
#t.term #h(2cm) #t.description\
]
}
let print_abbrevs(abbrv_list) = {
for abbrv in abbrv_list {
let explanation = if abbrv in standard_abbreviations {
@ -17,8 +23,7 @@
custom_abbreviations.at(abbrv)
}
[#smallcaps(lower(abbrv)) #h(2em) #explanation]
linebreak()
terms((smallcaps(lower(abbrv)), explanation))
}
}