Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: number-align should align line/number baselines #4024

Merged
merged 3 commits into from May 7, 2024

Conversation

Leedehai
Copy link
Contributor

Fixes #4014.

The number should be put at the vertical center only if the alignment is FixedAlignment::Center and there are multiple lines. Otherwise, the number's baseline should be on the baseline of the math line it is supposed to be aligned with.

@laurmaedje laurmaedje added the waiting-on-review This PR is waiting to be reviewed. label May 6, 2024
@Leedehai Leedehai force-pushed the number-align-fix branch 2 times, most recently from 7fe28d8 to 497f3c2 Compare May 7, 2024 02:05
@laurmaedje laurmaedje added this pull request to the merge queue May 7, 2024
@laurmaedje
Copy link
Member

Thanks!

@laurmaedje laurmaedje removed the waiting-on-review This PR is waiting to be reviewed. label May 7, 2024
Merged via the queue into typst:main with commit aa38b96 May 7, 2024
6 checks passed
@Leedehai Leedehai deleted the number-align-fix branch May 7, 2024 14:08
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.

Align equation number vertically to the formula baseline - number-align in math.equation
3 participants