Skip to content

Base text gets displaced when first-line-indent of a paragraph has all: true. #5

@vanleefxp

Description

@vanleefxp

In my Typst template I specified a 2em first-line-indent for each paragraph with all: true specified.

#set par(first-line-indent: (amount: 2em, all: true))

However, when using the rubby package, I found the base characters are also displaced from the original position by 2em. The problem disappears if I don't use all: true, but if all: true is enabled, the horizontal displace of the base text is always the same amount as first-line-indent amount.

Below is an example:

#set par(first-line-indent: 0em)
#ruby[い|しん|は][維|新|派]
#set par(first-line-indent: 2em)
#ruby[い|しん|は][維|新|派]
#set par(first-line-indent: (amount: 2em, all: true))
#ruby[い|しん|は][維|新|派]

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions