I use \setlength\itemsep{\fill}
to vertically stretch items in an itemize environment. This works fine if I don't have a sub-list:
However, if there is a sub-list, the item following the sub-list would not be stretched. As you can see in the screenshot below, the space between the first two level-1 items is smaller than the space between the last two.
Question
How do I fix this issue in a way that does not require setting a fixed length for \itemsep
(e.g. 10pt
) or manually adding \vfill
before every level-1 \item
?
MWE
\documentclass{beamer}
\begin{document}
\begin{frame}{Title}
\begin{itemize}
\setlength\itemsep{\fill}
\item item
\begin{itemize}
\item subitem
\end{itemize}
\item item
\item item
\end{itemize}
\end{frame}
\end{document}
Best Answer
To stretch the list over the whole space I see two problems:
To automatically set
\setlength\itemsep{\fill}
for all itemizations, it can be added to the definition of\itemize
To add the same space between the items from the parent list and the sublist, one can use
at the beginning and end of this sublist.