From 3c87ec58c86ef0b1bd04c819f7df99ef537ab6f8 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 11 Jul 2023 00:42:45 -0700 Subject: [PATCH] Hide helper function in closure --- linguistic-abbreviations.typ | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/linguistic-abbreviations.typ b/linguistic-abbreviations.typ index c915183..592706a 100644 --- a/linguistic-abbreviations.typ +++ b/linguistic-abbreviations.typ @@ -113,17 +113,14 @@ #let fmnt = smallcaps([fmnt]) - -//Appendix: List of Standard Abbreviations - -#let mark_used(symbol) = { - used_abbreviations.update(cur => { - cur.insert(symbol, true) - cur - }) -} - #let emit_abbreviation(symbol) = { + let mark_used(symbol) = { + used_abbreviations.update(cur => { + cur.insert(symbol, true) + cur + }) + } + mark_used(symbol) smallcaps(lower(symbol)) }