4

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?

1
  • as pointed out in the answer below you are not even loading package enumitem which is the package providing these options. – user4686 Jan 11 '16 at 7:55
8

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

2
  • Thank you very much! This really solved it! what if I just want to do it locally and not globally? – Thanos May 11 '15 at 9:11
  • @Thanos Sadly, I can't see a local way to do this... – user30471 May 12 '15 at 10:13
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}
3

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}
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.