Skip to content

Fix equation anchors when the baseline is outside the bounding box - #1132

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

johannes-wolf merged 1 commit into
cetz-package:0.5.3from
hooyuser:equation-baseline-fix

Conversation

@hooyuser

Copy link
Copy Markdown
Contributor

For equations such as $-$, the baseline can lie below the equation's bounding box. In other cases, the baseline can lie above the equation's bounding box.

This PR handles both edge cases and adds tests for them.

@hooyuser
hooyuser force-pushed the equation-baseline-fix branch 2 times, most recently from 689ac9f to a8a12c2 Compare August 28, 2026 11:47
@johannes-wolf
johannes-wolf self-requested a review August 28, 2026 17:32
@johannes-wolf johannes-wolf added this to the 0.5.3 milestone Aug 28, 2026

@johannes-wolf johannes-wolf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@johannes-wolf
johannes-wolf merged commit ab952b0 into cetz-package:0.5.3 Aug 31, 2026
1 check passed
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.

Anchors can't optically center a glyph that doesn't reach cap-height

2 participants