Skip to content

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

Open
hooyuser wants to merge 1 commit into
cetz-package:0.5.3from
hooyuser:equation-baseline-fix
Open

Fix equation anchors when the baseline is outside the bounding box#1132
hooyuser wants to merge 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.

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.

2 participants