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

LaTeX template: Fix bad vertical spacing after the bibliography #7234

Merged
merged 1 commit into from
Apr 30, 2021
Merged

LaTeX template: Fix bad vertical spacing after the bibliography #7234

merged 1 commit into from
Apr 30, 2021

Conversation

badumont
Copy link
Contributor

With the attached file test-biblio-header-spacing.md and the default LaTeX template, I observed that the space between the bibliography and the subsequent heading is too short in the PDF output (see bad.pdf). This comes from the implementation of the hanging indentation in the CSLReferences environment. This fix redefines \par instead of tweaking \everypar.

test-biblio-header-spacing.md
bad.pdf
good.pdf

.

Fix bad vertical spacing after the bibliography.
Comment on lines -387 to +390
\ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
\ifodd #1
\let\oldpar\par
\def\par{\hangindent=\cslhangindent\oldpar}
\fi
Copy link
Owner

Choose a reason for hiding this comment

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

Can you explain why this works and why the original command didn't create the right spacing?

@badumont
Copy link
Contributor Author

badumont commented Apr 20, 2021 via email

@jgm jgm merged commit b9b22e3 into jgm:master Apr 30, 2021
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.

None yet

2 participants