summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/prosper/PPRprettybox.sty
blob: 19c14ccc0ab2b8d806336a5758b8afc64c42cb7b (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
%==============================================================================
% Prosper -- (PPRprettybox.sty) Style file
% A LaTeX class for creating slides
% Author: Marlon Régis Schmitz(mschmitz@if.ufrgs.br)
%         Instituto de Física
%         Universidade Federal do Rio Grande do Sul, Brazil
%
% This comes from PPRframes.sty
% Many thank for Frederic Goualard <Frederic.Goualard@irin.univ-nantes.fr>
%
% Copyright (c) 2002 Marlon Régis Schmitz
% 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.
%
% CVSId : $Id: PPRprettybox.sty,v 1.1 2003/01/27 14:39:20 exupery Exp $
%==============================================================================
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{PPRprettybox}[2002/11/29]
\typeout{`Pretty Box' style for prosper ---}
\typeout{(c) 2002 Marlon Régis Schmitz,IFUFRGS, Brazil}
\typeout{CVSId : $Id: PPRprettybox.sty,v 1.1 2003/01/27 14:39:20 exupery Exp $}
\typeout{Do you like this?}

\RequirePackage{semhelv}
\RequirePackage{amssymb}

% Loading of pstrick's files (test the current names to generate different
%versions of pstricks)
\IfFileExists{pst-grad}{\RequirePackage{pst-grad}}{\RequirePackage{gradient}}

\FontTitle{\usefont{T1}{phv}{b}{sl}\fontsize{14.4pt}{12pt}\selectfont}{%
  \usefont{T1}{phv}{b}{sl}\fontsize{14.4pt}{12pt}\selectfont}
\FontText{\usefont{T1}{phv}{m}{n}\fontsize{13pt}{12pt}\selectfont}{%
  \usefont{T1}{phv}{m}{n}\fontsize{13pt}{12pt}\selectfont}

\def\labelitemi{\ensuremath{\blacktriangleright}}

\newcommand{\slidetitle}[1]{%
  \rput[lb](0.75,3.65){%
    \parbox{9cm}{\fontTitle{#1}}}}

\LogoPosition{-1.25,7.5}

%blue tones
\newrgbcolor{blue1}{0 0 1}   %=blue
\newrgbcolor{blue2}{0 0 .93} 
\newrgbcolor{blue3}{0 0 .8}  %=mediumblue
\newrgbcolor{blue4}{0 0 .55} %=darkblue
\newrgbcolor{lightblue}{.68 .85 .9}
\newrgbcolor{mediumblue}{0 0 .8}
\newrgbcolor{darkblue}{0 0 .55}

%MY gray tones
\newgray{Gray1}{.75}
\newgray{Gray2}{0.5}
\newgray{Gray3}{0.25}

\def\AVeryPrettyBox#1{%
%line below the title
  %left line
  \psframe[linestyle=none,fillstyle=gradient,
  gradbegin=Gray1, gradend=Gray2,gradmidpoint=1.0]%
  (0,-1.0)(0.5, 8.5)
  %bottom line
  \psframe[linestyle=none,fillstyle=gradient,
  gradbegin=Gray1, gradend=Gray2,gradmidpoint=1.0, gradangle=90]%
  (-1.5,-0.5)(12.0, -0.45)
  %left right
  \psframe[linestyle=none,fillstyle=gradient,
  gradbegin=Gray1, gradend=Gray2,gradmidpoint=1.0]%
  (11.7,-0.75)(11.75, 7.75)
  %top line
  \psframe[linestyle=none,fillstyle=gradient,
  gradbegin=lightblue, gradend=darkblue,gradmidpoint=1.0, gradangle=90]%
  (-1.5 ,7.0)(12.0,7.25)
  \PutLogo % Mandatory
  {#1}}

\NewSlideStyle{t}{6,2.4}{AVeryPrettyBox}
\PDFCroppingBox{10 40 594 820}


\endinput

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