Skip to content

Spacing with relative size doesn't work inside block math equation? #6213

Open

Description

@NamorNiradnug

Description

The following code

#set page(width: 10cm, height: auto)

$ "hello" #h(50%) "world" $
$ "hello" #block(width: 50%) "world" $

produces this:

Image

i.e. relative size does work for #block but not for spacing.

Reproduction URL

https://typst.app/project/rXgMyui38t7LEw376Dhy2y

Operating system

Web app

Typst version

  • I am using the latest version of Typst

Activity

  1. added
    bug
    on Apr 27, 2025
  2. changed the title [-]Spacing with relative size doesn't work insize block math equation?[/-] [+]Spacing with relative size doesn't work inside block math equation?[/+] on Apr 27, 2025
  3. added
    math
    on Apr 27, 2025
  4. mkorje commented on Apr 27, 2025

    @mkorje
    Collaborator

    Very similar to #5780.

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

    bugmath

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions