Skip to content

Skip the jot on the final line in an align or gather environment#4050

Closed
mvr wants to merge 2 commits intoKaTeX:mainfrom
mvr:main
Closed

Skip the jot on the final line in an align or gather environment#4050
mvr wants to merge 2 commits intoKaTeX:mainfrom
mvr:main

Conversation

@mvr
Copy link
Copy Markdown
Contributor

@mvr mvr commented May 19, 2025

What is the previous behavior before this PR?
The extra spacing added to align and gather environments by #725 was erroneously being added to the final line, causing some awkward spacing below those environments.

What is the new behavior after this PR?
The extra spacing is skipped for the final line. The Gathered and Equation tests are also affected by this, but the positioning there is now more in line with LaTeX.

Fixes #3142

@mvr
Copy link
Copy Markdown
Contributor Author

mvr commented May 19, 2025

I'm having trouble regenerating those screenshots on my machine, so I'll need some help here, sorry.

@mvr
Copy link
Copy Markdown
Contributor Author

mvr commented May 23, 2025

This should be good to go now.

@edemaine
Copy link
Copy Markdown
Member

Replaced by #4184. Thanks for fixing this long ago, and sorry it took so long to get to!

@edemaine edemaine closed this Mar 27, 2026
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.

Unwanted vertical space after aligned environment

2 participants