6

I have two itemize environments, one is nested in the other. Somehow the nested itemize environment affects the vertical spacing of the adjacent item of the parent itemize environment. As you can see in the example below, the vertical space between b and c is slightly smaller than between a and b. If I remove the nested itemize environment, the vertical spacing between b and c is the same as between a and b. How can I achieve equally spaced items in an itemize environment nesting another itemize environment?

enter image description here

\documentclass{beamer}

\begin{document}
  \begin{frame}
    \begin{itemize}
      \item a
      \item b
      \item c
      \begin{itemize}
        \item d
        \item e
      \end{itemize}
    \end{itemize}
  \end{frame}
\end{document}
2

2 Answers 2

6

This issue appears to be solved by leaving a blank line before the nested itemize:

\documentclass{beamer}

\begin{document}
  \begin{frame}
    \begin{itemize}
      \item a
      \item b
      \item c

      \begin{itemize}
        \item d
        \item e
      \end{itemize}
    \end{itemize}
  \end{frame}
\end{document}

comp

1
7

The package enumitem somehow solves the problem. Note that the package redefines beamer list features.

\documentclass{beamer}

\usepackage{enumitem}

% redefine default beamer item labels
\setitemize{label=\usebeamerfont*{itemize item}%
  \usebeamercolor[fg]{itemize item}
  \usebeamertemplate{itemize item}}

\begin{document}
  \begin{frame}
    \begin{itemize}
      \item a
      \item b
      \item c
      \begin{itemize}
        \item d
        \item e
      \end{itemize}
    \end{itemize}
  \end{frame}
\end{document}
2

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .