What's going on in these #box?

Another possible (and not too uncommon) technique is to wrap the inner content in a box with infinite width like so

#box(
  width: 0pt, 
  box(
    width: 1pt * float.inf,
    move(align(end,"1.(a)"), dx: -1em)
  )
)

This lifts the size constraint that is applied to everything inside the outer zero-width box.

In particular this works for any content and is therefore useful for packages when the content is provided by the user.

6 Likes