170 lines
4.6 KiB
TeX
170 lines
4.6 KiB
TeX
%% This is csc-poster.sty, which is the LaTeX 2e package for Computer Science
|
|
%% Club posters.
|
|
%%
|
|
%% Copyright 2002 Computer Science Club of the University of Waterloo
|
|
%%
|
|
%% This package is based on the original cscposter.sty which was written in
|
|
%% LaTeX 2.09. Use this package instead, because it is not ugly and happens
|
|
%% to work well.
|
|
%%
|
|
%% If you need to squeeze down the text on the posters, you should use \csccram
|
|
%% and if you're really desperate use \cscreallycram.
|
|
%%
|
|
%% Requirements: You must have tetex-bin, tetex-extra and gs installed on your
|
|
%% system.
|
|
%%
|
|
%% If you wish to generate csclogo.pdf for the first time, you ought to
|
|
%% run `pdflatex -shell-escape myfile.tex` to allow PDFTeX to execute shell
|
|
%% commands. This is only useful if you are invoking PDFLaTeX.
|
|
%%
|
|
%% Changelog:
|
|
%% Version 1.2
|
|
%% * Use graphics.sty instead of psfig.sty.
|
|
%% * Renamed csclogo.ps to csclogo.eps.
|
|
%% * Included epstopdf to support PDFLaTeX.
|
|
%% -- Simon Law <sfllaw@engmail.uwaterloo.ca> Thu, 07 Nov 2002 06:26:03 -0500
|
|
%%
|
|
%% Version 1.1
|
|
%% * Changed to use \vfill for dynamic logo placement
|
|
%% * Included csclogo.ps directly in this file.
|
|
%% -- Simon Law <sfllaw@engmail.uwaterloo.ca> Wed, 24 Sep 2002 12:20:03 -0400
|
|
%%
|
|
%% Version 1.0
|
|
%% * Rewrote cscposter.sty
|
|
%% -- Simon Law <sfllaw@engmail.uwaterloo.ca> Wed, 11 Sep 2002 11:18:43 -0400
|
|
|
|
\NeedsTeXFormat{LaTeX2e}
|
|
\ProvidesPackage{csc-poster}[2002/11/07 v1.2]
|
|
|
|
%%%%%%%%%%%
|
|
%% PACKAGES
|
|
%%%%%%%%%%%
|
|
\RequirePackage{fullpage}
|
|
\addtolength{\topmargin}{-0.5in}
|
|
\addtolength{\textheight}{1.3in}
|
|
\RequirePackage{graphicx}
|
|
\RequirePackage[T1]{fontenc}
|
|
|
|
%%%%%%%%%%%
|
|
%% CSC LOGO
|
|
%%%%%%%%%%%
|
|
\IfFileExists{csclogo.eps}{}{\begin{filecontents*}{csclogo.eps}
|
|
%!PS-Adobe-2.0 EPSF-1.2
|
|
%%Creator:Ian Goldberg
|
|
%%Title:CSC Logo
|
|
%%BoundingBox: 0 0 540 165
|
|
%%EndComments
|
|
gsave %0 setlinecap 0 setlinejoin 1 setlinewidth
|
|
newpath
|
|
10 %% Half of the line width, where the circles have radius 60
|
|
%% Calculate the magic angles
|
|
dup dup dup 2 mul 30 sub exch 60 sub div dup dup mul 1 exch sub sqrt exch atan
|
|
/csclogomagic1 exch def
|
|
dup 2 mul 30 add exch 60 add div dup dup mul 1 exch sub sqrt exch atan
|
|
/csclogomagic2 exch def
|
|
/csclogowid exch def
|
|
|
|
130 95 60 csclogowid sub 0 180 csclogomagic1 sub arcn
|
|
70 95 60 csclogowid add csclogomagic2 360 arc
|
|
190 95 60 csclogowid sub 180 csclogomagic1 neg arcn
|
|
250 95 60 csclogowid add 180 csclogomagic2 add 180 arc
|
|
csclogowid dup add 0 rmoveto
|
|
250 95 60 csclogowid sub 180 csclogomagic1 180 add arcn
|
|
190 95 60 csclogowid add csclogomagic2 neg 180 arc
|
|
70 95 60 csclogowid sub 0 csclogomagic1 arcn
|
|
130 95 60 csclogowid add 180 csclogomagic2 sub 360 arc
|
|
closepath fill
|
|
/Helvetica findfont 48 scalefont setfont
|
|
(Computer) 330 115 moveto show
|
|
(Science) 330 75 moveto show
|
|
(Club) 330 35 moveto show
|
|
/Helvetica findfont 18 scalefont setfont
|
|
(A Student Chapter of the ACM) 135 5 moveto show grestore
|
|
\end{filecontents*}}
|
|
|
|
\RequirePackage{ifpdf}
|
|
\ifpdf
|
|
\RequirePackage{epstopdf}
|
|
\fi
|
|
|
|
%%%%%%%%%%%%%%
|
|
%% PAGE LAYOUT
|
|
%%%%%%%%%%%%%%
|
|
\pagestyle{empty}
|
|
|
|
%%%%%%%%%%%%%%%%
|
|
%% FONT COMMANDS
|
|
%%%%%%%%%%%%%%%%
|
|
\providecommand{\HUGE}{\@setfontsize\HUGE{35.83}{35.83}}
|
|
\newcommand{\cscfamily}{\renewcommand{\rmdefault}{pnc}}
|
|
\newcommand{\csctitlefont}{\cscfamily \HUGE \bf}
|
|
\newcommand{\cscspeakerfont}{\cscfamily \LARGE \it}
|
|
\newcommand{\csctimefont}{\cscfamily \LARGE \bf}
|
|
\newcommand{\cscsubtitlefont}{\cscfamily \LARGE \rm}
|
|
\newcommand{\cscbigsubtitlefont}{\cscfamily \Huge \rm}
|
|
\newcommand{\cscbodyfont}{\Large}
|
|
%
|
|
% Use one of these, before begindocument to squeeze posters onto one
|
|
% page.
|
|
\newcommand{\csccram}{\renewcommand{\cscbodyfont}{\large}}
|
|
\newcommand{\cscreallycram}{\renewcommand{\cscbodyfont}{\normalsize}}
|
|
|
|
%%%%%%%%%%%%%%%
|
|
%% DEFINE SKIPS
|
|
%%%%%%%%%%%%%%%
|
|
\newcommand{\cscsmallskip}{\vspace{0.1in plus 1fil}}
|
|
\newcommand{\cscmedskip}{\vspace{0.3in plus 1fil}}
|
|
\newcommand{\cscbigskip}{\vspace{0.5in plus 1fil}}
|
|
|
|
%%%%%%%%%%%%%%%%
|
|
%% DEFINE WRITES
|
|
%%%%%%%%%%%%%%%%
|
|
\newcommand{\cschead}[2]{%
|
|
{%
|
|
\begin{center}%
|
|
\csctitlefont #1%
|
|
\if{#2}\empty
|
|
\else%
|
|
\\%
|
|
\cscspeakerfont%
|
|
by\\%
|
|
#2%
|
|
\fi%
|
|
\end{center}%
|
|
\cscmedskip%
|
|
}%
|
|
\cscbodyfont%
|
|
}
|
|
|
|
\newcommand{\cscfoot}[4]{%
|
|
{%
|
|
\begin{center}%
|
|
\vfill%
|
|
\csctimefont #1\\%
|
|
#2\\%
|
|
#3\\%
|
|
\if{#4}\empty
|
|
\else%
|
|
\cscmedskip%
|
|
#4\\%
|
|
\fi%
|
|
\vfill%
|
|
\includegraphics[height=1.5in]{csclogo}%
|
|
\end{center}%
|
|
}%
|
|
}
|
|
|
|
\newcommand{\cscsubtitle}[1]{%
|
|
{%
|
|
\centerline{\cscsubtitlefont #1}%
|
|
\cscmedskip%
|
|
}%
|
|
}
|
|
|
|
\newcommand{\cscbigsubtitle}[1]{%
|
|
{%
|
|
\centerline{\cscbigsubtitlefont #1}%
|
|
\cscmedskip%
|
|
}%
|
|
}
|