[Tex/LaTex] a frame in beamer

beamerpresentations

Could you please explain what exactly is a frame in beamer? And how is that a frame is different from a slide? I am trying to shift from MS PowerPoint to beamer and would like to clearly understand these concepts.

Best Answer

Turning my comment into an answer and adding an example:

A frame is a collection of slides that share a common code (that could contain commands like \alt or \only etc that will give the difference between the slides inside this frame).

Compile this example to understand more. It contains two frames with a title each... but the first frame is composed by several slides and the second by two slides.

\documentclass{beamer}
\hypersetup{pdfpagemode=FullScreen}
\begin{document}
\begin{frame}[t,label=frameA]{This is the first frame}
    This frame contains code that:

    \begin{itemize}
        \item Will be visible in all the slides of the frame like this line and everything above this \pause
        \item Will be visible after some slide number inside the frame
        and the upcoming slides of it like this particular text that appears after the second slide until the end of the frame.\pause
        \item \alt<3>{Will be different from a slide to the next slide but will occupy the same place -Check this text in the next line-}{Text changed}\pause
        \item We can refer and link to slide 2 of the next frame (labeled `frameB') by writing\\ \texttt{\textbackslash hypertarget$<$2$>$\{frameA\}\{\textbackslash beamerbutton\{I'm on the second slide\}\}}\\in that frame and calling it from here by the command:\\
        \texttt{\textbackslash hyperlink\{labelB2\}\{Press here\}}
    \end{itemize}
    \hyperlink{labelB2}{Press here (to skip slide 1 of frameB)}
\end{frame}

\begin{frame}[label=frameB]{Second frame}
    \alt<1>{First Slide}{}
    \alt<2>{Second Slide\par
    \hypertarget<2>{labelB2}{\beamerbutton{I’m on thesecond slide}}}{}
\end{frame}
\end{document}

enter image description here

Edit:

A frame can contain just a single slide like this:

\documentclass{beamer}
\hypersetup{pdfpagemode=FullScreen}
\begin{document}
\begin{frame}[label=frameA]{This is the first frame}
    This frame contains code that:

    \begin{itemize}
        \item Will be visible in all the slides of the frame like this line and everything above this
        \item Will be visible in all tlides inside the frame.
        \item Will the same from a slide to the next slide.
        \item We can refer and link to slide 2 of the next frame (labeled `frameB') by writing\\ \{frameA\}\{\textbackslash beamerbutton\{I'm on the second slide\}\}}\\in that frame and calling it from here by the command:\\
        \texttt{\textbackslash hyperlink\{labelB2\}\{Press here\}}
    \end{itemize}
    \hyperlink{labelB}{Press here (to skip slide 1 of frameB)}
\end{frame}

\begin{frame}[label=frameB]{Second frame}
    First and only Slide\par
    \hypertarget{labelB}{\beamerbutton{I’m on thesecond slide}}
\end{frame}
\end{document}