Fix context in abbreviations example

This commit is contained in:
Greg Shuflin 2024-11-09 00:17:36 -08:00
parent 5ac111ee54
commit c91bb54399

View File

@ -94,10 +94,10 @@
// Accepts a callback that accepts the state of the `used-abbreviations`
// dictionary at the end of the document. Also an additional debug parameter
#let with-used-abbreviations(callback) = {
locate(loc => {
let final_used-abbreviations = used-abbreviations.final(loc)
context {
let final_used-abbreviations = used-abbreviations.final()
callback(final_used-abbreviations)
})
}
}
#let render-abbreviation(symbol) = smallcaps(lower(symbol))