summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/beamer/emulation/beamerseminar.sty
blob: 96de895ce56147d9f14b81a1cdd782ef945f73c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
\ProvidesPackageRCS $Header: /cvsroot/latex-beamer/latex-beamer/emulation/beamerseminar.sty,v 1.3 2004/10/07 20:53:07 tantau Exp $

% Copyright 2003 by Till Tantau <tantau@users.sourceforge.net>
%
% This program can be redistributed and/or modified under the terms
% of the GNU Public License, version 2.

\newif\ifbeamerseminar@accumulated
\beamerseminar@accumulatedfalse

\DeclareOption{accumulated}{\beamerseminar@accumulatedtrue}
\ProcessOptions


\newcount\beamerseminar@overlay

\def\overlay#1{%
  \beamerseminar@overlay=#1\relax%
  \advance\beamerseminar@overlay by1\relax%
  \ifbeamerseminar@accumulated%
    \expandafter\onslide\expandafter<\the\beamerseminar@overlay->%
  \else%
    \expandafter\onslide\expandafter<\the\beamerseminar@overlay>%
  \fi%
  \aftergroup\beamerseminar@endoverlay\ignorespaces}
\def\beamerseminar@endoverlay{%
  \ifbeamerseminar@accumulated%
    \expandafter\onslide\expandafter<\the\beamerseminar@overlay->%
  \else%
    \expandafter\onslide\expandafter<\the\beamerseminar@overlay>%
  \fi}

\newif\ifbeamerseminar@starred
\newenvironment{slide}[1][]{%
  \beamerseminar@starredfalse
  \ifbeamer@inframe%
    \beamerseminar@overlay=1\bgroup\overlay{0}%
  \else%
    \frame[containsverbatim]\bgroup%
  \fi}
  {\egroup}
\newenvironment{slide*}[1][]{\begin{slide}\beamerseminar@starredtrue}{\end{slide}}

\newcommand{\newslide}{%
  \ifbeamerseminar@starred%
    \end{slide*}\begin{slide*}%
  \else%
    \end{slide}\begin{slide}%
  \fi}

\beamerseminar@overlay=1

\def\blue{\color{blue}}
\def\red{\color{red}}
\def\green{\color{green}}

\def\ptsize#1{}

\newif\ifarticle
\articlefalse
\newif\ifslidesonly
\slidesonlytrue
\newif\ifslide
\slidetrue
\newif\ifportrait
\portraitfalse
\newif\ifcenterslides
\centerslidestrue
\newdimen\semin
\newdimen\semcm

\semin=.5in
\semcm=.5cm

\mode<article>{\articletrue\slidefalse\slidesonlyfalse}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: ../test/testprosper.tex
%%% End: