Issues

Issue #68 resolved

mode specification to itemize produce error in article mode

Anonymous created an issue

I am using beamer (miktex under Windows), recently updated.

It seems that overlay specifications in article mode are not handled. The snipped below is a short example.

%\documentclass[ignorenonframetext]{beamer} %\documentclass[handout,ignorenonframetext]{beamer} %\documentclass[class=article,11pt]{beamer} %\usepackage{beamerbasearticle} \documentclass[11pt]{article} \usepackage{beamerarticle}

\begin{document}

\begin{frame}

\begin{itemize}[<+->] \item 1 \item 2 \item 3

\end{itemize}

\end{frame}

\end{document}

Bump!

I resolved this issue for the moment for me for the moment by restoring two lines in beamerbaselocalstructure.sty to their contents in version 3.07.

Namely, toward the end of the code defining "itemize" the renew command in version 3.10 is

\renewcommand*\itemize{\beamer@origitemize}

After restoring the 3.07 line, this part of the code reads:

\let\beamer@itemize\itemize

\mode

<article>

{

\AtBeginDocument{

\let\beamer@origitemize=\itemize

\renewcommand{\itemize}[1][]{\beamer@origitemize}

}

}

... and seems to work.

I made a similar change to the corresponding code for "enumerate".

Georgi Boshnakov

%\documentclass[ignorenonframetext]{beamer}

%\documentclass[handout,ignorenonframetext]{beamer}

%\documentclass[class=article,11pt]{beamer}

%\usepackage{beamerbasearticle}

\documentclass[11pt]{article}

\usepackage{beamerarticle}

\begin{document}

\begin{frame}

\begin{itemize}[<+->] \item 1 \item 2 \item 3

\end{itemize}

\end{frame}

\end{document}

##68

While your fix works in the case given, I think a safer approach is probably to detect the beamer-style argument and remove it from the input. There are cases where some other package also adds an optional argument to itemize, and ideally this should still work. See check in 590a94c2bb06 where I hope I've done exactly this.