/* Do not label equations unless they have an */ #show: body => { for elem in body.children { if elem.func() == math.equation and elem.block { let numbering = if "label" in elem.fields().keys() { "(1)" } else { none } set math.equation(numbering: numbering) elem } else { elem } } }