Skip to content

Set the baseline of a box to that of a specific line #493

Open

Description

@lvjr
Some text some text Some text some text Some text some text
Some text some text Some text some text Some text some text
#box[One\ Two\ Three]
Some text some text Some text some text Some text some text
Some text some text Some text some text

image

Typst sets the baseline of a box to the bottom text line. But I could not change it to the top text line (like \vtop in TeX).

Activity

  1. laurmaedje commented on Apr 1, 2023

    @laurmaedje
    Member

    We'll add configuration for that in the future. You can already set box(baseline: ...), but only to a fixed value not to the n-th or middle line.

  2. added
    feature request
    layout
    on Apr 1, 2023
  3. changed the title [-]Set the baseline of a box to the top text line[/-] [+]Set the baseline of a box to that of a specific line[/+] on Jul 15, 2024
  4. wisp3rwind commented on Nov 29, 2024

    @wisp3rwind

    Relatedly, it might be interesting to have functionality like the LaTeX xcoffins project (which gives access to both first and last baseline of box content, and allows arranging boxes based on various handles).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestlayout

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions