summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/prosper/PPRdarkblue.sty
blob: 27b52c38cb3ad5901f7a628c956776f3512a3dfd (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
%%=============================================================================
%% PPRdarkblue.sty (a slide style for Prosper)
%% Copyright 2000-2001 Frédéric Goualard
%%
%% This program 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.
%%
%% This program consists of the files listed in manifest.txt
%%
%% CVSId : $Id: PPRdarkblue.sty,v 1.3 2001/10/24 15:11:25 exupery Exp $
%%=============================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRdarkblue}[2000/10/18]
\typeout{`Dark blue background' style for prosper ---}
\typeout{(c) 2000 Frederic Goualard, CWI, The Netherlands}
\typeout{CVSId: $Id: PPRdarkblue.sty,v 1.3 2001/10/24 15:11:25 exupery Exp $}
\typeout{ }

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

\newrgbcolor{darkblue}{0.09766 0.09766 0.4375}
\newrgbcolor{myblue}{.2 .36 .77}

\ifinColor
\def\colorA{darkblue}
\def\colorB{myblue}
\ifcolorBG
  \def\colC{\white}
\else
  \def\colC{\black}
\fi
\else
\def\colorA{lightgray}
\def\colorB{white}
\def\colC{\black}
\fi

\FontTitle{%
  \usefont{T1}{ptm}{b}{n}\fontsize{20.74pt}{20pt}\selectfont%
  \lightgray}{%
  \usefont{T1}{ptm}{b}{n}\fontsize{20.74pt}{20pt}\selectfont%
  \white}
\FontText{\colC\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}%
  \selectfont}{%
  \colC\usefont{T1}{phv}{m}{n}\fontsize{14.4pt}{14pt}\selectfont}

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

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

\LogoPosition{-.4,-.7}

\newcommand{\darkblueFrame}[1]{%
  \psframe[fillstyle=gradient,gradbegin=\colorA,gradend=\colorB,%
           gradmidpoint=1,gradangle=90](-2,-1.4)(12.5,9)
\ifinColor
 \ifcolorBG
  \psframe[fillstyle=gradient,gradbegin=darkblue,gradend=myblue,%
           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 
  \psframe[fillstyle=gradient,gradbegin=red,gradend=black,gradmidpoint=1,%
           gradangle=90,linestyle=none](-2,8.1)(-.23,6.7)
  \PutLogo % Mandatory
  {#1}}

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

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

\RequirePackage{semhelv}

\PDFCroppingBox{5 10 590 810}


\endinput

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