beamer icon indicating copy to clipboard operation
beamer copied to clipboard

Frame with both optional and overlay specification can give frame-break

Open blefloch opened this issue 4 years ago • 4 comments

A frame can have both an overlay specification in angle brackets and an optional argument. In that order, it works (see frame-A below). But in the other order, one gets <1> typeset, with < alone on one frame, and 1> on the next one, which is pretty puzzling.

\documentclass{beamer}
\begin{document}
\begin{frame}<1>[label=frame-A]
\end{frame}
\begin{frame}[label=frame-B]<1>
\end{frame}
\end{document}

blefloch avatar Dec 06 '21 23:12 blefloch

Only the first version is valid syntax, the frame environment is documented like this:

\begin{frame}<⟨overlay specification⟩>[<⟨default overlay specification⟩>][⟨options⟩]{⟨title⟩}{⟨subtitle⟩} 
⟨environment contents⟩
\end{frame}

samcarter avatar Dec 07 '21 09:12 samcarter

Thanks. Nevertheless the second one should not give two frames but a single frame with <1> being typeset.

blefloch avatar Dec 07 '21 10:12 blefloch

Even in the middle of a frame, a <1> won't be typeset as "<1>" (at least not without additional tricks) document

samcarter avatar Dec 07 '21 11:12 samcarter

Correct, I should have added \usepackage[T1]{fontenc} to preempt this point. My surprise is with the fact that there is a frame break: < (or rather ¡) gets on one page and 1> (or rather 1¿) on the next.

blefloch avatar Dec 07 '21 11:12 blefloch