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

Reset parskip after constructing the TOC #15

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

lucvanderzandt
Copy link
Contributor

@lucvanderzandt lucvanderzandt commented Jul 14, 2023

Closes #14

@@ -456,6 +456,9 @@
\parskip\z@

\@starttoc{toc}%

% Reset parskip so it doesn't affect the rest of the document
\parskip\@leading
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm slightly confused by this (might be my lack of knowledge), but should we use a \setlength here? How does this code work? From what I understood, \parskip is glue, which in LaTeX, we should set with \setlength. But feel free to correct me!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I shouldn't have looked at this at the beginning of term with no time and mental space. I now realize that I used the same methodology just before to reset \parskip to zero, so this should be perfectly fine. Seems to work on my machine, so all good. Sorry for the confusion.

@jkorb
Copy link
Collaborator

jkorb commented Sep 4, 2023

Hi @lucvanderzandt ! Could you check out my question above?

Also: the code will now officially be "unlicensed" (see #7 ). I hope that'll be cool with you (I suppose this is a "one liner" but anyways).

@jkorb jkorb merged commit e584d27 into UtrechtUniversity:main Feb 6, 2024
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.

[Bug, uureport] After adding a TOC, the paragraph layout is reset
2 participants