From 5ac111ee54270a5fc30c49ef441a07cc3983c2fd Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sat, 9 Nov 2024 00:05:27 -0800 Subject: [PATCH] Use typst 0.12 workaround for label name --- documentation.pdf | Bin 143937 -> 143937 bytes leipzig-gloss.typ | 9 ++------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/documentation.pdf b/documentation.pdf index 6454ea8ae603026a8d8d9f50b6fa36fe1bf4af4f..57f695ee78614363f8f6bd34b50e6f084ca1c8eb 100644 GIT binary patch delta 220 zcmX^3gyY~7j)oS-EleAfRV)llj7_36xfB%iee+XX5=&AQG+eBV42(<+4Gk;}z|z~V zC^PL~5(_TL3@uJe4>u{)PDykNa4*hGi^xl#zDSKp9f#cZ`)W-5jO-Rx1}0X9PH_5TH`CTuQ$Yi#R4kXB9anKlVo^y&QED2Op^2fnfeDwYs;j>n0KSMr A=Kufz delta 220 zcmX^3gyY~7j)oS-EleAfRm@E-O^l;7xfB%iee+XX5=&AQG+eBV42(<+4Gk;}z|z~V zC^PL~67vh!FDp&YuQEzXEeMawu86EmcM1udzDSKp9f#cZ`)W-5jO^xCrj}MF#?!y5 zGwH!N+qE>9PH_5TH`CTuQ$Yi#R4kXB9anKlVo^y&QED2Op^2fnfeDwYs;j>n02ty# A#{d8T diff --git a/leipzig-gloss.typ b/leipzig-gloss.typ index 70978e9..7033c3b 100644 --- a/leipzig-gloss.typ +++ b/leipzig-gloss.typ @@ -36,11 +36,6 @@ } } -// a workround so we can use `label` as a variable name where it is shadowed by the function param `label` -// Once typst version 0.12 with https://github.com/typst/typst/pull/4038 is released we should be able -// to replace this workaround with `std.label` -#let cmdlabel = label - // Typesets the internal part of the interlinear glosses. This function does not deal with the external matters of numbering and labelling; which are handled by `example()`. #let gloss( header: none, @@ -151,7 +146,7 @@ left-padding, gloss(..subexample-internal) ) - ) #if "label" in subexample {cmdlabel(subexample.label)} + ) #if "label" in subexample {std.label(subexample.label)} ] ] } @@ -196,7 +191,7 @@ } } ), - ) #if label != none {cmdlabel(label)} + ) #if label != none {std.label(label)} ] } )