Skip to content

Too wide spacing between heading numbering and title in CJK #5778

@hongjr03

Description

@hongjr03

Description

I noticed that typst will automatically add a 0.3em width space after the heading's numbering, which is usually fine, but Chinese is used to use the full-width symbols as the symbol for the heading's numbering, and both the full-width symbols and the 0.3em width space create a part of the space that can lead to too wide a space between the heading's numbering and its content.

Image

although h(0.3em) can be shown as none by the show rule, i think it is possible to add kerning to the numbering, considering that users who have not read the source code may not know the amount of 0.3em.

Reproduction URL

https://typst.app/project/rtKJvE6vqm8aq5bDuQi9Jh

Operating system

macOS

Typst version

  • I am using the latest version of Typst

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcjkChinese, Japanese, Korean typography.textRelated to the text category, which is all about text handling, shaping, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions