Skip to content

Respect page margins when border stroke is not zero #107

@Andrew15-5

Description

@Andrew15-5

I just looked at it closely now, and typst/typst#5741 causing Codly to go into page/column margins by stroke.thickness / 2. Similar to how I solved typst/typst#4416 (comment), for Codly I tried adding #show raw.where(block: true): pad.with(1pt / 2), and it worked as expected.

Since you can't get default values, can this be included in the package natively? It's necessary until typst/typst#5741 is added. I'm not sure if some hacky show rules will be broken, if they were looking for raw and instead will find pad.

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