Skip to content

Reduce vertical space above equation after orphans #2438

Open

Description

@wisp3rwind

Description

Not sure whether this qualifies as a bug or feature request:

Consider the following document:

#lorem(18)
// #v(-1em)
$
  p(x) = sum_(k = 0)^(n - 1) c_k x^k
$
#lorem(50)

which renders as

Equation after orphan with excessive white space

note the excessive whitespace above the equation (which is visually unpleasant, and generally reduces the available space on pages with many block equations significantly).

Manually adding a negative space as indicated by the comment in the typst source yields

Equation after orphan with reduced vertical spacing

which is what I would expect. If I remember corretly, LaTeX also does something like this automatically.

Thanks!

Use Case

Write math-heavy documents without worrying about fixing up spacing manually.

Activity

  1. added
    feature request
    on Oct 19, 2023
  2. added
    math
    on Oct 19, 2023
  3. added
    layout
    on Oct 22, 2023
  4. mkorje commented on Jun 29, 2026

    @mkorje
    Collaborator

    Once #3206 is implemented, this issue basically becomes part of #1028.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestlayoutmath

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions