% Copyright 2007 by Till Tantau
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/licenses/LICENSE for more details.

\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/base/beamerbasetwoscreens.sty,v 1.7 2007/01/28 20:48:21 tantau Exp $

\mode
<presentation>

\newif\ifbeamer@twoscreenstext
\newif\ifbeamer@dosecondmode

\defbeameroption{previous slide on second screen}[right]%
{
  \pgfpagesuselayout{two screens with lagging second}[second #1]
  \beamer@twoscreenstexttrue
  \nofiles
}

\defbeameroption{second mode text on second screen}[right]%
{
  \pgfpagesuselayout{two screens with optional second}[second #1]
  \beamer@twoscreenstexttrue
}

\defbeameroption{always typeset second mode}[true]%
{
  \def\beamer@defaultdosecondmode{#1}
}
\def\beamer@defaultdosecondmode{false}


\long\def\beamer@dosecondscreennow#1{% called from \beamer@doseveralframes
  \ifbeamer@dosecondmode%
    {%
      \clearpage%
      \def\beamer@currentmode{second}
      \def\beamer@doifnotinframe{}%
      \def\beamer@doifinframe{\begin{beamer@frameslide}%
          #1%
        \end{beamer@frameslide}%
        \pgfcurrentpagewillbelogicalpage{2}%
        \clearpage%
      }%
      {\beamer@masterdecode{\beamer@whichframes}}%
      \beamer@donow%
    }%
  \fi%
}


\mode
<all>


%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "~/texmf/tex/latex/beamer/examples/beamerexample1.tex"
%%% End: 
