Skip to content

root function without index omits spacing #6019

@sudanchapagain

Description

@sudanchapagain

Description

I have been writing my typst code poorly by exploiting the root function for square roots as $root(,2)$ which is not semantically correct but i think having a good default will be beneficial.

writing $3 root(,2)$ omits spacing between 3 and root of 2

code for all three

$
"with root function ->"
3 root(,2)\ \ \

"with sqrt function ->"
3 sqrt(2)\ \ \

"with root function but space"\ "char inserted before ->"
3 " " root(,2)\
$

Image

compiler version: 8dce676dcd691f75696719e0480cd619829846a9

Reproduction URL

No response

Operating system

Web app

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