How to enable line numbering inside a `place` environment?

I have this code in a template that places a title and abstract (I’m using a place function since the paper itself is 2-column formatted):

#place(
    top + center,
    scope: "parent",
    float: true,
)[
    #text(size: 15pt, weight: "bold", title)

    = Abstract
    #box(width: 90%)[#par(justify: true)[#abstract]]
]

And I was wondering how to enable line numbering for the entire block. Simply adding #set par.line(numbering: "1") before the title doesn’t seem to do the trick. Let me know if you need any more details–thanks in advance!

Hello. I’m not sure if this is currently possible, since you want a floating text to be numbered with the rest of the text. IMO, since it is a floating text (i.e., it’s still in the flow of the document), it might be possible to add line numbers to it, unlike float: false (which might be also possible, but the position and overlap can become a nightmare).

I didn’t find any open issue about this, so you can open a new one.

Interesting… I’ve opened an issue on GitHub, so we’ll see what happens. Thanks!

1 Like