typst
typst copied to clipboard
Separate line numbers for each equation in an equation block
Description
In 0.12-rc1, the new line numbers feature adds one line number, to a display equation with multiple lines.
It would make more sense to have a line number for each equation in a block.
Use Case
Ultimately, line-numbers are meant as a tool to allow people to provide feedback to precise elements in the text. If a line number is attached to a bunch of equations, that would not be a good way to point to which equation is being talked about. I also think with block of equations being broken up now across pages, this is more important to have.
Also, this may contain a bug report too It is necessary for equations to have a numbering, for line-numbers to appear at all.
I think line numbers should appear no matter what, if the equation-block is numbered or not. Or atleast this should be a possible option.
#set page(paper: "a7")
#set par.line(numbering: "1")
#set math.equation(numbering: "1") // this is necessary to have line-numbers appear for equation! Bug?
#lorem(10)
$
dot(S) &= -beta S I,\
dot(I) &= +beta S I - gamma I,\
dot(R) &= +gamma I,
$
#lorem(20)