You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Set the baseline of a box to that of a specific line #493
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
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).
Reacted by Benedikt, shenleban tongying, Tim Fischer and Vilém Zouhar
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).
Activity
laurmaedje commentedon Apr 1, 2023
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.[-]Set the baseline of a box to the top text line[/-][+]Set the baseline of a box to that of a specific line[/+]wisp3rwind commentedon Nov 29, 2024
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).