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

[styles] Give lists uniform vertical spacing. #1097

Closed
wants to merge 1 commit into from

Conversation

tkoeppe
Copy link
Contributor

@tkoeppe tkoeppe commented Nov 22, 2016

This change makes it so that the vertical space surrounding lists is independent of whether there is a paragraph break before the list (by setting partopsep to zero).

Moreover, all nested lists now use the same vertical spacing, which in turn is the same as the paragraph spacing.

There is a bug in memoir that may cause second-level lists (lists within a top-level list) to be rendered too tightly (because the itemsepii length is ignored). This can be fixed locally, though.

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 22, 2016

@zygoloid, @burblebee: I extracted just the list changes; please have a look.

@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 22, 2016

@zygoloid: This change should avoid all the problems with the previous proposal. The question now boils down to a simpler one of whether we like the tigher and more uniform list spacing.

There are two reasons that make me think so:

  1. The ease of editing, not having to worry about awkward paragraph breaks to trigger negative spacing.
  2. Lists within paragraphs look better with this, because now at least the list doesn't cause more whitespace inside a single paragraph than a paragraph break would. Given that our lists have "paragraph numbers", it feels apppropriate to space them exactly like paragraphs.

Please remember that second-level lists may look too tight (just as in the status quo in fact) unless you fix up your memoir.cls.

@tkoeppe tkoeppe force-pushed the style2 branch 6 times, most recently from 67070d2 to 45d4822 Compare November 26, 2016 20:45
This change makes it so that the vertical space surrounding lists is independent of whether there is a paragraph break before the list (by setting partopsep to zero).

Moreover, all nested lists now use the same vertical spacing, which in turn is the same as the paragraph spacing.

There is a bug in memoir that may cause second-level lists (lists within a top-level list) to be rendered too tightly (because the itemsepii length is ignored). This can be fixed locally, though.
@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 27, 2016

I'm closing this PR in favour of PR #1134, which uses the enumitem package and does not suffer from the memoir bug.

@tkoeppe tkoeppe closed this Nov 27, 2016
@tkoeppe tkoeppe deleted the style2 branch November 27, 2016 21:44
@tkoeppe
Copy link
Contributor Author

tkoeppe commented Nov 29, 2016

image

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

1 participant