forked from anirudhSK/iap-poster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcsailposter.sty
258 lines (235 loc) · 7.52 KB
/
csailposter.sty
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Filename: edposter.sty
%% Author: Rob Clark <[email protected]>
%% Date: June 1997
%%
%% Description: LaTeX2e style file for Edinburgh University
%% A0 academic posters.
%%
%% Version: 0.1 alpha
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This is a style file for A0 academic posters. To be used in
% conjunction with the a0poster document class. Also requires pstricks
% and multicol packages amongst others.
%
% Only Portrait mode is currently supported.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Modified by Garrett Wollman for CSAIL, 2007-06-20.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% Package options
%
% nologos - no logos at the top
% sponsorlogo - include a arbitrary sponsor logo (along with any others)
% You must then define \sponsorlogo and \sponsorlogoscale
%
% You get a CSAIL logo in the top right.
% To override a logo redefine \leftlogo \leftlogoscale or
% \rightlogo \rightlogoscale
%
%
%% cstr logo is square, hcrc logo is long and thin, if you want to
%% include your own logo in the top left, choose the most apropriate
%% shape match and redefine \leftlogo and \leftlogoscale
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Required preamble definitions are (define empty to omit):
%
% \title{}
% \author{}, \affiliation{}, \email{} % Placed in centre of title
% \authorleft{}, \affiliationleft{}, \emailleft{} % Placed in left of title
% \authorright{}, \affiliationright{}, \emailright{}% Placed in right of title
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Option defines are: (to change use: \def\option_name{option_value}
%
% Colour options: (I'm using color to be consistent with the color package)
% \bordercolor - the outer border
% \colsepcolor - rule colour between columns
% (use \colseprule=0mm to have no rule)
% \secheadcol - Section heading colour
% \authorcol - Author block colour
%
% Logo options (See above)
% \leftlogo, \rightlogo, \sponsorlogo
% \leftlogoscale, \rightlogoscale, \sponsorlogoscale
\NeedsTeXFormat{LaTeX2e}[1995/12/01] \ProvidesPackage{csailposter}
[1997/08/14 based on v0.1a Ed a0 Poster style]
% We use rather a lot here.
\RequirePackage{ifthen,array,multicol,fancyheadings}
\RequirePackage{colortbl}
\RequirePackage[usenames]{pstcol}
\RequirePackage{graphics}
\RequirePackage{palatino}
\newif\if@border
\newif\if@toplogos
\newif\if@bottomlogo
\newif\if@leftlogo
\newif\if@sponsorlogo
\newif\if@hcrc
\newif\if@esrc
\@toplogostrue
\@hcrcfalse
\@esrcfalse
\@leftlogofalse
\@sponsorlogofalse
\@bordertrue
\DeclareOption{nologos}{\@toplogosfalse}
\DeclareOption{noborder}{\@borderfalse}
%\DeclareOption{cstr}{\@leftlogotrue%
% \def\leftlogo{cstr.eps}%
% \def\leftlogoscale{1.5}}
%\DeclareOption{hcrc}{\@leftlogotrue\@hcrctrue%
% \def\leftlogo{hcrc.eps}%
% \def\leftlogoscale{0.8}}
%\DeclareOption{esrc}{\@esrctrue\@bottomlogotrue}
\DeclareOption{sponsorlogo}{\@sponsorlogotrue\@bottomlogotrue}
\ProcessOptions
% Definitions
\newcommand{\Mega}{\fontsize{120}{140}\selectfont}
\pagestyle{fancyplain}
\cfoot{}
\rfoot{%
%\if@esrc
% \scalebox{2}{\includegraphics{esrc.eps}}\hspace{1cm}%
%\fi
\if@sponsorlogo
\scalebox{\sponsorlogoscale}{\includegraphics{\sponsorlogo}}\hspace{1cm}%
\fi
\hspace{4cm}}
% CSAIL logo in right hand corner
\def\rightlogo{csail-logo.pdf}
\def\rightlogoscale{1.0}
\def\affiliation#1{\gdef\@affiliation{#1}}
\def\email#1{\gdef\@email{#1}}
\def\authorleft#1{\gdef\@authorleft{#1}}
\def\affiliationleft#1{\gdef\@affiliationleft{#1}}
\def\emailleft#1{\gdef\@emailleft{#1}}
\def\authorright#1{\gdef\@authorright{#1}}
\def\affiliationright#1{\gdef\@affiliationright{#1}}
\def\emailright#1{\gdef\@emailright{#1}}
\def\colsepcolor{csailorange}
\def\bordercolor{csailorange}
\def\secheadcol{csailgray}
\def\authorcol{csailgray}
\columnsep=3cm
\columnseprule=2mm
\setlength{\oddsidemargin}{4.75in}
\setlength{\textwidth}{30.5in}
\if@bottomlogo
\setlength{\textheight}{51in} % was 110.5
\else
\setlength{\textheight}{54.25in} % was 110.5
\fi
\definecolor{csailorange}{cmyk}{0,0.6,1,0.2}
\definecolor{csailgray}{cmyk}{0.2,0.2,0.2,0.6}
%\definecolor{edlogored}{rgb}{1,0,.360}
%\definecolor{esrcblue}{rgb}{0,0,0.2}
%\definecolor{entropicgreen}{rgb}{0.0,0.8,0.4}
%\definecolor{entropicblue}{rgb}{0.0,0.5,0.7}
%\definecolor{entropicpurple}{rgb}{0.8,0.0,1.0}
\def\@maketitle{%
\if@border
\if@bottomlogo
\begin{pspicture}[1](78,105)
\psframe[linewidth=2mm,linecolor=\bordercolor,framearc=0.1](-1.5,-7.2)(78,104.6)
\end{pspicture}
\vspace{-103.5cm}
\else
\begin{pspicture}[1](30.5in,54in)
\psframe[linewidth=2mm,linecolor=\bordercolor,framearc=0.1](-.75in,-.75in)(31.25in,54.75in)
\end{pspicture}
\vspace{-52in}
\fi
\else\relax
\fi
\begin{center}
\let \footnote \thanks
\if@toplogos
\if@leftlogo
\if@hcrc
\begin{tabular}{p{12cm}m{1.5cm}>{\baselineskip=85pt\vskip -200pt}p{43cm}m{1.5cm}m{10cm}}
\else
\begin{tabular}{m{12cm}p{1.5cm}>{\baselineskip=85pt\vskip -200pt}p{43cm}p{1.5cm}m{10cm}}
\fi
\\
\mbox{\scalebox{\leftlogoscale}{\includegraphics{\leftlogo}}} & &
\centering {\VeryHuge \bfseries \@title}
& &
\hspace{1in}
\mbox{\scalebox{\rightlogoscale}{\includegraphics{\rightlogo}}} \\
\\
\end{tabular}
\else
\begin{tabular}{m{3cm}>{\baselineskip=85pt\vskip -200pt}p{53cm}m{3cm}m{12cm}}
\\
& \centering {\VeryHuge \bfseries \@title}
& &
\hspace{1.5in}
\mbox{\scalebox{\rightlogoscale}{\includegraphics{\rightlogo}}} \\
\\
\end{tabular}
\fi
\else
% no logos
\begin{tabular}{m{3cm}>{\baselineskip=85pt}p{65cm}m{3cm}}
\\
& \centering {\VeryHuge \bfseries \@title}
& \\
\\
\end{tabular}
\fi
\par
{\huge \bfseries \color{\authorcol}
\begin{tabular}{*{3}{>{\centering}m{22cm}}}
\@authorleft & \@author & \@authorright
\end{tabular}
} \par
{\LARGE \color{\authorcol}
\begin{tabular}{*{3}{>{\centering}p{22cm}}}
\@affiliationleft & \@affiliation & \@affiliationright
\end{tabular}
} \par
{\LARGE \itshape \color{\authorcol}
\begin{tabular}{*{3}{>{\centering}p{22cm}}}
\@emailleft & \@email & \@emailright
\end{tabular}
}
\end{center}
\par
\vspace{3cm}
} %end maketitle
\def\section{\@startsection {section}{1}{\z@}%
{-3.5ex \@plus -1ex \@minus -.2ex}%
{2.3ex \@plus.2ex}%
{\normalfont\LARGE\bfseries\color{\secheadcol}}}
\def\subsection{\@startsection{subsection}{2}{\z@}%
{-3.25ex\@plus -1ex \@minus -.2ex}%
{1.5ex \@plus .2ex}%
{\normalfont\large\bfseries\color{\secheadcol}}}
\def\page@sofar{%
\process@cols\mult@rightbox
{\ifvoid\count@
\setbox\count@\hbox to\hsize{}%
\else
\wd\count@\hsize
\fi}%
\mult@info\z@
{Column spec:\MessageBreak
(\the\multicol@leftmargin\space -->
\the\full@width\space = \the\hsize
\space x \the\col@number)%
}%
\ifvmode\else\errmessage{Multicol Error}\fi
\moveright\multicol@leftmargin
\hbox to\full@width{%
\process@cols\mult@gfirstbox{\box\count@
\hss{\color{\colsepcolor}\vrule\@width\columnseprule}\hss}%
\box\mult@rightbox
\rlap{\phantom p}%
}}%