summaryrefslogtreecommitdiff
path: root/info/examples/Presentations_en/PPRtime.sty
blob: a817c3da61bb737357e59a85f1577d2bf4f516c2 (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
%==============================================================================

% Prosper -- (PPRtime.sty) Style file
% A LaTeX class for creating slides
% Author: Damian Reynolds (damian.reynolds@stonybrook.edu)
%         State University of New York, Stony Brook
%
% Copyright (c) 2009 Damian Reynolds
% All rights reserved.
% 
% I copied this EULA from another style file.
%
% 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.
%
%=============================================================================

%I think you need both of these or the fonts get messed up
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\RequirePackage{semhelv}

%Sets some colors to use
\newrgbcolor{gray1}{0.90 0.90 0.94}
\newrgbcolor{gray2}{0.80 0.80 0.84}

%Bullets
\myitem{1}{\pswedge[linecolor=black,fillcolor=white,linewidth=1.0pt,fillstyle=solid](0cm,0.15cm){0.4cm}{165}{195}}
\myitem{2}{\pswedge[linecolor=black,fillcolor=white,linewidth=0.7pt,fillstyle=solid](0cm,0.15cm){0.3cm}{165}{195}}
\myitem{3}{\pswedge[linecolor=black,fillcolor=white,linewidth=0.5pt,fillstyle=solid](0cm,0.15cm){0.2cm}{165}{195}}

%Fonts
\FontTitle{\usefont{T1}{phv}{b}{sl}\fontsize{14pt}{14pt}\selectfont}{%
  \usefont{T1}{phv}{b}{sl}\fontsize{14pt}{14pt}\selectfont}

\FontText{\usefont{T1}{phv}{m}{n}\fontsize{12pt}{12pt}\selectfont}{%
 \usefont{T1}{phv}{m}{n}\fontsize{12pt}{12pt}\selectfont}

%Sets the position of the slide titles
\newcommand{\slidetitle}[1]{\rput[l](-1,4.2){\fontTitle{#1}}}

%Sets a macro or something to make the background
\newcommand{\timeStyle}[1]{
%\psline[linewidth=4pt,linecolor=black](-1.2cm,8.7cm)(11.7cm,-1.3cm)
\pscircle[linewidth=3pt,linecolor=gray1,fillcolor=white,fillstyle=solid](11.7cm,0cm){5cm}
\pswedge[linecolor=white,fillcolor=white,linewidth=3pt,fillstyle=solid](11.7cm,0cm){5.1cm}{120}{150}
\pswedge[linecolor=gray1,fillcolor=white,linewidth=3pt,fillstyle=solid](10.7cm,1cm){5cm}{120}{150}
\psline[linewidth=3pt,linecolor=gray2](-1cm,0cm)(-1cm, 7.2cm)
\psline[linewidth=3pt,linecolor=gray1](9.2cm,4.33cm)(11.7cm, 0cm)
\psline[linewidth=3pt,linecolor=gray1](7.37cm,2.5cm)(11.7cm, 0cm)
\rput{150}(5.71cm,3.63cm){\psframe[linewidth=3pt,linecolor=gray1](0cm,0cm)(1.5cm,0.3cm)}
\rput{120}(8.33cm,6.14cm){\psframe[linewidth=3pt,linecolor=gray1](0cm,0cm)(1.5cm,0.3cm)}
\rput{180}(4.7cm,0.15cm){\psframe[linewidth=3pt,linecolor=gray1](0cm,0cm)(1.5cm,0.3cm)}
  \PutLogo{#1}
}

%The actual implementation of the above macro
%I don't know what most of this stuff does
\NewSlideStyle{t}{5cm,3.5cm}{timeStyle}
\PDFCroppingBox{0 15 700 810}
\endinput