5

I am trying to use the options noitemsep and nolistsep in beamer. My simple code is

\documentclass{beamer}
\begin{document}
  \begin{frame}
    \begin{itemize}[noitemsep, nolistsep]
      \item Item 1
      \item Item 2
      \item Item 3
    \end{itemize}
  \end{frame}
\end{document}

My output is

enter image description here

and I am given the following error

! Use of \beamer@parseitem doesn't match its definition. \beamer@defaultospec ->n oitemsep, nolistsep l.9 \end{frame

}

Any idea how to make those options work in beamer?

Thanos
  • 12,446
  • as pointed out in the answer below you are not even loading package enumitem which is the package providing these options. –  Jan 11 '16 at 07:55

3 Answers3

11

It seems to be a general theme from Does enumitem conflict with beamer for lists that you need to use \setlist to get beamer and enumitem to play well together. In this case,

\documentclass{beamer}
\usepackage{enumitem}
\setlist[itemize]{noitemsep, nolistsep}
\begin{document}
  \begin{frame}
    \begin{itemize}
      \item Item 1
      \item Item 2
      \item Item 3
    \end{itemize}
  \end{frame}
\end{document}

seems to do what you want:

enter image description here

6

What about this code for local way?

\documentclass{beamer}
\usepackage{enumitem}
\begin{document}
\begin{frame}
\begin{itemize}[noitemsep,nolistsep]
  \item Item 1
  \item Item 2
  \item Item 3
\end{itemize}
\end{frame}
\end{document}
5

Here's a way to do it locally without using the package enumitem.

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\setlength{\itemsep}{0pt}
\setlength{\parskip}{0pt}
\setlength{\parsep}{0pt}
  \item Item 1
  \item Item 2
  \item Item 3
\end{itemize}
\end{frame}
\end{document}
JRN
  • 294