summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/frontiers.sty
blob: bfc8da8a7207c7ed5903d82dce48c9f32053faf1 (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
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
% FRONTIERS DOCUMENT STYLE -- released 27 September 1988
%    for LaTeX version 2.09
% Copyright (C) 1988 by Max Hailperin, except portions 
% Copyright (C) 1985 by Leslie Lamport, or otherwise indicated.
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
%
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.
%
% This is a document style option, for cammera-ready copy for the
% Frontiers '88 symposium (and other IEEE conferences???), to be
% used with the article document style and the proc document style option.
% Note that it is will only work if your device can actually produce 11x14
% output (e.g. an Imagen 3320 with ledger-size paper), or if you convince
% your dvi driver to scale the output down (and then do an enlargement of
% the output to send in) -- this results in lower quality, of course.
%
% WARNING: The visual design of this style is rather poor.  The conference
%          specifications forced some of this, and as a result it didn't seem
%          worth worrying about the rest.  Be forewarned however.

\typeout{Document Style Option 'Frontiers' -- released 27 September 1988}

%  ****************************************
%  *             KEYWORDS                 *
%  ****************************************

% \keywords{foo, bar, baz} should go at the end of the abstract

\def\keywords#1{\begin{list}{}{\setlength{\leftmargin}{0pt}\setlength
{\rightmargin}{0pt}\setlength{\topsep}{\baselineskip}\setlength
{\partopsep}{0pt}}\item[]Keywords: #1\end{list}}

%  ****************************************
%  *             FOOTNOTES                *
%  ****************************************
\def\@fnsymbol#1{\ifcase#1\or *\or **\or +\or ++\else\@ctrerr\fi\relax}

\def\thefootnote{\fnsymbol{footnote}}

%  ****************************************
%  *            SECTIONING                *
%  ****************************************
% Slight modification of the geophysics.sty file,
% Copyright (c) 1987 by Stephen Gildea
% Permission to copy all or part of this work is granted, provided
% that the copies are not made or distributed for resale, and that
% the copyright notice and this notice are retained.
% 
% THIS WORK IS PROVIDED ON AN "AS IS" BASIS.  THE AUTHOR PROVIDES NO
% WARRANTY WHATSOEVER, EITHER EXPRESS OR IMPLIED, REGARDING THE WORK,
% INCLUDING WARRANTIES WITH RESPECT TO ITS MERCHANTABILITY OR FITNESS
% FOR ANY PARTICULAR PURPOSE.

% Headings:
%   for principal heading use \section
%   for lower rank heading use \subsection
%   for still lower rank heading use \subsubsection
\setcounter{secnumdepth}{0}

% \section is tricky because we want to both support \section* and have
% the section title uppercased.
\def\section{\secdef\@sectionb\@sections}
\def\@sectionb[#1]#2{\@sections{#2}}
\def\@sections#1{\@startsection
  {section}{1}{\z@}{-3.5ex plus -1ex minus -.2ex}{2.3ex plus .2ex}{\Large
\bf}{\uppercase{#1}}}

% the below is modeled on the above, plus the paragraph def from art10.doc
\def\subsubsection{\secdef\@subsubsectionb\@subsubsections}
\def\@subsubsectionb[#1]#2{\@subsubsections{#2}}
\def\@subsubsections#1{\@startsection
     {subsubsection}{3}{\z@}{3.25ex plus 1ex minus .2ex}{-1sp}{\normalsize
      \bf}{#1---}}

% the below is less closely modeled on the geophysical stuff, plus art10.doc
\def\subsection{\secdef\@subsectionb\@subsections}
\def\@subsectionb[#1]#2{\@subsections{#2}}
\def\@subsections#1{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
   -.2ex}{1.5ex plus .2ex}{\large\bf}{#1}}

% in case people nest more deeply than allowed --- perhaps should be error
\def\paragraph{\subsubsection}
\def\subparagraph{\subsubsection}


%  ****************************************
%  *            PAGE LAYOUT               *
%  ****************************************
%
% All margin dimensions measured from a point one inch from top and side
% of page.  Lamport claims that for some unspecified device(s) dimensions
% shrink by about 2 percent.

% SIDE MARGINS:
   \oddsidemargin  0pt      %   Note that \oddsidemargin = \evensidemargin
   \evensidemargin 0pt

% VERTICAL SPACING:        
                         % Top of page:
\topmargin -48pt         %    Nominal distance from top of page to top of
                         %    box containing running head.
\headheight 12pt         %    Height of box containing running head.
\headsep 36pt            %    Space between running head and text.
% \topskip = 10pt        %    '\baselineskip' for first line of page.
                         % Bottom of page:
\footheight 12pt         %    Height of box containing running foot.
\footskip 150pt           %    Distance from baseline of box containing foot 
                         %    to baseline of last line of text.


% DIMENSION OF TEXT:

\textheight 11.55in          % Height of text (including footnotes and figures, 
                         % excluding running head and foot).
\textwidth 9in        % Width of text line.
                         % For two-column mode: 
\columnsep 1cm        %    Space between columns 
\columnseprule 0pt       %    Width of rule between columns.



%    ****************************************
%    *            PAGE STYLES               *
%    ****************************************
%
%  The page number is printed in the top center, in "n of m" form.


\def\@oddhead{\rm\hfil \thepage\ of \pageref{@last-page} \hfil}
\def\@evenhead{\@oddhead}
\def\@oddfoot{}\def\@evenfoot{\@oddfoot}

% This is from latex.tex, except for-vvvvvvvvvvvvvvvvvv
\def\enddocument{\@checkend{document}\label{@last-page}\clearpage\begingroup  
\if@filesw \immediate\closeout\@mainaux 
\def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
\def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
\if@tempswa \@warning{Label(s) may have changed.  Rerun to get
cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}

%    ****************************************
%    *               TITLE                  *
%    ****************************************
%
% This @maketitle is from proc.doc, except for the uppercasing
\def\@maketitle{\vbox to 2.25in{\hsize\textwidth 
  \linewidth\hsize \vfil \centering
  {\LARGE \uppercase\expandafter{\@title} \par}     % TITLE set in \LARGE size.
  \vskip 2em                % Vertical space after title.
  {\large \begin{tabular}[t]{c}\@author \end{tabular}\par}    
  \vfil}}

%    ****************************************
%    *            BIBLIOGRAPHY              *
%    ****************************************
% Some fancy footwork to get Ref. vs. Refs. depending on how many citeations
\newif\if@multicitesw
\newif\if@multiciteauxsw

\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@multiciteswfalse\@multiciteauxswfalse\@for\@citeb:=#2\do
{\if@multiciteauxsw\@multiciteswtrue\fi\@multiciteauxswtrue}\@cite
{\@for\@citeb:=#2\do
    {\@citea\def\@citea{, \penalty\@m}\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
\hbox{\csname b@\@citeb\endcsname}}}{#1}}

\def\@cite#1#2{{(Ref\if@multicitesw s\fi.\ {#1\if@tempswa ,  #2\fi})}}

% This is the stuff to change the reference list to 1. instead of [1].
% Except for the relevant minor differences, it is straight from article.doc.
\def\@biblabel#1{#1.\hfill}

\def\thebibliography#1{\section*{References\@mkboth
 {REFERENCES}{REFERENCES}}\list
 {\arabic{enumi}.}{\settowidth\labelwidth{#1.}\leftmargin\labelwidth
 \advance\leftmargin\labelsep
 \usecounter{enumi}}
 \def\newblock{\hskip .11em plus .33em minus -.07em}
 \sloppy\clubpenalty4000\widowpenalty4000
 \sfcode`\.=1000\relax}

%    ****************************************
%    *              CAPTIONS                *
%    ****************************************

% This makes captions use a period rather than a colon.  It is a minor
% change to code from article.doc.
\long\def\@makecaption#1#2{
   \vskip 10pt 
   \setbox\@tempboxa\hbox{#1. #2}
   \ifdim \wd\@tempboxa >\hsize   % IF longer than one line:
       #1. #2\par                 %   THEN set as ordinary paragraph.
     \else                        %   ELSE  center.
       \hbox to\hsize{\hfil\box\@tempboxa\hfil}  
   \fi}