Skip to content

Option to not linebreak inline equation #7319

Open

Description

@amgsy

Description

When #par(justify:true) is set, all text, including the math, is justified. This often causes math to break into pieces mid formula.

For example:
Image

The >2^1024 breaks midway through the math, which makes the text harder to read.

Adding an option to not justify/wrap text would make this easier to read:

Image

Use Case

It would make math blocks easier to read.

Activity

  1. added
    feature request
    on Nov 6, 2025
  2. Enivex commented on Nov 6, 2025

    @Enivex
    Collaborator

    This is not really related to justification, but line-breaking in general. In theory you could box inline equations to fix this, but this is currently broken.

    #4796

    That being said, I agree that I almost never want inline equations to break.

  3. added
    math
    on Nov 6, 2025
  4. changed the title [-]Option to not justify math text[/-] [+]Option to not linebreak inline equation[/+] on Nov 20, 2025
  5. added
    layout
    on Nov 20, 2025
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