[Feature Request] Support a "botsep" that can be set to different value from topsep
The package uses topsep for the margin before and after the listing. I wish to be able to set the bot margin differently from the top margin. Maybe have a key called botsep that
- If not set, still use
topsepvalue for the bot margin - If set, override the
topsepvalue
I understand that we can workaround this by using the after key, but I am having a problem using after with vspace. Here is a minimal example to reproduce the issue
\documentclass{article}
\usepackage{enumitem}
\setlist{nosep}
\begin{document}
\begin{itemize}
\item aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbc
\vspace*{0ex}
\end{itemize}
after
\end{document}
The last c in the example will introduce extra unwanted space between the line and after.

If we just make the line one character shorter the issue is gone.

In this example, I can get around this by adding an empty line or \par before the \vspace.

For the package seems that after=\par\vspace*{0ex} will result in a compile error. I asked on https://tex.stackexchange.com/ and found that I can use \endgraf instead of \par to make it work. But I still think a built-in botsep will make life a lot easier, especially for those who are not experts in latex.
A couple of comments:
-
bottomsepis probably a better spelling thanbotsepas it seems more people naturally gravitate towars this. - One should also include a customizable
\parbottomsep. -
\partopsepand\parbottomsepshould be documented. (It is documented insource2e, but this can be hard for new users to find.)
There are a variety of relevant topics at TeX Stack Exchange. The following look for a customizable \parbottomsep.
- Add a space after itemize only if no text follows
-
Is it possible to have
\partopsepadded below a list environment that is followed by a new paragraph? - \topsep, \itemsep, \partopsep, \parsep - what do they each mean (and what about the bottom)?
Others would benefit from \bottomsep, but the specific questions can be answered by using before= and after=.
- How to have different whitespace BEFORE and AFTER itemize/enumerate globally?
- Why lists have a \topsep but not a \bottomsep?
- Vertical Space in lists - different spaces before and after list.
Some potential issues/interactions to also consider (just collecting for now: these might not be useful):