Use typst 0.12 workaround for label name

This commit is contained in:
Greg Shuflin 2024-11-09 00:05:27 -08:00
parent 32dc733b78
commit 5ac111ee54
2 changed files with 2 additions and 7 deletions

Binary file not shown.

View File

@ -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)}
]
}
)