summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/prosper/contrib/PPRwhitecross.sty
blob: c83c9e92188421c95d5c96350cfff9d5fa086f83 (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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%==============================================================================
% Prosper -- (PPRwhitecross) Style file
% A LaTeX class for creating slides
% Author: Alberto Ornaghi (alor@sikurezza.org)
%
% Copyright (c) 2003 Alberto Ornaghi
% All rights reserved.
% 
% Permission is hereby granted, without written agreement and without
% license or royalty fees, to use, copy, modify, and distribute this
% software and its documentation for any purpose, provided that the
% above copyright notice and the following two paragraphs appear in
% all copies of this software.
% 
% IN NO EVENT SHALL THE AUTHOR BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, 
% SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF 
% THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHOR HAS BEEN ADVISED 
% OF THE POSSIBILITY OF SUCH DAMAGE.
% 
% THE AUTHOR SPECIFICALLY DISCLAIMS ANY WARRANTIES,
% INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
% AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
% ON AN "AS IS" BASIS, AND THE AUTHOR HAS NO OBLIGATION TO
% PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
%
%==============================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRwhitecross}[2003/01/24]
\typeout{`whitecross' style for prosper ---}
\typeout{(c) 2003 Alberto Ornaghi, Milano, Italy}
\typeout{ }

\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}

\newrgbcolor{darkblue}{0.0 0.0 0.4}
\newrgbcolor{lightblue}{0.0 0.0 0.6}
\newrgbcolor{myblue}{0.4 0.639 0.921}

\ifinColor
   \def\colorA{darkblue}
   \def\colorB{lightblue}
   \def\colorC{\yellow}
   \ifcolorBG
      \def\colorD{\white}
   \else
      \def\colorD{\black}
   \fi
\else
   \def\colorA{lightgray}
   \def\colorB{white}
   \def\colorC{\black}
   \def\colorD{\black}
\fi

\FontTitle{%  'ptm' has serif, 'phv' sans serif
  \usefont{T1}{phv}{b}{n}\fontsize{20.74pt}{20pt}\selectfont \colorC}{%
  \usefont{T1}{phv}{b}{n}\fontsize{20.74pt}{20pt}\selectfont \colorD}
\FontText{\colorD\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt} \selectfont}{%
  \colorD\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}\selectfont}

\ifinColor
   \ColorFoot{\myblue}
\else
   \ColorFoot{\black}
\fi

\newcommand{\slidetitle}[1]{ \rput[lt](-.0,4){\fontTitle{#1}}}

\LogoPosition{-.4,-.7}

\newcommand{\whitecrossFrame}[1]{%
  \psframe[fillstyle=solid,fillcolor=\colorA,linestyle=none](-2,-1.4)(12.5,9)
\ifinColor
 \ifcolorBG
  \psframe[fillstyle=gradient,gradbegin=\colorB,gradend=\colorA,%
           gradmidpoint=0,gradangle=90,linestyle=none](-.23,-.5)(12.5,6.7)
 \else
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-.23,-.5)(12.5,6.7)
 \fi
\else
  \psframe[fillstyle=solid,fillcolor=white,linestyle=none](-.23,-.5)(12.5,6.7)
\fi
%horizzontal gradient
  \psframe[fillstyle=gradient,gradbegin=\colorA,gradend=white,gradmidpoint=1,%
           gradangle=90,linestyle=none](-1.7,6.73)(-.23,6.68)
  \psframe[fillstyle=gradient,gradbegin=white,gradend=\colorA,gradmidpoint=1,%
           gradangle=90,linestyle=none](-.25,6.68)(10,6.73)
%vertical gradient
  \psframe[fillstyle=gradient,gradbegin=white,gradend=\colorA,gradmidpoint=1,%
           gradangle=0,linestyle=none](-.22,6.7)(-.26,0.0)
  \psframe[fillstyle=gradient,gradbegin=\colorA,gradend=white,gradmidpoint=1,%
           gradangle=0,linestyle=none](-.22,8.7)(-.26,6.7)
           
  \PutLogo % Mandatory
  {#1}}

\ifinColor
\myitem{1}{\includegraphics[width=.4cm]{img/red-bullet-on-blue-wc.ps}}
\myitem{2}{\includegraphics[width=.3cm]{img/green-bullet-on-blue-wc.ps}}
\myitem{3}{\includegraphics[width=.3cm]{img/yellow-bullet-on-blue-wc.ps}}
\else
\myitem{1}{\includegraphics[width=.4cm]{img/red-bullet-on-white.ps}}
\myitem{2}{\includegraphics[width=.3cm]{img/green-bullet-on-white.ps}}
\myitem{3}{\includegraphics[width=.3cm]{img/yellow-bullet-on-white.ps}}
\fi


\NewSlideStyle{t}{5.5,2.4}{whitecrossFrame}

\RequirePackage{semhelv}

\PDFCroppingBox{5 10 590 810}


\endinput

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: