From c91bb54399009045bb43fec842e54505300ee6b8 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 9 Nov 2024 00:17:36 -0800 Subject: [PATCH] Fix context in abbreviations example --- abbreviations.typ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/abbreviations.typ b/abbreviations.typ index c99c3cd..f5b5f04 100644 --- a/abbreviations.typ +++ b/abbreviations.typ @@ -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))