summaryrefslogtreecommitdiff
path: root/macros/generic/occam/Euro92.sty
blob: 555cf8fee7b9fa5afb881d75ce12d39fe24a293b (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
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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296


% Call this file euro92.sty and use it in LaTeX file as
%       \documentstyle[euro92]{article}
% Also specify
%       \titlehead{Short title for paper}
%       \paperhead{Author Name(s)}
% The fields of \maketitle are further redefined:  \date is eliminated and
% \affiliation is added.
%
% Richard Furuta December 9, 1987
% (adapte pour les "Cahiers GUTenberg" - Ph Louarn 88-89)
% (adaptation for EuroTeX '92 Prague conference - Petr Sojka
%                                             <sojka@aci.cvut.cs>)
%

% hyphenation commands (For MLTeX)
\ifx\fhyph\undefined\relax\else % si \fhyph est connu, on suppose \ehyph connu
   \ifx\enhyph\undefined\let\enhyph=\ehyph\fi
   \ifx\frhyph\undefined\let\frhyph=\fhyph\fi
\fi

\def\NoC#1{\gdef\N@C{#1}}

\def\DateC#1{\gdef\D@teC{#1}}

% size requirements
\def\@normalsize{\@setsize\normalsize{14pt}\xipt\@xipt
\abovedisplayskip 10pt plus2pt minus5pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus3pt\belowdisplayshortskip 6pt plus3pt minus3pt}
\def\small{\@setsize\small{11pt}\ixpt\@ixpt
\abovedisplayskip 8.5pt plus 3pt minus 4pt\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2pt\belowdisplayshortskip 4pt plus2pt minus 2pt
\def\@listi{\topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
\itemsep \parsep}}

% baseline for section is set at 12 because I need 13 and can't get it
% easily another way (see redefinition of section, etc.)
\def\sectsize{\@setsize\sectsize{21pt}\xivpt\@xivpt}    % for section heads
\def\subsectsize{\@setsize\subsectsize{14pt}\xipt\@xipt} % for section heads
\def\abstsize{\@setsize\abstsize{11pt}\viiipt\@viiipt}  % for abstract
\def\captsize{\@setsize\captsize{12pt}\xpt\@xpt}        % for captions
\def\titlesize{\@setsize\titlesize{25pt}\xxpt\@xxpt}    % title large
\def\authsize{\@setsize\authsize{14pt}\xipt\@xipt}      % author size
\def\affilsize{\@setsize\affilsize{12pt}\xpt\@xpt}      % affiliation

% - redefine the citation style to put spaces after the commas
% redefine the citation style to put spaces after the commas
\def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
  \def\@citea{}\@cite{\@for\@citeb:=#2\do
    {\@citea\def\@citea{, }\@ifundefined
       {b@\@citeb}{{\bf ?}\@warning
       {Citation `\@citeb' on page \thepage \space undefined}}%
\hbox{\csname b@\@citeb\endcsname}}}{#1}}

% new field for the title
\def\affiliation#1{\gdef\@affiliation{#1}}

%title's spacing
\def\titlesp{\list{}{\leftmargin0pc}\item[]}
\let\endtitlesp=\endlist

% title needs adjusting, no date in title
\def\@maketitle{\newpage
 \null
 \vspace*{-28pt}
 \begin{titlesp}
  {\titlesize \@title \par}
  \vskip 8pt                    % Vertical space after title. 8pt
  \hrule                        % one point rule
  \vskip 14pt                   % 14 points below rule (adjusted for baseline)
  {\authsize \@author \par}
% there should be 18 pts between author and affiliation baselines
  \vskip 6pt                    % Vertical space after author.  18pt - 6pt
  {\affilsize\it \@affiliation \par}
\end{titlesp}
 \par
 \vskip 16pt}                   % Vertical space after title.  26pt - 10pt

\def\maketitle{\par
\begingroup
\def\thefootnote{\fnsymbol{footnote}}
\def\@makefnmark{\hbox
to 0pt{$^{\@thefnmark}$\hss}}
\newpage \global\@topnum\z@ \@maketitle \thispagestyle{titre}\@thanks
\endgroup
\setcounter{footnote}{0}
\let\maketitle\relax
\let\@maketitle\relax
\gdef\@thanks{}\gdef\@author{}\gdef\@title{}\let\thanks\relax}

\def\abstract{\small
\begin{center}
{\bf Abstract\vspace{-.5em}\vspace{0pt}}
\end{center}
\quotation
\rm\ifx\enhyph\undefined\relax\else\enhyph\fi}
\def\endabstract{\endquotation\normalsize\rm}

\def\resume#1{\small
\begin{center}
{\bf #1\vspace{-.5em}\vspace{0pt}}
\end{center}
\quotation
\em\ifx\frhyph\undefined\relax\else\frhyph\fi}
\def\endresume{\endquotation\normalsize\ifx\enhyph\undefined\relax\else\enhyph\f
i}

\def\keywords{\small\quotation
\noindent\rm {\bf Key words:\ }}
\def\endkeywords{\endquotation\normalsize}

% modify the sectioning commands as is appropriate for style.  Adjusting
% for baselines again to get 35 pt above and 15 pt below
\def\section{\@startsection {section}{1}{\z@}{-12pt plus -2pt minus
-2pt}{10pt plus 1pt minus 1pt}{\sectsize\raggedright}}
\def\subsection{\@startsection{subsection}{2}{\z@}{-10pt plus -2pt minus
-1pt}{8pt plus 1pt minus 1pt}{\subsectsize\bf\raggedright}}
\def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-8pt plus
-2pt minus -1pt}{6pt plus 1pt minus 1 pt}{\subsectsize\it\raggedright}}
\def\paragraph{\@startsection
{paragraph}{4}{\z@}{6pt plus 2pt minus 2pt}{-1em}{\normalsize\bf}}
\def\subparagraph{\@startsection
{subparagraph}{4}{\parindent}{6pt plus 2pt minus
2pt}{-1em}{\normalsize\bf}}

\gdef\thesection{\arabic{section}}
\gdef\thesubsection{\thesection.\arabic{subsection}}
\gdef\thesubsubsection{\thesubsection.\arabic{subsubsection}}
\gdef\theparagraph{\thesubsubsection.\arabic{paragraph}}
\gdef\thesubparagraph{\theparagraph.\arabic{subparagraph}}

% define a new environment for use in setting the abstract
\def\abst{\list{}{\leftmargin0pc}\abstsize\item[]}
\def\endabst{\endlist\vskip-7pt}

\def\listelabel{$\bullet$}
\settowidth{\labelwidth}{\listelabel}
\def\liste{\list{}{\settowidth{\labelwidth}{\listelabel}
\leftmargin\labelwidth\advance\leftmargin\labelsep\rightmargin0pt\labelsep0pt
\itemsep0pt \let\makelabel\listelabel}\small}
\let\endliste=\endlist

\def\enumeration{\list{{\small \arabic{enumi}.\ }}%
{\settowidth{\labelwidth}{{\small 1.\ }}
\leftmargin\labelwidth\advance\leftmargin\labelsep\rightmargin0pt\labelsep0pt
\itemsep0pt \usecounter{enumi}}\small}
\let\endenumeration=\endlist

% bibliography stuff

\def\thebibliography#1{\section*{References}%
\list{[\arabic{enumi}]}{\settowidth\labelwidth{[#1]}\leftmargin\labelwidth
\advance\leftmargin\labelsep\usecounter{enumi}}\small}
\let\endthebibliography=\endlist \newif\if@restonecol

% modifying the format of the footnote display
%        A simpler macro is used, in which the footnote text is
%        set like an ordinary text paragraph, with no indentation except
%        on the first line of a paragraph, and the first line of the
%        footnote.  Thus, all the macro must do is set \parindent
%        to the appropriate value for succeeding paragraphs and put the
%        proper indentation before mark.

\long\def\@makefntext#1{\parindent 1em\noindent
            \hbox to 1.8em{\hss$^{\@thefnmark}$}#1}


% figure spacings
%    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
\textfloatsep 13pt plus 2pt minus 4pt    % Space between main text and floats
                                         % at top or bottom of page.
\@maxsep 13pt                            % The maximum of \floatsep,
                                         % \textfloatsep and \intextsep (minus
                                         % the stretch and shrink).

\long\def\@caption#1[#2]#3{\addcontentsline{\csname
  ext@#1\endcsname}{#1}{\protect\numberline{\csname
  the#1\endcsname}{\ignorespaces #2}}\par
  \begingroup
    \@parboxrestore
    \captsize
    \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
  \endgroup}

\long\def\@makecaption#1#2{
   \vskip 1pt % almost no skip at all
   \setbox\@tempboxa\hbox{#1: #2}
   \ifdim \wd\@tempboxa >\hsize   % IF longer than one line:
       \unhbox\@tempboxa\par      %   THEN set as ordinary paragraph.
     \else                        %   ELSE  center.
       \hbox to\hsize{\hfil\box\@tempboxa\hfil}
   \fi}

% figure placement modifications
\setcounter{topnumber}{1}
\def\bottomfraction{0.01}

% running headers
\def\titlehead#1{\gdef\@titlehead{#1}}
\def\authorhead#1{\gdef\@authorhead{#1}}

% pagestyle
\def\ps@gut{\let\@mkboth\@gobbletwo%
     \def\@evenhead{\normalsize\it{%
\ifx\@authorhead\u@ndefined\@author\else\@authorhead\fi}\hfil}%
     \def\@oddfoot{\rm\hfil\thepage}\def\@oddhead{\normalsize\it\hfil{%
\ifx\@titlehead\u@ndefined\@title\else\@titlehead\fi}}%
     \def\@evenfoot{\rm\thepage\hfil}}

\def\ps@titre{\let\@mkboth\@gobbletwo%
     \def\@evenhead{\hfill{\footnotesize Euro\TeX\ \N@C{} --- \D@teC}}%
     \def\@oddhead{{\footnotesize Euro\TeX\ \N@C{} --- \D@teC}\hfill}%
     \def\@oddfoot{\rm\hfil\thepage}%
     \def\@evenfoot{\rm\thepage\hfil}}

\ds@twoside

\def\@outputpage{\begingroup\catcode`\ =10 \if@specialpage
     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}\fi
     \if@twoside
       \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot
            \let\@themargin\oddsidemargin
          \else \let\@thehead\@evenhead
          \let\@thefoot\@evenfoot \let\@themargin\evensidemargin
     \fi\fi
     \shipout
     \vbox{\normalsize \baselineskip\z@ \lineskip\z@
           \vskip \topmargin \moveright\@themargin
           \vbox{\setbox\@tempboxa
                 \vbox to\headheight{\vfil \hbox to\textwidth{\@thehead}
                 \vskip 10pt \hbox to\textwidth{\hrulefill}}
                 \dp\@tempboxa\z@
                 \box\@tempboxa
                 \vskip \headsep
                 \box\@outputbox
                 \baselineskip\footskip
                 \hbox to\textwidth{\@thefoot}}}\global\@colht\textheight
           \endgroup\stepcounter{page}\let\firstmark\botmark}

% heading needs a bar

\oddsidemargin3mm \evensidemargin36mm

\marginparwidth 2cm \marginparsep 10pt
\topmargin 3cm \headheight 1cm \headsep 14pt \footheight .3cm \footskip
1cm

\textheight 546pt \textwidth12.7cm \columnsep 10pt \columnseprule 0pt

\footnotesep 8.4pt
\skip\footins 10.8pt plus 4pt minus 2pt
\floatsep 14pt plus 2pt minus 4pt \textfloatsep 20pt plus 2pt minus 4pt
\intextsep 14pt plus 4pt minus 4pt \@maxsep 20pt \dblfloatsep 14pt plus 2pt
minus 4pt \dbltextfloatsep 20pt plus 2pt minus 4pt \@dblmaxsep 20pt
\@fptop 0pt plus 1fil \@fpsep 10pt plus 2fil \@fpbot 0pt plus 1fil
\@dblfptop 0pt plus 1fil \@dblfpsep 10pt plus 2fil \@dblfpbot 0pt plus 1fil
\marginparpush 7pt

\parskip 1.1ex plus 1pt \parindent 1.5em \topsep 10pt plus 4pt minus 6pt
\partopsep 3pt plus 2pt minus 2pt \itemsep 5pt plus 2.5pt minus 1pt
\@lowpenalty 51 \@medpenalty 151 \@highpenalty 301
\@beginparpenalty -\@lowpenalty \@endparpenalty -\@lowpenalty \@itempenalty
-\@lowpenalty

\hfuzz2pt
\tolerance3500
\pretolerance3500
\hbadness10000
\hyphenpenalty50
\exhyphenpenalty50

%\sloppy
\frenchspacing

\pagestyle{gut}
\thispagestyle{titre}

\def\at{{\char '100}}
\def\boi{{\tt\char '134}}
\def\circonflexe{{\char '136}}
\def\tild{{\char '176}}
\def\degre{{\char '027}}
%% remove the 3 following lines if you don't the guill font.
%\font\trom=guill
%\def\oguill{{\trom A}\nobreak\mbox{\hglue.25em}\nobreak}
%\def\fguill{\nobreak\mbox{\hglue.25em}\nobreak{\trom B}\,}

\NoC{92}
\DateC{September 14--18, Prague, Czechoslovakia}
\let\twocolumn\relax              % Don't use twocolumn, please
\ifx\enhyph\undefined\relax\else\enhyph\fi