Skip to content

Version of rotate that affects layout #528

@johannes-wolf

Description

@johannes-wolf

Use case: Using rotated text in tables and grids.

As rotate does not change the elements bounds to its rotated bounding box, rotated text
in tables and grids is not easy to achieve.

#table(columns: (auto, auto),
  rotate([Test Text], -90deg),
  rotate([Test Text], 0deg))

Renders as:
grafik

But what I want is, that the first cell is auto-sized to the bounding box of the rotated element, not its original bounds. Every workaround I have tried failed, as I could not get the table cell to grow correctly.

Proposal: Either add a function that applies all transformations (e.g. transform(rotate(...))) and affects the layout or a parameter (or separater fn) for rotate to affect the layout

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or requestlayoutRelated to layout, positioning, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions