11

I have an itemize bullets in beamer as follow:

\begin{itemize}
    \item Condition 1
    \item Condition 2
    \item Condition 3
\end{itemize} 

which produces as you know a list of bullets:

  • Condition 1
  • Condition 2
  • Condition 3

What I want is to replace the bullets by C1, C2 and C3 as the following:

C1 Condition 1

C2 Condition 2

C3 Condition 3

Of course I look for an answer before and based on this one, I did the following:

\begin{itemize}[label=(C)]
    \item Condition 1
    \item Condition 2
    \item Condition 3
\end{itemize} 

but I got an error message ! Use of \beamer@parseitem doesn't match its definition.

The way I did it "correctly" is as follow:

\begin{itemize}
    \item[] C1 Condition 1
    \item[] C2 Condition 2
    \item[] C3 Condition 3
\end{itemize} 

but it looks ugly to me. Is there any better way?

Jika
  • 881

3 Answers3

9
\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{enumerate}[C1] % or \begin{enumerate}[<+->][C1] for overlays
    \item Condition 1
    \item Condition 2
    \item Condition 3
\end{enumerate} 
\end{frame}
\end{document}

enter image description here

Ulrike Fischer
  • 327,261
8

It sounds like you're looking for the description environment.

\begin{description}
    \item[C1] Condition 1
    \item[C2] Condition 2
    \item[C3] Condition 3
\end{description}

enter image description here

If you have a lot of these or think you might reorder them, it may be easier to modify enumerate's behavior, so that they're numbered automatically.

\begin{enumerate}[\bf C1]
    \item Condition 1
    \item Condition 2
    \item Condition 3
\end{enumerate}

This has the same output.

Arun Debray
  • 7,126
  • 2
  • 30
  • 54
6

In a 'limited' sense enumitem and beamer can work together, if a real numeration is used, then enumerate is the better environment, not itemize

\documentclass{beamer}

\usepackage{enumitem}

\begin{document}
\begin{enumerate}[label={C\arabic*}]
    \item Condition 1
    \item Condition 2
    \item Condition 3
\end{enumerate} 

\end{document}