Skip to content

math.mid does not respect spacing from the math class #5809

@MDLC01

Description

@MDLC01

Description

I would expect the three following equations to render with the same horizontal spacing.

$ (a class("fence", |) b) $
$ (a mid(class("fence", |)) b) $
$ (a class("fence", mid(|)) b) $

The first equation has more horizontal spacing around the vertical bar.

Tested with both Typst 0.12.0 and the 2025-01-13 development version.

Reproduction URL

No response

Operating system

No response

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmathRelated 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