7

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?

5

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.

  • 2
    You don't need to load enumerate, beamer does it already. – Ulrike Fischer Nov 18 '15 at 16:44
  • @UlrikeFischer: thanks! I've edited my answer. – Arun Debray Nov 18 '15 at 16:49
7
\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

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}
  • enumitem will break the overlays. – Ulrike Fischer Nov 18 '15 at 16:43
  • @UlrikeFischer: ` \item<1->` etc. works – user31729 Nov 18 '15 at 16:44
  • 1
    Well I wouldn't use enumitem with beamer, to fragile for my liking. E.g. if I remove the optional argument in your example, I get a ! TeX capacity exceeded, sorry [grouping levels=255]. error. – Ulrike Fischer Nov 18 '15 at 16:52
  • @UlrikeFischer is right. I also suffer from same problem now. – inmybrain Oct 31 '16 at 5:59
  • @inmybrain: That's why I wrote 'in a limited sense' ;-) – user31729 Dec 26 '16 at 9:24

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.