3

When using

\begin{description}[abc]
    \item[ab] Some description
    \item[abc] Some description
    \item[abcd] Some description
\end{description}

Space of length "abc" is reserved for labels. So "ab" will be right aligned, while "abcd" will be longer than the indentation of wrapped lines.

When using beamer, I use

\begin{description}[<+->]
    \item[ab] Some description
    \item[abc] Some description
    \item[abcd] Some description
\end{description}

to specify that the items should appear one after the other. Is there any way to specify how much space should be reserved for labels while doing this?

2 Answers 2

2

just put the spec after [<+->]:

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{description}[<+->][abc]
    \item[ab] Some description
    \item[abc] Some description
    \item[abcd] Some description
\end{description}

\begin{description}[abc]
    \item[ab] Some description
    \item[abc] Some description
    \item[abcd] Some description
\end{description}
\end{frame}
\end{document}

The result is the same.

0
0

You could use \phantom statements in the first two \items. That way, all labels will have the same width and alignment properties.

\documentclass{beamer}
\begin{document}
\begin{frame}
\begin{description}[<+->]
    \item[ab\phantom{cd}] Some description
    \item[abc\phantom{d}] Some description
    \item[abcd] Some description
\end{description}
\end{frame}
\end{document}

You must log in to answer this question.

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