I think a lot of people may be wondering this function, and I know there must be a great answer of this question. However, I cannot find it maybe because I do not know an adequate keyword for this problem.
I use the following code right after \begin{document} when I use beamer.
\let\OLDitemize\itemize
\let\OLDenumerate\enumerate
\renewcommand\itemize{\OLDitemize\addtolength{\itemsep}{??\baselineskip}}
\renewcommand\enumerate{\OLDenumerate\addtolength{\itemsep}{???\baselineskip}}
Then, I can adjust the inter-item-gap of itemize environment by substituting number into ??. Likewise, so can one of enumerate environment by doing number into ???.
For example, if I change 2 into ?? and 4 into ???, then the whole of inter-item-gap of itemize and enumerate environments are changed.
However, I want adjust gap of items according to item level in the whole of the program. That is, if I write the following code,
\begin{itemize}
\item a
\item b
\item c
\begin{itemize}
\item d
\item e
\item f
\end{itemize}
\item g
\item h
\item i
\end{itemize}
the result I want to get is like the following:
Please let me know how to change item-gap according to the level of items. As occasion arises, I am using \vspace command like \vspace{.7\baselineskip}. This makes the code so dirty to become unreadable.
Actually, label is out of my point. I want to set the gap of item at will, regardless of whether itemize or enumerate.