Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the following problem: For a proof of a theorem I need a case distinction inside a proof environment of a beamer presentation. I think that an enumerate might be helpful, the problem is however that I want some enumitems other than (a),(b),(c). I tried to set this using \setbeamertemplate:

\documentclass{beamer}
\usetheme{Goettingen}

\setbeamertemplate{enumerate item}{\arabic{enumi}. Fall:}

\begin{document}
  \begin{frame}
    \begin{enumerate}
      \item asd
    \end{enumerate}
  \end{frame}

\end{document}

Unfortunately, the whole thing looks really crappy, because the enumitem is right justified and there is not enough space to accommodate this longer string. Does anyone have any ideas on how to fix this, or how to make a nice-looking case distinction for a beamer document?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

One option could be to use a slightly modified description environment and an auxiliary counter; something along these lines:

\documentclass{beamer}
\usetheme{Goettingen}

\newcounter{count}
\newcommand\mycount{\stepcounter{count}\thecount. }
\resetcounteronoverlays{count}

\setbeamersize{description width=2.5cm}
\setbeamertemplate{description item}{\mycount\insertdescriptionitem}

\begin{document}
  \begin{frame}
    \begin{description}
      \item[Winter:] asd
      \item[Spring:] asd
      \item[Summer:] asd
      \item[Fall:] asd
    \end{description}
  \end{frame}

\end{document}

enter image description here

Or, with left alignment for the labels:

\documentclass{beamer}
\usetheme{Goettingen}

\newcounter{count}
\newcommand\mycount{\stepcounter{count}\thecount. }
\resetcounteronoverlays{count}


\setbeamersize{description width=2.5cm}
\setbeamertemplate{description item}{%
  \makebox[2cm][l]{\mycount\insertdescriptionitem\hfill}}

\begin{document}
  \begin{frame}
    \begin{description}
      \item[Winter:] asd
      \item[Spring:] asd
      \item[Summer:] asd
      \item[Fall:] asd
    \end{description}
  \end{frame}

\end{document}

enter image description here

share|improve this answer
    
Thank you, this seems to work quite nicely. On a different subject, the word Fall in this context is german for case and has nothing to do with seasons :) –  hfhc2 Jun 8 '12 at 6:01
    
@hfhc2 sorry about the misunderstanding ;-) My German knowledge reduces to a few words (and Fall was not one of them); on the bright side, now I can add a new word to my list. –  Gonzalo Medina Jun 8 '12 at 16:08
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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