summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/seminar/latex/semcolor.sty
blob: 84fc61986c4752d6a13bbfceb30840d50d8f1bdb (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
%%
%% This is file `semcolor.sty', version 1.01
%%
%% IMPORTANT NOTICE:
%%
%% semcolor.sty Copyright (C) 1993 Timothy Van Zandt
%%
%% This package may be distributed under the terms of the LaTeX Project 
%% Public License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%%
\def\fileversion{1.02}
\def\filedate{2014/01/17}
%%
%% LaTeX style option `semcolor.sty'.
%% For use with LaTeX v2.09 and the `seminar' document style.
%%
%% COPYRIGHT 1993, by Timothy Van Zandt, Timothy.VAN-ZANDT@insead.edu
%%
%% This file may be distributed and/or modified under the conditions of
%% the LaTeX Project Public License, either version 1.2 of this license
%% or (at your option) any later version.  The latest version of this
%% license is in:
%% 
%%    http://www.latex-project.org/lppl.txt
%% 
%% and version 1.2 or later is part of all distributions of LaTeX version
%% 1999/12/01 or later.
%%
%%
%% You must install the PSTricks package v0.9 or later to use semcolor.sty.
%%
\@ifundefined{SemcolorFrameOps}{}{\endinput}
\typeout{Style Option: `semcolor' for doc style `seminar'
  \fileversion\space <\filedate> (tvz)}
% RN modification begin -- 2004/05/04; Rolf.Niepraschk@ptb.de
%\input{pstricks}
\ProvidesFile{semcolor.sty}[\filedate\space v\fileversion\space (tvz)]
%\RequirePackage{pstricks}
\RequirePackage{pst-ovl}
% RN modification end
%
% Set up the frame styles:
\def\SemcolorFrameOps{\psset{%
  fillstyle=none,%
  linewidth=\slideframewidth,%
  framesep=\slideframesep,%
  cornersize=absolute,%
  linearc=.5cm,%
  shadowsize=2pt,%
  shadowcolor=darkgray}}%
\newslideframe{scplain}[\SemcolorFrameOps]{\psframebox{#1}}
\newslideframe{scdouble}[\SemcolorFrameOps]{\psdblframebox{#1}}
\newslideframe{scshadow}[\SemcolorFrameOps]{\psshadowbox{#1}}
\slideframe{scplain}
%
% Rotation:
\def\leftsliderotation#1{\rotateleft{#1}}
\def\rightsliderotation#1{\rotateright{#1}}
\sliderotation{left}
%
% Color:
\addto@hook\after@slidepage{\pstVerb{0 setgray}}
%
% Overlays:
\def\make@overlay#1{%
  \setbox\@slidebox=\hbox{%
    \pst@initoverlay{#1}%
    \pst@Verb{ 0 \tx@BOL }%
    \copy\@@slidebox
    \pst@Verb{ -1 \tx@BOL }}}
\def\@overlay{\pst@overlay}
\addto@hook\before@newslide{\def\curr@overlay{0}}
\@ifundefined{overlaystrue}{}{\ifarticle\else\overlaystrue\layerstrue\fi}
%
\endinput
%% END semcolor.sty