Skip to content

Fix baseline anchors for equations - #1127

Merged
johannes-wolf merged 1 commit into
cetz-package:0.5.3from
hooyuser:equation-baseline
Aug 28, 2026
Merged

Fix baseline anchors for equations#1127
johannes-wolf merged 1 commit into
cetz-package:0.5.3from
hooyuser:equation-baseline

Conversation

@hooyuser

@hooyuser hooyuser commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Fix #794.

This PR introduces a dedicated measure function for computing baseline anchors for equations. Typst 0.15 fixes baseline handling for math equations, enabling extraction of the required baseline metrics with a simple zero-width box trick.

@johannes-wolf
johannes-wolf changed the base branch from master to 0.5.3 August 25, 2026 16:51
@johannes-wolf

johannes-wolf commented Aug 27, 2026

Copy link
Copy Markdown
Member

Thank you for the PR. Can you rebase this onto the 0.5.3 release branch please?

@johannes-wolf johannes-wolf added this to the 0.5.3 milestone Aug 27, 2026
@hooyuser

Copy link
Copy Markdown
Contributor Author

Done! Rebased onto 0.5.3.

@johannes-wolf

Copy link
Copy Markdown
Member

Thank you!

@johannes-wolf
johannes-wolf merged commit ff7adb5 into cetz-package:0.5.3 Aug 28, 2026
1 check passed
@hooyuser hooyuser mentioned this pull request Aug 28, 2026
johannes-wolf added a commit that referenced this pull request Aug 28, 2026
#1127 relies on baseline propagation introduced in Typst 0.15.

This PR raises the minimum compiler version to 0.15.0 and updates CI to
use Typst 0.15.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect base anchors for equations

2 participants