Fix use of measure function for new version of typst

This commit is contained in:
Greg Shuflin 2024-11-09 00:00:12 -08:00
parent ae3784f4ec
commit 32dc733b78
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@ -177,7 +177,7 @@
dir: ltr, //TODO this needs to be more flexible dir: ltr, //TODO this needs to be more flexible
left-padding, left-padding,
[#example-number], [#example-number],
gloss-padding - left-padding - measure([#example-number],styles).width, gloss-padding - left-padding - measure([#example-number]).width,
{ {
if args.pos().len() == 1 { // a simple example with no sub-examples if args.pos().len() == 1 { // a simple example with no sub-examples
gloss(..arguments(..args.pos().at(0))) gloss(..arguments(..args.pos().at(0)))