Skip to content

Reduce vertical space above equation after orphans #2438

@wisp3rwind

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestlayoutRelated to the layout category, which is about composing, positioning, etc.mathRelated to math category, with its syntax, layout, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions