Separate line numbers for each equation in an equation block
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 56.1k
- Forks
- 1.7k
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
Description
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)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Run the provided Typst example with equation and paragraph line numbering, then trace the equation-block line-numbering entry point. Clarify how multi-line equation blocks and unnumbered equations should behave; done means each equation receives a precise line number without requiring equation numbering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100