22

I failed to center an itemize in beamer, together with its headline. In my second try below, although the items are centered, their headline (i.e. the text My second try: Centering the itemize) is not left-aligned with them.

How to center an itemize in beamer, together with its headline?

centering-itemize

\documentclass{beamer}
\usetheme{CambridgeUS}
\begin{document}
\begin{frame}{Centering the itemize}
  My first try: Centering the itemize
  \begin{center}
    \begin{itemize}
      \item item1
      \item item2
    \end{itemize}
  \end{center}

  \begin{center}
  My second try: Centering the itemize
  \begin{itemize}
    \centering
    \item item1
    \item item2
  \end{itemize}
  \end{center}
\end{frame}
\end{document}

4 Answers 4

13

Here is one way; using a tabular-like structure:

enter image description here

\documentclass{beamer}
\usetheme{CambridgeUS}
\newcommand{\tabitem}{%
  \usebeamertemplate{itemize item}\hspace*{\labelsep}}

\begin{document}

\begin{frame}{Centering the itemize}
  My first try: Centering the itemize
  \begin{itemize}
    \item item1
    \item item2
  \end{itemize}

  \begin{center}
    \begin{tabular}{@{}l@{}}
      My second try: Centering the itemize \\
      \tabitem item1 \\
      \tabitem item2
    \end{tabular}
  \end{center}
\end{frame}

\end{document}

You insert an "\item" inside the tabular using \tabitem.

2
  • Thanks. BTW, what does @{}l@{} in tabular mean? (I can understand something like |c|l|.)
    – hengxin
    Apr 16, 2015 at 5:43
  • 1
    @hengxin: @{} removes the column spacing.
    – Werner
    Apr 16, 2015 at 5:55
11

Another way is to include the itemize list within the minipage environment and center the minipage. The key is to make the width of the minipage just enough to hold the widest item in the list. I use trial and error, but I am sure there is a cleverer way.

LaTeX output

\documentclass{beamer}
\usetheme{CambridgeUS}

\begin{document}

\begin{frame}{Centering the itemize}
  \begin{center}
    \begin{minipage}{0.14\textwidth}
      \begin{itemize}
        \item item1
        \item item2
      \end{itemize}
    \end{minipage}
  \end{center}
\end{frame}

\end{document}
7

There is another way:

\begin{itemize}
    \item  \begin{center} item1 \end{center}
    \item  \begin{center} item2 \end{center}
\end{itemize}
1
  • 1
    This doesn't center any headline
    – user1
    Nov 6, 2017 at 17:28
1

Use:

\begin{center}
  \begin{minipage}[c]{0.5\linewidth}
     \begin{itemize}
       \item Item 1
       \item Item 2
       \item  Item 3
     \end{itemize}
  \end{minipage}
\end{center}
1
  • Welcome to TeX.SE! In what is your answer different from @Mark Sprague answer?
    – Zarko
    Apr 15, 2022 at 21:33

You must log in to answer this question.

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