]> AND Private Git Repository - LiCO.git/blob - PeCO-EO/gENO2e.cls
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
figures
[LiCO.git] / PeCO-EO / gENO2e.cls
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
2 %%\r
3 % This is file `gENO2e.cls'\r
4 %%\r
5 % Version : 4.1\r
6 %%\r
7 % gENO - Engineering Optimization\r
8 %%\r
9 % This file is part of the LaTeX2e system.\r
10 %%\r
11 % 'Rotating.sty' to be used for rotating tables and figures\r
12 %%\r
13 % Suitcase:\r
14 %% CMR family\r
15 %%\r
16 % History of Changes:\r
17 % v2.0 - First released 1998/04/09\r
18 % v3.1 - First released 2004/07/01\r
19 % 1. Provision for subject classification after the Keywords using \classcode,\r
20 %    e.g. "AMS Subject Classification: F1.1; F4.3"\r
21 % v3.2 - First released 2006/07/22\r
22 % 1. Inclusion of \jvol{} \jnum{} \jyear{} \jmonth{} optional (defaults to 'Vol. 00, No. 00, Month 20XX')\r
23 % 2. Inclusion of \received optional (defaults to 'Received 00 Month 20XX; final version received 00 Month 20XX')\r
24 % 3. Page width 42pc\r
25 % 4. Upright lc Greek, etc. available\r
26 % 5. First page footnote available for gENO articles\r
27 % v3.3 - First released 2006/11/08\r
28 % 1. Abstract, keywords and classcodes indented left and right\r
29 % v3.4 - First released 2008/01/04\r
30 % 1. Page width 32.65pc\r
31 % 2. Converted style to new Style 2 (2008) with Refs Style X\r
32 % 3. Provision for \articletype above \title (e.g. ORIGINAL ARTICLE, RESEARCH ARTICLE, EDITORIAL,\r
33 %    BOOK REVIEWS, BRIEF COMMUNICATION)\r
34 % v3.5 - First released 2008/08/03\r
35 % 1. Definition style brought in line with Daniel Hartley's exemplar PDF\r
36 % 2. Removed call for mathbbol.sty so as to default to AMS openface style fonts\r
37 % v3.6 - First released 2008/09/19\r
38 % 1. Hacked Remark and Algorithm numbering to remove bug\r
39 % v3.7 - First released 2008/09/25\r
40 % 1. Table and figure spacing above and below adjusted\r
41 % v3.8 - First released 2008/09/30\r
42 % 1. Lists unindented\r
43 % v3.9 - First released 2009/05/17\r
44 % 1. Example style implemented\r
45 % v4.0 - First released 2010/12/10\r
46 % 1. DOI style updated\r
47 % 2. \articletype now defaults to blank\r
48 % v4.1 - First released 2013/04/29 incorporating the following provisions:\r
49 % 1. Converted to Chicago author-date reference style\r
50 % 2. Text width 35pc\r
51 %\r
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
53 %\r
54 \NeedsTeXFormat{LaTeX2e}\r
55 \ProvidesClass{gENO2e}[2013/04/29 v4.1 Engineering Optimization LaTeX2e document class]\r
56 \newif\if@restonecol\r
57 \@twosidetrue\@mparswitchtrue\r
58 \@twocolumnfalse\r
59 %%\r
60 \def\jobtag{Engineering Optimization}\r
61 \newdimen\draftrule\r
62 \draftrule=0pt\r
63 \newif\ifdraft\r
64 \draftfalse\r
65 \newif\ifprinter\r
66 \newif\ifappendix\appendixfalse\r
67 %\r
68 \newdimen\trimrule\r
69 \trimrule=.1pt\r
70 %\r
71 \newdimen\draftrule\r
72 \draftrule=0pt\r
73 %\r
74 \DeclareOption{draft}{\setlength\overfullrule{5pt}\draftrule0.1pt\global\drafttrue}\r
75 \DeclareOption{printer}{\setlength\overfullrule{0pt}\trimrule0pt\global\printertrue}\r
76 \DeclareOption{final}{\setlength\overfullrule{0pt}}\r
77 %\r
78 \ExecuteOptions{legalpaper,onecolumn,final}\r
79 \ProcessOptions\r
80 %\r
81 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Boxes & Dimensions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
82 %\r
83 \newdimen\trimheight\r
84 \newdimen\trimwidth\r
85 \newdimen\typeheight\r
86 \newdimen\typewidth\r
87 \newdimen\normaltextheight\r
88 \newdimen\blindfoliodrop\r
89 \newdimen\tempdimen\r
90 \newdimen\rhdraftruleheight\r
91 \rhdraftruleheight\draftrule\r
92 %\r
93 \newbox\tempbox\r
94 %\r
95 %%%%%%%%%%%%%%%%%%%%%%%%%%%%% End Boxes & Dimensions %%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
96 %\r
97 \def\editedfont{\normalfont\fontsize{11}{12}\selectfont\itshape\raggedright\leftskip1pc\rightskip5pc plus 1fill{}}\r
98 \def\abstractfont{\normalfont\fontsize{9}{10}\selectfont\leftskip2pc\rightskip2pc}%\r
99 \def\authorfont{\normalfont\fontsize{10}{13}\selectfont\centering}\r
100 \def\affilfont{\normalfont\fontsize{9}{10}\selectfont\centering}%\itshape%\r
101 \def\receivedfont{\normalfont\fontsize{8}{12}\selectfont\centering\itshape}\r
102 \def\bibliofont{\fontsize{10}{12}\selectfont}%\r
103 \def\dropfoliofont{\fontsize{8}{10}\selectfont}%\r
104 \def\extractfont{\fontsize{10}{12}\selectfont\leftskip12pt\rightskip12pt}%\r
105 \def\figcaptionfont{\fontsize{8}{9}\selectfont}%\r
106 \def\fignumfont{\fontsize{8}{9}\selectfont}%\r
107 \let\foliofont\dropfoliofont\r
108 \def\indexfont{\normalfont\fontsize{9}{12}\selectfont\raggedright}%\r
109 \def\keywordfont{\normalfont\fontsize{9}{10}\selectfont\leftskip2pc\rightskip2pc plus1fill}%\r
110 \def\listfont{}%\r
111 \def\rhfont{\fontsize{8}{12}\selectfont\itshape}%\r
112 \def\rffont{\fontsize{8}{10}\selectfont\itshape}%\r
113 \def\sectionfont{\fontsize{11}{13}\selectfont\bfseries\raggedright\boldmath}%\r
114 \def\subsectionfont{\fontsize{11}{13}\selectfont\bfseries\itshape\raggedright\boldmath}%\r
115 \def\subsubsectionfont{\fontsize{11}{13}\selectfont\itshape\raggedright}%\r
116 \def\paragraphfont{\fontsize{11}{13}{\selectfont\itshape}}%\itshape%\r
117 \def\subparagraphfont{\fontsize{11}{13}\selectfont\itshape}%\r
118 \def\tablefont{\fontsize{8}{9}\selectfont}%\r
119 \def\tablecaptionfont{\fontsize{8}{9}\selectfont\leftskip\tabledim\rightskip\tabledim}%\r
120 \def\tablenumfont{\fontsize{8}{9}\selectfont}%\r
121 \def\tabnotefont{\fontsize{8}{9}\selectfont}%\r
122 \def\articletypefont{\fontsize{13}{16}\selectfont\bfseries\centering\uppercase}%\r
123 \def\titlefont{\fontsize{13}{16}\selectfont\bfseries\centering}%\r
124 \def\thanksfont{\fontsize{8}{9}\selectfont}\r
125 \def\sluglinefont{\fontsize{6}{8}\selectfont}%\r
126 %\r
127 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
128 \r
129 \def\@xpt{10}\r
130 \def\@xiiipt{13}\r
131 \def\@xivpt{14}\r
132 \def\@xvipt{16}\r
133 \def\@xipt{11}\r
134 \r
135 \def\@xviiipt{18}\r
136 %\r
137 \renewcommand\normalsize{%\r
138    \@setfontsize\normalsize\@xipt\@xiiipt\r
139    \abovedisplayskip 13\p@ \@plus2\p@ minus.5pt\r
140    \abovedisplayshortskip \abovedisplayskip\r
141    \belowdisplayskip 13\p@ \@plus2\p@ minus.5pt\r
142    \belowdisplayshortskip\belowdisplayskip\r
143    \let\@listi\@listI}\r
144 \normalsize\r
145 %\r
146 \newcommand\small{%\r
147    \@setfontsize\small\@xpt{11}%\r
148    \abovedisplayskip 8.5\p@ \@plus3\p@\r
149    \abovedisplayshortskip \z@ \@plus2\p@\r
150    \belowdisplayshortskip 4\p@ \@plus2\p@\r
151    \def\@list1{\leftmargin\leftmargin1\r
152                \topsep 6\p@ \@plus2\p@\r
153                \parsep 2\p@ \@plus\p@\r
154                \itemsep \parsep}%\r
155    \belowdisplayskip \abovedisplayskip\setSmallDelims}\r
156 %\r
157 \def\setSmallDelims{%\r
158 \def\big##1{{\hbox{$\left##1\vbox to7.5\p@{}\right.\n@space$}}}%\r
159 \def\Big##1{{\hbox{$\left##1\vbox to10.5\p@{}\right.\n@space$}}}%\r
160 \def\bigg##1{{\hbox{$\left##1\vbox to13.5\p@{}\right.\n@space$}}}%\r
161 \def\Bigg##1{{\hbox{$\left##1\vbox to16.5\p@{}\right.\n@space$}}}%\r
162 \def\biggg##1{{\hbox{$\left##1\vbox to19.5\p@{}\right.\n@space$}}}%\r
163 \def\Biggg##1{{\hbox{$\left##1\vbox to22.5\p@{}\right.\n@space$}}}%\r
164 }\r
165 %\r
166 \newcommand\footnotesize{%\r
167    \@setfontsize\footnotesize\@viiipt{10}%\r
168    \abovedisplayskip 6\p@ \@plus2\p@\r
169    \abovedisplayshortskip \z@ \@plus\p@\r
170    \belowdisplayshortskip 3\p@ \@plus\p@\r
171    \def\@listi{\leftmargin\leftmargini\r
172                \topsep 6\p@ \@plus\p@\r
173                \parsep 2\p@ \@plus\p@\r
174                \itemsep \parsep}%\r
175    \belowdisplayskip \abovedisplayskip\setFootnotesizeDelims\r
176    }\r
177 %\r
178 \def\setFootnotesizeDelims{%\r
179 \def\big##1{{\hbox{$\left##1\vbox to6.5\p@{}\right.\n@space$}}}%\r
180 \def\Big##1{{\hbox{$\left##1\vbox to9.5\p@{}\right.\n@space$}}}%\r
181 \def\bigg##1{{\hbox{$\left##1\vbox to12.5\p@{}\right.\n@space$}}}%\r
182 \def\Bigg##1{{\hbox{$\left##1\vbox to15.5\p@{}\right.\n@space$}}}%\r
183 \def\biggg##1{{\hbox{$\left##1\vbox to18.5\p@{}\right.\n@space$}}}%\r
184 \def\Biggg##1{{\hbox{$\left##1\vbox to21.5\p@{}\right.\n@space$}}}%\r
185 }\r
186 %\r
187 \newcommand\tiny{\@setfontsize\tiny\@vipt\@viipt}\r
188 \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}\r
189 \newcommand\large{\@setfontsize\large\@xipt{13}}%16/19\r
190 \newcommand\Large{\@setfontsize\Large\@xviipt{18}}%18/18\r
191 \newcommand\LARGE{\@setfontsize\LARGE\@xviiipt{22}}\r
192 \newcommand\huge{\@setfontsize\huge\@xxpt{25}}\r
193 \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}\r
194 %%%%%%%%%%%%%%%%%%%%%%%%%%% Fonts family definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
195 \def\capsdefault{caps}% All CAPS\r
196 \DeclareRobustCommand\capsshape\r
197         {\not@math@alphabet\capsshape\mathrm\r
198          \fontshape\capsdefault\selectfont}\r
199 %%\r
200 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Front Matter Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
201 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}\r
202 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}\r
203 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}\r
204 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}\r
205 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}\r
206 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}\r
207 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}\r
208 \DeclareOldFontCommand{\bi}{\bfseries\itshape}{\bfseries\itshape}\r
209 \newcommand{\cal}{\protect\pcal}\r
210 \newcommand{\pcal}{\@fontswitch{\relax}{\mathcal}}\r
211 \newcommand{\mit}{\protect\pmit}\r
212 \newcommand{\pmit}{\@fontswitch{\relax}{\mathnormal}}\r
213 %\r
214 \renewcommand\rmdefault{cmr}\r
215 \newcommand\rmmathdefault{cmr}\r
216 %%\r
217 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Front Matter Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
218 \DeclareFontFamily{OT1}{Clearface}{}\r
219 \DeclareFontShape{OT1}{Clearface}{m}{n}{ <-> Clearface-Regular }{}\r
220 \DeclareFontShape{OT1}{Clearface}{m}{it}{ <-> Clearface-RegularItalic }{}\r
221 %\r
222 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Bold Math %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
223 \def\encodingdefault{OT1}%\r
224 \fontencoding{OT1}%\r
225 %\r
226 \SetSymbolFont{operators}{normal}{\encodingdefault}{\rmdefault}{m}{n}\r
227 \SetSymbolFont{letters}{normal}{OML}{\rmmathdefault}{m}{it}\r
228 \SetSymbolFont{symbols}{normal}{OMS}{\rmmathdefault}{m}{n}\r
229 \SetSymbolFont{largesymbols}{normal}{OMX}{\rmmathdefault}{m}{n}\r
230 \SetMathAlphabet{\mathbf}{normal}{\encodingdefault}{\rmdefault}{bx}{n}\r
231 \SetMathAlphabet{\mathsf}{normal}{\encodingdefault}{\sfdefault}{m}{n}\r
232 \SetMathAlphabet{\mathrm}{normal}{\encodingdefault}{\rmdefault}{m}{n}\r
233 \SetMathAlphabet{\mathtt}{normal}{\encodingdefault}{Courier}{m}{n}\r
234 %\r
235 \SetSymbolFont{operators}{bold}{OT1}{\rmdefault}{bx}{n}\r
236 %\SetSymbolFont{letters}{bold}{OML}{cmmib}{bx}{it}\r
237 \SetSymbolFont{symbols}{bold}{OMS}{\rmmathdefault}{bx}{n}\r
238 \SetSymbolFont{largesymbols}{bold}{OMX}{\rmmathdefault}{bx}{n}\r
239 \SetMathAlphabet{\mathbf}{bold}{\encodingdefault}{\rmdefault}{bx}{n}\r
240 \SetMathAlphabet{\mathsf}{bold}{\encodingdefault}{\sfdefault}{bx}{n}\r
241 \SetMathAlphabet{\mathrm}{bold}{\encodingdefault}{\rmdefault}{bx}{n}\r
242 \SetMathAlphabet{\mathtt}{bold}{\encodingdefault}{Courier}{bx}{n}\r
243 %%\r
244 \def\boldmath{\mathversion{bold}}\r
245 \def\bm#1{\mathchoice\r
246                                         {\mbox{\boldmath$\displaystyle#1$}}\r
247           {\mbox{\boldmath$#1$}}\r
248           {\mbox{\boldmath$\scriptstyle#1$}}\r
249           {\mbox{\boldmath$\scriptscriptstyle#1$}}}\r
250 %\r
251 % define blackboard font if needed\r
252 \def\bb#1{\mathchoice\r
253                                         {\mbox{\fontfamily{ams}\fontsize{\tf@size}{\tf@size}\selectfont\bf#1}}\r
254                                         {\mbox{\fontfamily{ams}\fontsize{\tf@size}{\tf@size}\selectfont\bf#1}}\r
255                                         {\mbox{\fontfamily{ams}\fontsize{\sf@size}{\sf@size}\selectfont\bf#1}}\r
256                                         {\mbox{\fontfamily{ams}\fontsize{\ssf@size}{\ssf@size}\selectfont\bf#1}}}\r
257 %\r
258 \DeclareMathAlphabet{\mathbb}{OT1}{ams}{bx}{n}\r
259 \SetMathAlphabet\mathbb{normal}{OT1}{ams}{bx}{n}\r
260 \SetMathAlphabet\mathbb{bold}{OT1}{ams}{bx}{n}\r
261 \def\bb{\mathbb}\r
262 %\r
263 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
264 %\r
265 % Macro for changing \mathversion's\r
266 \providecommand{\mathch}[2]{% Derived from AMSBSY.STY\r
267   \begingroup\r
268   \let\@nomath\@gobble \mathversion{#1}%\r
269   \math@atom{#2}{%\r
270   \mathchoice%\r
271     {\hbox{$\m@th\displaystyle#2$}}%\r
272     {\hbox{$\m@th\textstyle#2$}}%\r
273     {\hbox{$\m@th\scriptstyle#2$}}%\r
274     {\hbox{$\m@th\scriptscriptstyle#2$}}}%\r
275   \endgroup}\r
276 %\r
277 % The following changes encoding from U to OML\r
278 % This allows to use eurm/b as (more or less) a math italic font.\r
279 %\r
280 \DeclareFontFamily{OML}{eur}{\skewchar\font'177}\r
281 \DeclareFontShape{OML}{eur}{m}{n}{\r
282   <5> <6> <7> <8> <9> gen * eurm\r
283   <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> eurm10\r
284   }{}\r
285 \DeclareFontShape{OML}{eur}{b}{n}{\r
286   <5> <6> <7> <8> <9> gen * eurb\r
287   <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> eurb10\r
288   }{}\r
289 %\r
290 \DeclareMathVersion{upright}\r
291 \DeclareMathVersion{boldupright}\r
292 \SetSymbolFont{letters}{upright}    {OML}{eur}{m}{n}\r
293 \SetSymbolFont{letters}{boldupright}{OML}{eur}{b}{n}\r
294 \DeclareRobustCommand{\mathup}[1]{\mathch{upright}{#1}}\r
295 \DeclareRobustCommand{\mathbup}[1]{\mathch{boldupright}{#1}}\r
296 \r
297 % lower-case Greek\r
298 \newcommand\ualpha{\mathup{\alpha}}\r
299 \newcommand\ubeta{\mathup{\beta}}\r
300 \newcommand\ugamma{\mathup{\gamma}}\r
301 \newcommand\udelta{\mathup{\delta}}\r
302 \newcommand\uepsilon{\mathup{\epsilon}}\r
303 \newcommand\uzeta{\mathup{\zeta}}\r
304 \newcommand\ueta{\mathup{\eta}}\r
305 \newcommand\utheta{\mathup{\theta}}\r
306 \newcommand\uiota{\mathup{\iota}}\r
307 \newcommand\ukappa{\mathup{\kappa}}\r
308 \newcommand\ulambda{\mathup{\lambda}}\r
309 \newcommand\umu{\mathup{\mu}}\r
310 \newcommand\unu{\mathup{\nu}}\r
311 \newcommand\uxi{\mathup{\xi}}\r
312 \newcommand\upi{\mathup{\pi}}\r
313 \newcommand\urho{\mathup{\rho}}\r
314 \newcommand\usigma{\mathup{\sigma}}\r
315 \newcommand\utau{\mathup{\tau}}\r
316 \newcommand\uupsilon{\mathup{\upsilon}}\r
317 \newcommand\uphi{\mathup{\phi}}\r
318 \newcommand\uchi{\mathup{\chi}}\r
319 \newcommand\upsi{\mathup{\psi}}\r
320 \newcommand\uomega{\mathup{\omega}}\r
321 \newcommand\uvarepsilon{\mathup{\varepsilon}}\r
322 \newcommand\uvartheta{\mathup{\vartheta}}\r
323 \newcommand\uvarpi{\mathup{\varpi}}\r
324 \let\uvarrho\varrho % don't exist in eurm.\r
325 \let\uvarsigma\varsigma\r
326 \newcommand\uvarphi{\mathup{\varphi}}\r
327 \newcommand\ubalpha{\mathbup{\alpha}}\r
328 \newcommand\ubbeta{\mathbup{\beta}}\r
329 \newcommand\ubgamma{\mathbup{\gamma}}\r
330 \newcommand\ubdelta{\mathbup{\delta}}\r
331 \newcommand\ubepsilon{\mathbup{\epsilon}}\r
332 \newcommand\ubzeta{\mathbup{\zeta}}\r
333 \newcommand\uboldeta{\mathbup{\eta}}\r
334 \newcommand\ubtheta{\mathbup{\theta}}\r
335 \newcommand\ubiota{\mathbup{\iota}}\r
336 \newcommand\ubkappa{\mathbup{\kappa}}\r
337 \newcommand\ublambda{\mathbup{\lambda}}\r
338 \newcommand\ubmu{\mathbup{\mu}}\r
339 \newcommand\ubnu{\mathbup{\nu}}\r
340 \newcommand\ubxi{\mathbup{\xi}}\r
341 \newcommand\ubpi{\mathbup{\pi}}\r
342 \newcommand\ubrho{\mathbup{\rho}}\r
343 \newcommand\ubsigma{\mathbup{\sigma}}\r
344 \newcommand\ubtau{\mathbup{\tau}}\r
345 \newcommand\ubupsilon{\mathbup{\upsilon}}\r
346 \newcommand\ubphi{\mathbup{\phi}}\r
347 \newcommand\ubchi{\mathbup{\chi}}\r
348 \newcommand\ubpsi{\mathbup{\psi}}\r
349 \newcommand\ubomega{\mathbup{\omega}}\r
350 \newcommand\ubvarepsilon{\mathbup{\varepsilon}}\r
351 \newcommand\ubvartheta{\mathbup{\vartheta}}\r
352 \newcommand\ubvarpi{\mathbup{\varpi}}\r
353 \newcommand\ubvarrho{\boldsymbol{\varrho}} % don't exist in eurb.\r
354 \newcommand\ubvarsigma{\boldsymbol{\varsigma}}\r
355 \newcommand\ubvarphi{\mathbup{\varphi}}\r
356 \newcommand\upartial {\mathup{\partial}}\r
357 \newcommand\ubpartial{\mathbup{\partial}}\r
358 \r
359 %%%%End of upright lc Greek etc.\r
360 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
361 \trimheight9in\r
362 \trimwidth6in\r
363 \typeheight200mm\r
364 \typewidth130mm\r
365 %\advance\trimheight2pc\r
366 %\advance\trimwidth2pc\r
367 %\r
368 \setlength\parindent{10pt}\r
369 \setlength\headheight{5\p@}%8pt size\r
370 \setlength\headsep   {19pt}%\r
371 \setlength\topskip  {7\p@}\r
372 \setlength\footskip{32pt}% 18pt + 2 line space on opening page\r
373 \setlength\maxdepth{4\p@}\r
374 \setlength\@maxdepth\maxdepth\r
375 \setlength\textwidth{\typewidth}\r
376 \setlength\textheight\typeheight\r
377 \advance\textheight-\headheight\r
378 \advance\textheight-\headsep\r
379 \setlength\normaltextheight{\textheight}\r
380 %\advance\textheight-2pc\r
381 %\r
382 \setlength\topmargin{.625in}%% 5/8"\r
383 \setlength\oddsidemargin{.435in}%% 1"\r
384 \evensidemargin\trimwidth\r
385 \advance\evensidemargin-\textwidth\r
386 \advance\evensidemargin-\oddsidemargin\r
387 %\r
388 \blindfoliodrop\trimheight\r
389 \advance\blindfoliodrop-\typeheight\r
390 \advance\blindfoliodrop-\topmargin\r
391 \advance\blindfoliodrop1pc\r
392 %\r
393 \setlength\marginparwidth {18pt}\r
394 \setlength\marginparsep{0.5pc}\r
395 %\setlength\marginparpush{5\p@}\r
396 \setlength\footnotesep {7pt}%12\p@}% \@plus 5\p@}%\r
397 \setlength{\skip\footins}{26\p@ \@plus 8\p@ minus8pt}%\r
398 \setlength\floatsep    {13\p@ \@plus 6\p@}\r
399 \setlength\textfloatsep{13\p@ \@plus 6\p@}\r
400 \setlength\intextsep   {13\p@ \@plus 6\p@}\r
401 \setlength\dblfloatsep    {12\p@ \@plus 2\p@}\r
402 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@}\r
403 \setlength\@fptop{0\p@}\r
404 \setlength\@fpsep{18\p@ \@plus 2fil}\r
405 \setlength\@fpbot{0\p@ \@plus 1fil}\r
406 \setlength\@dblfptop{0\p@ \@plus 1fil}\r
407 \setlength\@dblfpsep{8\p@ \@plus 2fil}\r
408 \setlength\@dblfpbot{0\p@ \@plus 1fil}\r
409 \setlength\partopsep{2\p@ \@plus 1\p@}\r
410 \setlength\lineskip{1\p@}\r
411 \setlength\normallineskip{1\p@}\r
412 \renewcommand\baselinestretch{1}\r
413 \setlength\parskip{0\p@}\r
414 \@lowpenalty   51\r
415 \@medpenalty  151\r
416 \@highpenalty 301\r
417 \@beginparpenalty -\@lowpenalty\r
418 \@endparpenalty   -\@lowpenalty\r
419 \@itempenalty     -\@lowpenalty\r
420 %\r
421 \setlength\columnsep{12\p@}\r
422 %\r
423 \setlength\columnseprule{0\p@}\r
424 %\r
425 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Title commands  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
426 %\r
427 \def\articletype#1{\gdef\@articletype{{#1}}\uppercase}\r
428 \def\title#1{\gdef\@title{{#1}}}\r
429 \def\author#1{\gdef\@author{#1}}\r
430 \def\received#1{\gdef\@received{#1}}\r
431 \gdef\@received{Received 00 Month 20XX; final version received 00 Month 20XX}\r
432 %\r
433 \def\thanks#1{\begingroup\r
434 \def\protect{\noexpand\protect\noexpand}\xdef\@thanks{\@thanks%\r
435   \protect\footnotetext[\the\c@footnote]{\thanksfont#1}}\endgroup}\r
436 %\r
437 \newcommand\maketitle{\par\r
438         \renewcommand\thefootnote{}%\r
439   \begingroup\r
440     \@maketitle%\r
441     \thispagestyle{plain}%\r
442   \endgroup\r
443   \@thanks\r
444   \let\@maketitle\relax\r
445   \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@articletype{}%\r
446         \renewcommand\thefootnote{\arabic{footnote}}%\r
447   \@afterheading}\r
448 %\r
449 \def\@maketitle{\thispagestyle{plain}\r
450   \clearpage\r
451   \null\r
452   \bgroup\r
453         \parindent0pt\r
454     \vspace*{48pt}\r
455     {\articletypefont{\@articletype}\par}%\r
456     \vskip13pt\r
457     {\titlefont\uppercase{\@title}\par}%\r
458     \vskip13pt\r
459     {\authorfont\@author\par}%\r
460     \vskip6pt\r
461     {\receivedfont{\rm(}\@received{\rm)}\par}%\r
462     \vskip17pt\r
463   \egroup}\r
464 %\r
465 \def\affil#1{\par\vskip10pt{\affilfont#1\par}\vskip15pt}\r
466 %\r
467 %%%%%%%%%% abstract\r
468 %\r
469 \newenvironment{abstract}{%\r
470         \abstractfont\r
471   \noindent\ignorespaces}{%\r
472         \par}\addvspace{32pt}\r
473 %\r
474 \newenvironment{keywords}{\global\keywordstrue%\r
475         \par\addvspace{11pt}%\r
476   \keywordfont\r
477   \noindent{{\bf{Keywords:}} }\ignorespaces\r
478 }{%\r
479         \par\addvspace{26pt plus 4pt}\@afterheading}\r
480 %\r
481 \newif\ifkeywords\r
482 \newenvironment{classcode}{%\r
483         \par\ifkeywords\addvspace{-20pt}\else\addvspace{11pt}\fi%\r
484   \keywordfont\r
485   \noindent{\itshape AMS Subject Classification{\rm{:}}\ }\ignorespaces\r
486 }{%\r
487         \par\addvspace{26pt plus 4pt}\@afterheading}\r
488 %\r
489 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%  End Title commands  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
490 %\r
491 %%%%%%%%%%%%%%%%%%%%%%%%%%%%% Sectioning commands  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
492 %\r
493 \setcounter{secnumdepth}{3}\r
494 \newcounter {part}\r
495 \newcounter {chapter}\r
496 \newcounter {section}[chapter]\r
497 \newcounter {subsection}[section]\r
498 \newcounter {subsubsection}[subsection]\r
499 \newcounter {paragraph}[subsubsection]\r
500 \newcounter {subparagraph}[paragraph]\r
501 \renewcommand\thepart       {\arabic{part}}\r
502 \renewcommand\thesection       {\arabic{section}}\r
503 \renewcommand\thesubsection    {\thesection.\arabic{subsection}}\r
504 \renewcommand\thesubsubsection {\thesubsection.\arabic{subsubsection}}\r
505 \renewcommand\theparagraph     {\thesubsubsection.\arabic{paragraph}}\r
506 \renewcommand\thesubparagraph  {\theparagraph.\arabic{subparagraph}}\r
507 %\r
508 \newif\ifBhead\r
509 \Bheadfalse\r
510 \newif\ifChead\r
511 \Cheadfalse\r
512 \newif\ifDhead\r
513 \Dheadfalse\r
514 \newif\ifEhead\r
515 \Eheadfalse\r
516 %\r
517 \newcommand\section{\@startsection {section}{1}{\z@}{-26pt \@plus-4pt minus-2pt}{13pt}{\sectionfont}}\r
518 \newcommand\subsection{\global\Bheadfalse\@startsection{subsection}{2}{\z@}{-24pt \@plus-3pt minus-2pt}{7pt}{\subsectionfont}}\r
519 \newcommand\subsubsection{\global\Cheadfalse\@startsection{subsubsection}{3}{\z@}{6pt \@plus2pt minus2pt}{6pt}{\subsubsectionfont}}\r
520 %\newcommand\subsubsection{\global\Cheadfalse\@startsection{subsubsection}{3}{\z@}{24pt \@plus2pt minus2pt}{-6pt}{\subsubsectionfont}}\r
521 %\newcommand\paragraph{\global\Dheadfalse\@startsection{paragraph}{4}{\z@}{6pt \@plus2pt minus2pt}{-6pt}{\paragraphfont}}\r
522 \newcommand\paragraph{\global\Dheadfalse\@startsection{paragraph}{3}{\z@}{24pt \@plus1pt minus1pt}{-6pt}{\paragraphfont}}%\r
523 \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}{3.25ex \@plus1ex}{-1em}{\reset@font\normalsize}}\r
524 %\r
525 \def\@startsection#1#2#3#4#5#6{%\r
526   \if@noskipsec \leavevmode \fi\r
527   \par\r
528   \@tempskipa #4\relax\r
529   \@afterindenttrue\r
530   \ifdim \@tempskipa <\z@\r
531     \@tempskipa -\@tempskipa \@afterindentfalse\r
532   \fi\r
533   \if@nobreak\r
534     \ifnum#2=3\r
535       \vskip4pt\r
536     \fi\r
537     \everypar{}%\r
538   \else\r
539     \addpenalty\@secpenalty\addvspace\@tempskipa\r
540   \fi\r
541   \@ifstar\r
542     {\@ssect{#3}{#4}{#5}{#6}}%\r
543     {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}\r
544 %\r
545 \newcommand\appendixname{Appendix}\r
546 \def\@sseccntformat#1{\csname the#1\endcsname\quad}\r
547 \def\@appseccntformat#1{\appendixname\ \csname the#1\endcsname.\ }\r
548 \def\@seccntformat#1{\csname the#1\endcsname.\quad}\r
549 \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth\r
550      \let\@svsec\@empty\else\r
551      \refstepcounter{#1}%\r
552      \let\@@protect\protect\r
553      \def\protect{\noexpand\protect\noexpand}%\r
554      \ifnum#2>\@ne\edef\@svsec{\@sseccntformat{#1}}\else\edef\@svsec{\@seccntformat{#1}}\fi%\r
555      \let\protect\@@protect\fi\r
556      \@tempskipa #5\relax\r
557       \ifdim \@tempskipa>\z@\r
558         \begingroup #6\relax\r
559           \ifnum#2=1\r
560                \@hangfrom{\hskip #3\relax\@svsec}%\r
561                          {\interlinepenalty \@M {#8}\par}%\r
562           \else\r
563                 \ifnum#2=2\r
564                     \@hangfrom{\hskip #3\relax{\em\@svsec}}%\r
565                              {\interlinepenalty \@M #8\par}%\r
566                 \else\r
567                         \@hangfrom{\hskip #3\relax\@svsec}%\r
568                              {\interlinepenalty \@M #8\par}%\r
569                 \fi\r
570          \fi\r
571         \endgroup\r
572 %       \ifappendix\r
573 %           \csname #1mark\endcsname{Appendix \thesection: #7}\r
574 %           \markright{Appendix \thesection: #7}\r
575 %       \else\r
576             \csname #1mark\endcsname{#7}\r
577 %       \fi\r
578         \addcontentsline\r
579          {toc}{#1}{\ifnum #2>\c@secnumdepth \else\r
580                       \protect\numberline{\csname the#1\endcsname}\fi\r
581                     #7}%\r
582        \else%\r
583         \def\@svsechd{#6\hskip #3\relax\r
584                    \em\@svsec #8.\csname #1mark\endcsname\r
585                       {#7}\addcontentsline\r
586                            {toc}{#1}{\ifnum #2>\c@secnumdepth \else\r
587                            \protect\numberline{\csname the#1\endcsname}%\r
588                                      \fi\r
589                        #7}}\fi\r
590      \@xsect{#5}}\r
591 %\r
592 %%\def\appendix{%\r
593 %%                                                      \setcounter{chapter}{0}\r
594 %%                                                      \setcounter{figure}{0}\r
595 %%                                                      \setcounter{table}{0}\r
596 %%                                                      \setcounter{equation}{0}\r
597 %%              }\r
598 %\r
599 %%%%%%%%%%%%%%%%%%%%%%%%%%%  End Sectioning commands  %%%%%%%%%%%%%%%%%%%%%%%%%%%\r
600 %\r
601 \def\AA{\leavevmode\setbox0\hbox{h}\dimen@\ht0\advance\dimen@-1ex%\r
602   \rlap{\raise.97\dimen@\hbox{\hskip2pt\char'27}}A}\r
603 %\r
604 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Lists %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
605 %\r
606 \newdimen\LabelSep\r
607 \LabelSep.5em\r
608 \newskip\TopSep\r
609 \TopSep 6\p@ %\@plus2\p@% \@minus1\p@\r
610 %\r
611 \def\@listI{\leftmargin\leftmargini\r
612             \listparindent\parindent\r
613             \parsep \z@\labelsep\LabelSep\r
614             \topsep\TopSep\r
615             \itemsep0\p@}\r
616 %\r
617 \let\@listi\@listI\r
618 \@listi\r
619 %\r
620 \def\@listii {\leftmargin\leftmarginii\r
621               \labelwidth\leftmarginii\r
622                     \listparindent\parindent\r
623                     \parsep \z@\labelsep\LabelSep\r
624               \topsep 0pt%6\p@ \@plus2\p@ \@minus1\p@\r
625               \parsep\z@\itemsep\z@}\r
626 \def\@listiii{\leftmargin\leftmarginiii\r
627                     \listparindent\parindent\r
628               \labelwidth\leftmarginiii\r
629               \topsep    0pt\r
630               \parsep    \z@\r
631               \partopsep0pt\r
632               \itemsep0pt}\r
633 \def\@listiv {\leftmargin\leftmarginiv\r
634               \labelwidth\leftmarginiv\r
635               \advance\labelwidth-\labelsep}\r
636 \def\@listv  {\leftmargin\leftmarginv\r
637               \labelwidth\leftmarginv\r
638               \advance\labelwidth-\labelsep}\r
639 \def\@listvi {\leftmargin\leftmarginvi\r
640               \labelwidth\leftmarginvi\r
641               \advance\labelwidth-\labelsep}\r
642 %\r
643 \setlength\leftmargini{3pc}\r
644 \setlength\leftmarginii{2.2em}\r
645 \setlength\leftmarginiii{1.87em}\r
646 \setlength\leftmarginiv{1.7em}\r
647 \setlength\leftmarginv{1em}\r
648 \setlength\leftmarginvi{1em}\r
649 \setlength\leftmargin{\leftmargini}\r
650 \setlength\listparindent{\parindent}\r
651 \setlength\labelwidth{\leftmargini}\r
652 \addtolength\labelwidth{-\labelsep}\r
653 \renewcommand\theenumi{(\arabic{enumi})}\r
654 \renewcommand\theenumii{(\alph{enumii}}\r
655 \renewcommand\theenumiii{(\roman{enumiii}}\r
656 \renewcommand\theenumiv{(\Alph{enumiv}}\r
657 \newcommand\labelenumi{\theenumi}\r
658 \newcommand\labelenumii{\theenumii)}\r
659 \newcommand\labelenumiii{\theenumiii)}\r
660 \newcommand\labelenumiv{\theenumiv)}\r
661 \renewcommand\p@enumii{\theenumi}\r
662 \renewcommand\p@enumiii{\theenumi(\theenumii)}\r
663 \renewcommand\p@enumiv{\p@enumiii\theenumiii}\r
664 \newcommand\labelitemi{$\m@th\bullet$}\r
665 \newcommand\labelitemii{$\m@th\circ$}\r
666 \newcommand\labelitemiii{\normalfont\textendash}\r
667 \newcommand\labelitemiv{$\m@th\ast$}\r
668 %\r
669 \newbox\enumbox\r
670 \newdimen\enumwd\r
671 \def\enummax#1{\setbox\enumbox=\hbox{#1\hskip\labelsep}%\r
672   \expandafter\global\csname leftmargin\romannumeral\the\@enumdepth\endcsname\wd\enumbox\r
673 }\r
674 %\r
675 \def\enumerate{\@ifnextchar[{\@enumerate}%\r
676                                         {\@enumerate[\csname label\@enumctr\endcsname]}}\r
677 %\r
678 \def\@enumerate[#1]{\listfont\ifnum \@enumdepth >3 \@toodeep\else\r
679       \advance\@enumdepth \@ne\edef\@enumctr{enum\romannumeral\the\@enumdepth}%\r
680       \setcounter{\@enumctr}{1}\enummax{#1}\list\r
681       {\csname label\@enumctr\endcsname}{\usecounter\r
682         {\@enumctr}\def\makelabel##1{\hss\llap{##1}}}\fi}\r
683 %\r
684 \let\Item\item\r
685 \newenvironment{enumeroman}{%\r
686   \def\theenumi{\roman{enumi}}\def\theenumii{\roman{enumii}}%\r
687   \def\labelenumi{(\theenumi)}\def\labelenumii{(\theenumii)}%\r
688         \let\item\Item\r
689   \begin{enumerate}%\r
690 }{%\r
691   \end{enumerate}}\r
692 %\r
693 \newenvironment{sequence}{%\r
694   \def\theenumi{\alph{enumi}}\def\theenumii{\alph{enumii}}%\r
695   \def\labelenumi{(\theenumi)}\def\labelenumii{(\theenumii)}%\r
696         \let\item\Item\r
697   \begin{enumerate}%\r
698 }{%\r
699   \end{enumerate}}\r
700 %\r
701 \newdimen\unnummargin\r
702 \unnummargin12pt\r
703 %\r
704 \newenvironment{unnumlist}{%\r
705         \let\item\Item\r
706       \advance\@enumdepth \@ne\r
707       \list{}{\leftmargin\unnummargin\itemindent-12pt\topsep6pt plus2pt\r
708               \def\makelabel##1{\hss\llap{##1}}}%\r
709 }{%\r
710   \endlist\advance\@enumdepth \m@ne}\r
711 %\r
712 \def\Itemize{%\r
713   \ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne\r
714   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%\r
715   \list{\csname\@itemitem\endcsname}%\r
716        {\ifnum \@itemdepth>1\topsep0pt\fi\leftmargin22.5pt\rightmargin1pc\labelsep6pt\def\r
717                                                            \makelabel##1{\hss\llap{##1}}}\fi}\r
718 %\r
719 \def\endItemize{\endlist}\r
720 %\r
721 \newenvironment{description}\r
722                {\list{}{\labelwidth\z@ \itemindent-\leftmargin\r
723                         \let\makelabel\descriptionlabel}}\r
724                {\endlist}\r
725 \newcommand*\descriptionlabel[1]{\hspace\labelsep\r
726                                 \normalfont\bfseries #1}\r
727 %\r
728 \newenvironment{quote}{%\r
729         \par\addvspace{13pt plus2pt minus1pt}\r
730   \extractfont\noindent\ignorespaces\r
731 }{%\r
732         \par\addvspace{13pt plus2pt minus1pt}\r
733   \@endparenv}\r
734 %\r
735 \renewenvironment{quote}{%\r
736         \par\addvspace{6pt}\let\itemize\Itemize\let\enditemize\endItemize\r
737   \extractfont\noindent\ignorespaces\r
738 }{%\r
739         \par\addvspace{6pt}\r
740   \@endparenv}\r
741 %\r
742 \let\extract\quote\r
743 \let\endextract\endquote\r
744 %\r
745 \def\itemize{%\r
746   \ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne\r
747   \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%\r
748   \list{\csname\@itemitem\endcsname}%\r
749        {\ifnum \@itemdepth>1\topsep0pt\fi\leftmargin11pt\labelsep6pt\def\makelabel##1{\hss\llap{##1}}}\fi}\r
750 %\r
751 \def\enditemize{\endlist}\r
752 %\r
753 \newenvironment{notes}{%\r
754 \par\let\listfont\footnotesize%\r
755 \begin{enumerate}\r
756 }{%\r
757 \end{enumerate}}\r
758 %\r
759 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  End Lists %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
760 %\r
761 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Floats  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
762 %\r
763 \setcounter{topnumber}{4}\r
764 \renewcommand\topfraction{.9}\r
765 \setcounter{bottomnumber}{4}\r
766 \renewcommand\bottomfraction{.9}\r
767 \setcounter{totalnumber}{8}\r
768 \renewcommand\textfraction{.1}\r
769 \renewcommand\floatpagefraction{.91}\r
770 \setcounter{dbltopnumber}{5}\r
771 \renewcommand\dbltopfraction{.9}\r
772 \renewcommand\dblfloatpagefraction{.9}\r
773 %\r
774 \newlength\abovecaptionskip\r
775 \newlength\belowcaptionskip\r
776 \setlength\abovecaptionskip{7\p@}\r
777 \setlength\belowcaptionskip{\z@}\r
778 %\r
779 \def\FigName{figure}%\r
780 %\r
781 \long\def\@caption#1[#2]#3{\par\begingroup\r
782     \@parboxrestore\r
783     \normalsize\r
784     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par\r
785   \endgroup}\r
786 %\r
787 \long\def\@makecaption#1#2{%\r
788   \ifx\FigName\@captype\r
789     \vskip5pt\r
790     \setbox\tempbox\hbox{\figcaptionfont{\fignumfont#1}\hskip4pt#2}%\r
791     \ifdim\wd\tempbox>\hsize\r
792             {\figcaptionfont\noindent{\fignumfont#1}\hskip7pt\ignorespaces#2\par}\r
793     \else\r
794             \centerline{\box\tempbox}\r
795     \fi\r
796  \else\r
797     {\tablecaptionfont\r
798     {\tablenumfont#1}\hskip7pt\ignorespaces{#2}\par}%\r
799    \vskip\belowcaptionskip\r
800  \fi}\r
801 %\r
802 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Figures %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
803 %\r
804 \newcounter{figure}[chapter]\r
805 \renewcommand\thefigure{\@arabic\c@figure}\r
806 \def\fps@figure{tbp}\r
807 \def\ftype@figure{1}\r
808 \def\ext@figure{lof}\r
809 \def\fnum@figure{Figure~\thefigure.}%\r
810 \newenvironment{figure}{\figcaptionfont\@float{figure}}{\end@float}\r
811 \newenvironment{figure*}{\figcaptionfont\@dblfloat{figure}}{\end@dblfloat}\r
812 %\r
813 \def\ArtDir{art/}%\r
814 \input epsf.sty\r
815 %\r
816 \def\ArtPiece{\@ifnextchar[{\@ArtPiece}{\@ArtPiece[]}}%\r
817 \def\@ArtPiece[#1]#2{\def\@tempa{#1}%\r
818                                                                                     \hbox{\ifx\@tempa\@empty\else\epsfscale#1\fi\r
819                                             \noindent{\epsfbox{\ArtDir#2}}}}%\r
820 %\r
821 \newdimen\figheight\r
822 \newdimen\figwidth\r
823 %\r
824 \let\figformat\centerline\r
825 %\r
826 \def\figurebox#1#2#3#4{%\r
827   \global\figheight#1\global\figwidth#2\r
828   \def\@tempa{#4}%\r
829   \leavevmode\r
830   \ifx\@tempa\empty\r
831     \figformat{\figbox}%\r
832   \else\r
833     \figformat{\ArtPiece[#3]{#4}}%\r
834   \fi\par}\r
835 %\r
836 \def\figbox{\hbox{\vbox{\hsize\figwidth\r
837                             \hrule\r
838                                   \hbox to\figwidth{\vrule\hss\r
839                                                               \vbox to \figheight{\vfill}%\r
840                                                     \vrule}\hrule}}}%\r
841 %\r
842 \def\figformat#1{\centerline{\footnotesize#1}}\r
843 %\r
844 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  End Figures  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
845 %\r
846 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Tables  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
847 %\r
848 \newcounter{table}\r
849 \newcounter{newtable}\r
850 \renewcommand\thetable{\@arabic\c@table}\r
851 \def\fps@table{tbp}\r
852 \def\ftype@table{2}\r
853 \def\ext@table{lot}\r
854 \def\fnum@table{Table~\thetable.}\r
855 \newenvironment{table}\r
856                {%\refstepcounter{newtable}\def\@currentlabel{\p@table\thenewtable}%\r
857                %\refstepcounter{newtable}\def\@currentlabel{\string\thetable}%\r
858                \@float{table}}\r
859                {\vskip5pt\end@float}\r
860 \newenvironment{table*}\r
861                {%\refstepcounter{newtable}\def\@currentlabel{\p@table\thenewtable}%\r
862                %\def\@currentlabel{\noexpand\thetable}%\r
863                \@dblfloat{table}}\r
864                {\end@dblfloat}\r
865 %\r
866 \newdimen\tabledim\r
867 %\r
868 \long\def\tbl#1#2{%\r
869  \setbox\tempbox\hbox{\tablefont #2}%\r
870  \tabledim\hsize\advance\tabledim by -\wd\tempbox\r
871     \global\divide\tabledim\tw@\r
872  \caption{#1}\r
873     \centerline{\box\tempbox}\r
874   }%\r
875 %\r
876 \newenvironment{tabnote}{%\r
877 \par\vskip5pt\tabnotefont\r
878 \@ifnextchar[{\@tabnote}{\@tabnote[]}}{%\r
879 \par\vskip-5pt}\r
880 \def\@tabnote[#1]{\def\@Tempa{#1}\leftskip\tabledim\rightskip\leftskip%\hspace*{9pt}%\r
881 \ifx\@Tempa\@empty\else{\itshape #1:}\ \fi\ignorespaces}\r
882 %\r
883 \def\Hline{%\r
884   \noalign{\ifnum0=`}\fi\hrule \@height 2\arrayrulewidth \futurelet\r
885    \@tempa\@xhline}\r
886 %\r
887 \def\x{@{\extracolsep{\fill}}}\r
888 \def\toprule{\\[-5.5pt]\Hline\\[-3.5pt]}\r
889 \def\colrule{\\[-7.5pt]\hline\\[-5pt]}\r
890 \def\botrule{\\[-7.7pt]\Hline}\r
891 \def\crule#1{\\[-9.5pt]#1\\[-2.5pt]}\r
892 %\r
893 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  End Tables %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
894 %\r
895 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Math  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
896 %\r
897 \def\biggg#1{{\hbox{$\left#1\vbox to20.5\p@{}\right.\n@space$}}}\r
898 \def\Biggg#1{{\hbox{$\left#1\vbox to23.5\p@{}\right.\n@space$}}}\r
899 %\r
900 \setlength\arraycolsep{1.5\p@}\r
901 \setlength\tabcolsep{6\p@}\r
902 \setlength\arrayrulewidth{.5\p@}\r
903 \setlength\doublerulesep{2\p@}\r
904 \setlength\tabbingsep{\labelsep}\r
905 \skip\@mpfootins = \skip\footins\r
906 \setlength\fboxsep{3\p@}\r
907 \setlength\fboxrule{.4\p@}\r
908 \@addtoreset{equation}{chapter}\r
909 \renewcommand\theequation{\arabic{equation}}%\r
910 %\def\@eqnnum{{\reset@font\rmfamily [\theequation]\hskip-1.1pt}}\r
911 %\r
912 \def\bstrut{\vrule width0pt depth6pt}\r
913 \def\tstrut{\vrule width0pt height10pt}\r
914 \jot=6pt\r
915 %\r
916 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  End Math  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
917 %\r
918 \def\appendices{\appendix\global\appendixtrue}\r
919 \newcommand{\appendix}{%\r
920    \global\appendixtrue\r
921    \let\@seccntformat\@appseccntformat\r
922    \setcounter{equation}{0}\renewcommand\theequation{\thesection\arabic{equation}}\r
923    \setcounter{section}{0}\renewcommand\thesection       {\Alph{section}}\r
924    \setcounter{subsection}{0}\renewcommand\thesubsection       {\thesection.\arabic{subsection}}\r
925    \setcounter{table}{0}\renewcommand\thetable{\thesection\@arabic\c@table}\r
926    \setcounter{figure}{0}\renewcommand\thefigure{\thesection\@arabic\c@figure}\r
927    \setcounter{theorem}{0}\renewcommand\theremark{{\itshape\thesection\arabic{remark}}\reset@font}\r
928    \setcounter{remark}{0}\renewcommand\theremark{\thesection\@arabic\c@remark}\r
929    \setcounter{algorithm}{0}\renewcommand\thealgorithm{\thesection\@arabic\c@algorithm}\r
930    \renewcommand\theproposition{\thesection.\arabic{theorem}}\r
931    \renewcommand\theproperty{\thesection.\arabic{theorem}}\r
932    \renewcommand\thecorollary{\thesection.\arabic{theorem}}\r
933    \renewcommand\thedefinition{\thesection.\arabic{theorem}}\r
934    \renewcommand\thelemma{\thesection.\arabic{theorem}}\r
935    \renewcommand\theexample{\thesection.\arabic{theorem}}\r
936    \renewcommand\thetheorem{\thesection.\arabic{theorem}}\r
937    \@addtoreset{remark}{section}\r
938    \@addtoreset{algorithm}{section}\r
939    \@addtoreset{equation}{section}\r
940    \@addtoreset{table}{section}\r
941    \@addtoreset{figure}{section}\r
942 }\r
943 %\r
944 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Begin Footnote %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
945 %\r
946 \renewcommand\footnoterule{\kern2pt\hrule width \textwidth height.25pt\kern4pt}%\r
947 \renewcommand\thefootnote{\fnsymbol{footnote}}\r
948 \@addtoreset{footnote}{page}\r
949 %\r
950 \def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}}%\r
951 \long\def\@makefntext#1{%\r
952     %\hspace*{12pt}\r
953     \@makefnmark\ignorespaces#1\par}%\r
954 %\r
955 \long\def\@makefntext#1{\parindent0pt%\r
956     \leavevmode\@makefnmark\ignorespaces#1\par}\r
957 %\r
958 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End Footnote %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
959 %\r
960 %%%%%%%%%%%%%%%%%%%%%%%%%%%  Bibliography Section  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
961 %\r
962 \newdimen\bibindent\r
963 \newdimen\bibleftmargin\r
964 \newdimen\bibitemsep\r
965 \newdimen\bibparsep\r
966 \newdimen\bibtext\r
967 \newdimen\biblabelsep\r
968 \newdimen\bibleftmargini\r
969 %\r
970 %%%%% TRUE FOR CHAPTER TITLE AND FALSE FOR SECTION TITLE %%%%%%%%\r
971 \newif\ifbibchapter\r
972 \global\bibchaptertrue\r
973 %%%%%%%% Unnumbered References %%%%%%%%%%%\r
974 \setlength\bibleftmargin  {18pt}\r
975 \setlength\bibitemsep  {0pt}\r
976 \setlength\bibparsep  {0pt}\r
977 %%%%%%%% Numbered Within Square Bracket %%%%%%%%%%%\r
978 \newif\ifnumsqure\r
979 \global\numsquretrue\r
980 \setlength\biblabelsep  {5pt}\r
981 \setlength\bibleftmargini  {5.75pt}\r
982 %%%%%%%% Numbered With Dot %%%%%%%%%%%%%%%\r
983 %\setlength\bibtext  {18pt}\r
984 %\r
985 \newenvironment{thebibliography}[1]\r
986      {\bibliofont%\r
987      \def\@tempa{#1}%\r
988     \ifbibchapter\r
989      \ifnum\@tempa=1\r
990         \section*{Reference}%\r
991      \else\r
992         \section*{References}%\r
993      \fi\r
994         \vspace*{-10pt}%\r
995     \fi%\r
996      \ifx\@tempa\@empty\r
997                             \list{}%\r
998            {\labelwidth0pt\labelsep0pt\r
999            \leftmargin\bibleftmargin%12\r
1000            \itemindent-\bibleftmargin\r
1001            \itemsep\bibitemsep\r
1002            \parsep\bibparsep\r
1003            \usecounter{enumiv}%\r
1004            \let\p@enumiv\@empty\r
1005            \renewcommand\theenumiv{\arabic{enumiv}}}%\r
1006       \else\r
1007           \setbox\tempbox\hbox{\@tempa.}\r
1008           \tempdimen\wd\tempbox\r
1009           \ifnumsqure\r
1010           \else\r
1011           \def\@biblabel##1{{\hbox to \tempdimen{\hfill##1.}}}\fi%\r
1012            \list{\@biblabel{\arabic{enumiv}}}%\r
1013            {\settowidth\labelwidth{\@biblabel{#1}}%\r
1014            \labelsep3pt\leftmargin\labelsep\r
1015            \advance\leftmargin\bibtext\r
1016                \advance\leftmargin\labelwidth\r
1017           \ifnumsqure\r
1018 %               \advance\leftmargin\labelwidth\r
1019               \fi\r
1020            \itemindent0pt\r
1021            \itemsep\bibitemsep\r
1022            \parsep\bibparsep\r
1023            \usecounter{enumiv}%\r
1024            \let\p@enumiv\@empty\r
1025            \renewcommand\theenumiv{\arabic{enumiv}}}%\r
1026      \fi\r
1027      \sloppy\clubpenalty4000\widowpenalty4000%\r
1028      \sfcode`\.=\@m}\r
1029      {\def\@noitemerr\r
1030      {\@latex@warning{Empty `thebibliography' environment}}%\r
1031      \endlist}\r
1032 \newcommand\newblock{}\r
1033 %\r
1034 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End references %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1035 %\r
1036 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Page styles  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1037 %\r
1038 \mark{{}{}}\r
1039 %\r
1040 \def\endpage#1{\gdef\@endpage{#1}}\r
1041 \endpage{}%\r
1042 \def\jname#1{\gdef\@jname{#1}}\r
1043 \jname{Engineering Optimization}\r
1044 \def\jvol#1{\gdef\@jvol{#1}}\r
1045 \gdef\@jvol{00}\r
1046 \def\articletype#1{\gdef\@articletype{#1}}\r
1047 \gdef\@articletype{\ }\r
1048 \def\jnum#1{\gdef\@jnum{#1}}\r
1049 \gdef\@jnum{00}\r
1050 \def\jmonth#1{\gdef\@jmonth{#1}}\r
1051 \gdef\@jmonth{Month}\r
1052 \def\jyear#1{\gdef\@jyear{#1}}\r
1053 \gdef\@jyear{20XX}\r
1054 \def\doi#1{\gdef\@doi{#1}}\r
1055 \def\@doi{}\r
1056 %\r
1057 \def\ps@plain{%\r
1058      \let\@mkboth\@gobbletwo\r
1059      \let\@oddfoot\@evenfoot\r
1060      \def\@oddhead{\hbox to \textwidth{{\small\begin{tabular}[t]{@{}l@{}}\r
1061                                                                                      \\ %[14.9pt]\r
1062                           {To appear in \itshape \@jname} \\Vol. \@jvol, No. \@jnum,\r
1063                           \ifx\@jmonth\empty\else\@jmonth\ \fi\@jyear,  \thepage--\@endpage\\\r
1064                           \doi\\\r
1065                           \end{tabular}}%\r
1066                           \hfill%\r
1067                           }}%\r
1068      \let\@evenhead\@oddhead\r
1069 }\r
1070 %\r
1071 \def\markboth#1#2{%\r
1072   \begingroup\r
1073    \let\label\relax \let\index\relax \let\glossary\relax\r
1074     \let\it\rm\let\textit\textup%\r
1075     \unrestored@protected@xdef\@themark {{#1}{#2}}%\r
1076     \@temptokena \expandafter{\@themark}%\r
1077     \mark{\the\@temptokena}%\r
1078   \endgroup\r
1079   \if@nobreak\ifvmode\nobreak\fi\fi}\r
1080 %\r
1081 \def\ps@headings{%\r
1082      \let\@oddfoot\@empty\let\@evenfoot\@empty\r
1083      \def\@oddhead{\hfil{\rhfont\rightmark}\hfil\llap{\foliofont\thepage}}%\r
1084      \def\@evenhead{\rlap{\foliofont\thepage}\hfil{\rhfont\leftmark}\hfil}%\r
1085      \let\@mkboth\markboth\r
1086      \def\sectionmark##1{}}\r
1087 %\r
1088 \def\ps@empty{%\r
1089             \let\@mkboth\@gobbletwo\r
1090          \def\@evenhead{}%\r
1091          \def\@oddhead{}\r
1092          \def\@oddfoot{\hfill\lower\blindfoliodrop\hbox{\thepage}\hfill}\r
1093    \let\@evenfoot\@oddfoot}\r
1094 %\r
1095 \def\ps@Empty{%\r
1096             \let\@mkboth\@gobbletwo\r
1097          \def\@evenhead{}%\r
1098          \def\@oddhead{}\r
1099          \def\@oddfoot{\hfill\lower\blindfoliodrop\hbox{\thepage}}\r
1100    \def\@evenfoot{\lower\blindfoliodrop\hbox{\thepage}\hfill}\r
1101    }\r
1102 %\r
1103 % SIDE MARGINS:\r
1104 \setlength\oddsidemargin{7.5pc}\r
1105 \setlength\evensidemargin{7.5pc}\r
1106 \setlength\marginparwidth{4pc}\r
1107 \setlength\marginparsep{0.5pc}\r
1108 %\r
1109 % VERTICAL SPACING:\r
1110 \setlength\topmargin{\z@}\r
1111 \setlength{\headheight}{14pt}\r
1112 \setlength{\headsep}   {15pt}\r
1113 \setlength{\topskip}   {9pt}\r
1114 \setlength{\footskip}  {22pt}\r
1115 %\r
1116 % DIMENSION OF TEXT:\r
1117 \setlength\textwidth{35pc}\r
1118 \setlength\textheight{672pt}\r
1119 %\r
1120 %\if@landscape\r
1121  %\setlength\textwidth{\textheight}\r
1122  %\setlength\textheight{\textwidth}\r
1123 %\fi\r
1124 %\r
1125 \setlength\columnsep{2pc}\r
1126 \setlength\columnseprule{0pt}\r
1127 \r
1128 % FOOTNOTES:\r
1129 \setlength\footnotesep{6pt}\r
1130 \setlength\skip{\footins 19.5pt plus 12pt minus 1pt}\r
1131 \r
1132 % FLOATS:\r
1133 \setlength\floatsep{ 12pt plus 5.5pt minus 1pt}\r
1134 \setlength\textfloatsep{ 12pt plus 7.5pt}\r
1135 \setlength\intextsep{ 12pt plus 5.5pt minus 2pt}\r
1136 \setlength\dblfloatsep{ 12pt plus 5.5pt minus 2pt }\r
1137 \setlength\dbltextfloatsep{ 15pt plus 4.5pt minus 3pt}\r
1138 \setlength\@fptop{ 0pt plus 0fil}\r
1139 \setlength\@fpsep{ 12pt plus 0fil }\r
1140 \setlength\@fpbot{ 0pt plus 0fil }\r
1141 \setlength\@dblfptop{ 0pt plus 0fil}\r
1142 \setlength\@dblfpsep{ 12pt plus 0fil}\r
1143 \setlength\@dblfpbot{ 0pt plus 0fil}\r
1144 \setlength\marginparpush{ 5pt }\r
1145 %\r
1146 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  End Page styles  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1147 %\r
1148 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Trimmarks  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1149 %\r
1150 \newcommand\today{\ifcase\month\or\r
1151   January\or February\or March\or April\or May\or June\or\r
1152   July\or August\or September\or October\or November\or December\fi\r
1153   \space\number\day, \number\year}\r
1154 %\r
1155 \ifprinter\r
1156   \def\draftnote{}\r
1157   \def\floatqtoa{}\r
1158   \def\Qauthor#1{}\r
1159 \else\r
1160    \def\draftnote{{\footnotesize\today\qquad\jobtag\qquad\jobname}\hfill}\r
1161    \def\floatqtoa#1{\vbox to 0pt{\vskip-20pt%\hskip\textwidth\r
1162    \llap{\vbox{\hsize6pc\bf \footnotesize\raggedright#1}}}\vskip-12pt}\r
1163 %\r
1164    \def\Qauthor#1{\marginpar{\footnotesize\bf\raggedright #1}}\r
1165 \fi\r
1166    \let\qtoa\Qauthor\r
1167 %\r
1168 \newdimen\drafttextwidth\r
1169 \drafttextwidth\textwidth\r
1170 %\r
1171 \setlength\typeheight\textheight\r
1172 \advance\typeheight\headheight\r
1173 \advance\typeheight\headsep\r
1174 \r
1175 \setlength\typewidth{\textwidth}\r
1176 \global\newdimen \trimrule\r
1177  \trimrule.1pt\r
1178 %\r
1179 \def\trimmarks{%\r
1180   \vbox to 0pt{\vskip-17pt\r
1181   \draftnote\offinterlineskip\r
1182   \parindent0pt\r
1183   \leftskip0pt\rightskip0pt}%\r
1184   \ifdraft\r
1185     \vbox to 0pt{\hsize\trimwidth\offinterlineskip\r
1186     \parindent0pt\leftskip0pt\rightskip0pt\r
1187     \vbox to \trimheight{\offinterlineskip\parindent0pt\r
1188     \hbox to \trimwidth{\vbox to 2pc{\vskip-3pc\hbox{\vrule height2pc width\trimrule}}\raisebox{2pc}{\hbox{\hskip-3pc\vrule width2pc height\trimrule}}\hfill\r
1189       \raisebox{2pc}{\vrule width2pc height\trimrule\hskip-3.25pc}\r
1190       \vbox to 2pc{\vskip-3pc\hbox{\vrule height2pc width\trimrule}}%\r
1191     }\vfill\r
1192     \hbox to \trimwidth{\hbox{\hskip-3pc\vrule height\trimrule width2pc}\vbox to 3pc{\vspace*{4pc}\hbox{\hskip1pc\vrule width\trimrule height2pc}}\hfill\r
1193     \vbox to 3pc{\vskip4pc\hbox{\vrule height2pc width\trimrule}}\rlap{\hskip1pc\vrule width2pc height\trimrule}}}}%\r
1194   \else\r
1195    \trimrule.0pt\r
1196     \vbox to 0pt{\hsize\trimwidth\offinterlineskip\r
1197     \parindent0pt\leftskip0pt\rightskip0pt\r
1198     \vbox to \trimheight{\offinterlineskip\parindent0pt\r
1199     \hbox to \trimwidth{\vbox to 2pc{\vskip-3pc\hbox{\vrule height2pc width\trimrule}}\raisebox{2pc}{\hbox{\hskip-3pc\vrule width2pc height\trimrule}}\hfill\r
1200       \raisebox{2pc}{\vrule width2pc height\trimrule\hskip-3.25pc}\r
1201       \vbox to 2pc{\vskip-3pc\hbox{\vrule height2pc width\trimrule}}%\r
1202     }\vfill\r
1203     \hbox to \trimwidth{\hbox{\hskip-3pc\vrule height\trimrule width2pc}\vbox to 3pc{\vspace*{4pc}\hbox{\hskip1pc\vrule width\trimrule height2pc}}\hfill\r
1204     \vbox to 3pc{\vskip4pc\hbox{\vrule height2pc width\trimrule}}\rlap{\hskip1pc\vrule width2pc height\trimrule}}}}%\r
1205   \fi\r
1206 %\r
1207 \insidedraftrules}\r
1208 %\r
1209 \def\insidedraftrules{%\r
1210 \vbox to 0pt{%\r
1211   \offinterlineskip\parindent0pt\r
1212   \vskip \topmargin\r
1213   \@tempdima\typeheight\r
1214   \moveright\@themargin\r
1215       \ifodd\c@page\r
1216          \vbox to\@tempdima{\hrule height\draftrule\r
1217          \vbox to 0pt{\vskip\headheight\vskip\headsep%\vskip-6pt\r
1218                       \noindent\hbox{\vrule height\draftrule width\textwidth}}%26pc\r
1219          \hbox to \typewidth{\vrule width\draftrule\hskip\textwidth\r
1220            \vrule height\@tempdima width\draftrule\hfill\vrule height\@tempdima width\draftrule}%\r
1221            \hrule height\draftrule}%\r
1222       \else\r
1223          \hbox to \textwidth{\hss\hbox to \typewidth{%\r
1224          \vbox to \@tempdima{\hrule height\draftrule\r
1225          \vbox to 0pt{\vskip\headheight\vskip\headsep%\vskip-6pt\r
1226                 \hbox{\vrule height\draftrule width\textwidth}}%\r
1227          \hbox to \typewidth{\vrule width\draftrule\r
1228          \hfill\vrule height\@tempdima width\draftrule%%\hskip\textwidth\vrule height\@tempdima width\draftrule\r
1229 }%\r
1230          \hrule height\draftrule}}}%\r
1231       \fi}}\r
1232 %\r
1233 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Version Control %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1234 %\r
1235 \def\document{\endgroup\r
1236   \ifx\@unusedoptionlist\@empty\else\r
1237     \@latex@warning@no@line{Unused global option(s):^^J%\r
1238             \@spaces[\@unusedoptionlist]}%\r
1239   \fi\r
1240   \@colht\textheight\r
1241   \@colroom\textheight \vsize\textheight\r
1242   \columnwidth\textwidth\r
1243   \@clubpenalty\clubpenalty\r
1244   \begingroup\@floatplacement\@dblfloatplacement\r
1245     \makeatletter\let\@writefile\@gobbletwo\r
1246     \global \let \@multiplelabels \relax\r
1247     \@input{\jobname.aux}%\r
1248   \endgroup\r
1249   \if@filesw\r
1250     \immediate\openout\@mainaux\jobname.aux\r
1251     \immediate\write\@mainaux{\relax}%\r
1252   \fi\r
1253   \process@table\r
1254   \let\glb@currsize\@empty  %% Force math initialization.\r
1255   \normalsize\r
1256   \everypar{}%\r
1257   \ifx\normalsfcodes\@empty\r
1258     \ifnum\sfcode`\.=\@m\r
1259       \let\normalsfcodes\frenchspacing\r
1260     \else\r
1261       \let\normalsfcodes\nonfrenchspacing\r
1262     \fi\r
1263   \fi\r
1264   \@noskipsecfalse\r
1265   \let \@refundefined \relax\r
1266   \let\AtBeginDocument\@firstofone\r
1267   \@begindocumenthook\r
1268   \ifdim\topskip<1sp\global\topskip 1sp\relax\fi\r
1269   \global\@maxdepth\maxdepth\r
1270   \global\let\@begindocumenthook\@undefined\r
1271   \ifx\@listfiles\@undefined\r
1272     \global\let\@filelist\relax\r
1273     \global\let\@addtofilelist\@gobble\r
1274   \fi\r
1275   \gdef\do##1{\global\let ##1\@notprerr}%\r
1276   \@preamblecmds\r
1277   \global\let \@nodocument \relax\r
1278   \ignorespaces}\r
1279 %\r
1280 %%%%%%%%%%%%%%%%%%%%%%%%%%%% End Version Control  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1281 %\r
1282 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Output Routine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1283 %\r
1284 \newif\ifspreadlong\r
1285 \spreadlongfalse\r
1286 \newdimen\varypageheight\r
1287 \varypageheight0pt\r
1288 %\r
1289 \def\spreadlong#1{%\r
1290    \global\varypageheight#1\r
1291    \ifodd\c@page\else\r
1292      \spreadlongtrue\enlargethispage{#1}%\r
1293    \fi}%\r
1294 %\r
1295 \def\leaflong#1{\enlargethispage{#1}}\r
1296 %\r
1297 \def\@outputpage{%\r
1298 \let\firstmark\botmark\r
1299 \begingroup           % the \endgroup is put in by \aftergroup\r
1300   \let \protect \noexpand\r
1301   \@resetactivechars\r
1302   \@parboxrestore\r
1303   \shipout \vbox{%\r
1304     \set@typeset@protect\r
1305     \aftergroup \endgroup\r
1306     \aftergroup \set@typeset@protect\r
1307                                 % correct? or just restore by ending\r
1308                                 % the group?\r
1309   \if@specialpage\r
1310     \global\@specialpagefalse\@nameuse{ps@\@specialstyle}%\r
1311   \fi\r
1312   \if@twoside\r
1313     \ifodd\count\z@ \let\@thehead\@oddhead \let\@thefoot\@oddfoot\r
1314          \let\@themargin\oddsidemargin\r
1315     \else \let\@thehead\@evenhead\r
1316        \let\@thefoot\@evenfoot \let\@themargin\evensidemargin\r
1317     \fi\r
1318   \fi\r
1319   \reset@font\r
1320   \normalsize\r
1321   \normalsfcodes\r
1322   \let\label\@gobble\r
1323   \let\index\@gobble\r
1324   \let\glossary\@gobble\r
1325   \baselineskip\z@skip \lineskip\z@skip \lineskiplimit\z@\r
1326     \@begindvi\trimmarks\r
1327     \vskip \topmargin\r
1328     \moveright\@themargin \vbox {%\r
1329       \setbox\@tempboxa \vbox to\headheight{%\r
1330         \vfil\r
1331         \color@hbox\r
1332           \normalcolor\r
1333           \hb@xt@\textwidth{\@thehead}%\r
1334         \color@endbox\r
1335         }%\r
1336       \dp\@tempboxa \z@\r
1337       \box\@tempboxa\r
1338       \vskip \headsep\r
1339       \box\@outputbox\r
1340       \baselineskip \footskip\r
1341       \color@hbox\r
1342         \normalcolor\r
1343         \hb@xt@\textwidth{\@thefoot}%\r
1344       \color@endbox\r
1345       }%\r
1346     }%\r
1347   \global \@colht \textheight\r
1348   %      \endgroup\r
1349   \stepcounter{page}%\r
1350    \ifspreadlong\enlargethispage{\varypageheight}\global\spreadlongfalse\varypageheight0pt\fi\r
1351 %  \let\firstmark\botmark\r
1352 }\r
1353 %\r
1354 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% End Output Routine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1355 %\r
1356 \def\gray{\special{color CMYK 0 0 0 0.5}}\r
1357 \def\@questionmark{\vbox to 0pt{\vskip13pc\hskip-5pc\r
1358                   \hbox to \textwidth{\special{color push}\gray\fontsize{570}{570}\selectfont ?\r
1359                   \special{color pop}\hss}}}\r
1360 \def\questionmark#1{\xdef\@questionmark{#1}}%\r
1361 %\r
1362 \def\enddocument{%\r
1363    \@enddocumenthook\r
1364    \@checkend{document}%\r
1365         \immediate\write\@mainaux{\string\endpage{\thepage}}\r
1366 %\r
1367    \clearpage\r
1368    \begingroup\r
1369      \if@filesw\r
1370        \immediate\write\@mainaux{\string\questionmark{}}%\r
1371        \immediate\closeout\@mainaux\r
1372        \let\@setckpt\@gobbletwo\r
1373        \let\@newl@bel\@testdef\r
1374        \@tempswafalse\r
1375        \makeatletter \input\jobname.aux\r
1376      \fi\r
1377      \@dofilelist\r
1378      \ifdim \font@submax >\fontsubfuzz\relax\r
1379        \@font@warning{Size substitutions with differences\MessageBreak\r
1380                   up to \font@submax\space have occurred.\@gobbletwo}%\r
1381      \fi\r
1382      \@defaultsubs\r
1383      \@refundefined\r
1384      \if@filesw\r
1385        \ifx \@multiplelabels \relax\r
1386          \if@tempswa\r
1387            \@latex@warning@no@line{Label(s) may have changed.\r
1388                Rerun to get cross-references right}%\r
1389          \fi\r
1390        \else\r
1391          \@multiplelabels\r
1392        \fi\r
1393      \fi\r
1394    \endgroup\r
1395 %   \gdef\endpage{\thepage}\r
1396    \deadcycles\z@\@@end}\r
1397 %\r
1398 \def\longpage{\enlargethispage{\baselineskip}}\r
1399 \def\shortpage{\enlargethispage{-\baselineskip}}\r
1400 %\r
1401 %%%%%%%%%%%%%%%%%%%%%%%%%%  Theorem-like environments  %%%%%%%%%%%%%%%%%%%%%%%%%%\r
1402 %\r
1403 \newif\ifTheorem\r
1404 \global\Theoremfalse\r
1405 \newif\ifremark\global\remarkfalse\r
1406 \newif\ifalgorithm\global\algorithmfalse\r
1407 %\r
1408 \newcounter{theorem}[section]\r
1409 \renewcommand\thetheorem{\thesection.\arabic{theorem}}\r
1410 %\r
1411 \newcounter{remark}[chapter]\r
1412 \renewcommand\theremark{\@arabic\c@remark}\r
1413 \def\fnum@remark{Remark~\theremark:}\r
1414 %\r
1415 \newcounter{algorithm}[chapter]\r
1416 \renewcommand\thealgorithm{\@arabic\c@algorithm}\r
1417 \def\fnum@algorithm{Algorithm~\thealgorithm:}\r
1418 %\r
1419 \newif\ifExample\r
1420 \global\Examplefalse\r
1421 %\r
1422 \newif\ifrunon\runonfalse\r
1423 %\r
1424 \def\newtheorem#1{\@starthm{#1}\@ifnextchar[{\@othm{#1}}{\@nthm{#1}}}\r
1425 \def\@starthm#1{\@namedef{#1*}{\@beginstarthm{#1}}%\r
1426                                                                 \@namedef{end#1*}{\@endstarthm{#1}}}\r
1427 %\r
1428 \def\@starthm#1{\@namedef{#1*}{\@beginstarthm{#1}}%\r
1429                                                                 \@namedef{end#1*}{\@endstarthm}}\r
1430 %\r
1431 \def\@beginstarthm#1{\@ifnextchar[{\@opargbeginstarthm{#1}}{\@opargbeginstarthm{#1}[]}}\r
1432 %\r
1433 \def\@opargbeginstarthm#1[#2]{\list{}{\topsep6pt plus2pt\r
1434  \def\@tempaa{#2}%\r
1435     \labelwidth0pt\labelsep9.5pt\r
1436     \leftmargin0pt\r
1437     \listparindent\parindent\r
1438  \edef\@Tempa{\csname #1name\endcsname}\r
1439     \def\makelabel##1{##1.}}\r
1440       \item[\hskip \labelsep{\csname#1headfont\endcsname \@Tempa{}\ifx\@tempaa\@empty\else\ (#2)\fi}]\r
1441       \csname#1font\endcsname}\r
1442 %\r
1443 \def\@endstarthm{\endlist}\r
1444 %\r
1445 \def\THEOREM{theorem}\r
1446 \def\ALOGORITHM{algorithm}\r
1447 \def\REMARK{remark}\r
1448 \def\check#1{\gdef\@check{#1}}\check{}\r
1449 %\r
1450 \def\@xnthm#1#2[#3]{%\r
1451   \expandafter\@ifdefinable\csname #1\endcsname\r
1452     {\@definecounter{#1}\@newctr{#1}[#3]%\r
1453      \expandafter\xdef\csname the#1\endcsname{%\r
1454        \expandafter\noexpand\csname the#3\endcsname \@thmcountersep\r
1455           \@thmcounter{#1}}%\r
1456 %                \refstepcounter{#1}%\r
1457                 \stepcounter{theorem}\r
1458      \check{#1}\r
1459      \ifx\REMARK\@check%\r
1460         \global\@namedef{#1}{\@thm{#1}{#2}{#1}}%\r
1461      \else%\r
1462         \ifx\ALOGORITHM\@check%\r
1463            \global\@namedef{#1}{\@thm{#1}{#2}{#1}}%\r
1464      \else%\r
1465         \global\@namedef{#1}{\@thm{theorem}{#2}{#1}}%\r
1466      \fi\fi%\r
1467      \global\@namedef{end#1}{\@endtheorem}}}\r
1468 \def\@ynthm#1#2{%\r
1469   \expandafter\@ifdefinable\csname #1\endcsname\r
1470     {\@definecounter{#1}%\r
1471 %    \stepcounter{theorem}\r
1472     \refstepcounter{#1}%\r
1473      \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}%\r
1474      \check{#1}\r
1475      \ifx\REMARK\@check%\r
1476         \global\@namedef{#1}{\@thm{#1}{#2}{#1}}%\r
1477      \else%\r
1478         \ifx\ALOGORITHM\@check%\r
1479            \global\@namedef{#1}{\@thm{#1}{#2}{#1}}%\r
1480      \else%\r
1481         \global\@namedef{#1}{\@thm{theorem}{#2}{#1}}%\r
1482      \fi\fi%\r
1483      \global\@namedef{end#1}{\@endtheorem}}}\r
1484 \def\@othm#1[#2]#3{%\r
1485   \@ifundefined{c@#2}{\@nocounterr{#2}}%\r
1486     {\expandafter\@ifdefinable\csname #1\endcsname\r
1487     {\global\@namedef{the#1}{\@nameuse{the#2}}%\r
1488   \global\@namedef{#1}{\@thm{#2}{#3}{#1}}%\r
1489   \global\@namedef{end#1}{\@endtheorem}}}}\r
1490 \def\@thm#1#2#3{%\r
1491 %    \stepcounter{theorem}\r
1492 \refstepcounter{#1}%\r
1493   \@ifnextchar[{\@ythm{#1}{#2}{#3}}{\@xthm{#1}{#2}{#3}}}\r
1494 %\r
1495 \def\@xthm#1#2#3{%\r
1496   \@opargbegintheorem{#2}{\csname the#1\endcsname}{}{#3}\ignorespaces}\r
1497 \def\@ythm#1#2#3[#4]{%\r
1498   \@opargbegintheorem{#2}{\csname the#1\endcsname}{#4}{#3}\ignorespaces}\r
1499 %\r
1500 \def\@endtheorem{\par\addvspace{6pt plus2pt}\endlist}%\r
1501 %\r
1502 \def\@opargbegintheorem#1#2#3#4{\par\addvspace{6pt plus2pt}%\r
1503 %   \renewcommand\labelenumi{{\itshape(\theenumi)}}%\r
1504 %   \def\labelenumii{{\upshape(\theenumii)}}%\r
1505    \def\@tempa{#3}%\r
1506    \check{#1}%\r
1507 %   \hangindent\parindenta\r
1508    {\csname #4headfont\endcsname\ifx\@tempa\empty\noindent#1\ #2\hskip6pt\else\noindent#1\ #2\ {\reset@font#3}\fi}%\r
1509    \csname #4font\endcsname\ignorespaces}%\r
1510 %\r
1511 \def\@endtheorem{\par\addvspace{6pt plus2pt}}%\r
1512 %\r
1513 %%%%%%%%%%\r
1514 %\r
1515 \def\remarkname{Remark}%\r
1516 \newtheorem{remark}{\global\remarktrue{\remarkname}}[chapter]%\r
1517 \def\theremark{{\arabic{remark}}}\r
1518 \def\remarkfont{\hbox{\hspace{-4pt}$\,\,\,\,\,$}}\r
1519 \def\remarkheadfont{\itshape}\r
1520 %\r
1521 \def\algorithmname{Algorithm}\r
1522 \newtheorem{algorithm}{\global\algorithmtrue{\algorithmname}}[chapter]\r
1523 \def\thealgorithm{{\arabic{algorithm}}}\r
1524 \def\algorithmfont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}}\r
1525 \def\algorithmheadfont{\itshape}\r
1526 %%%%%%%%%%\r
1527 %\r
1528 \def\examplename{Example}\r
1529 \newtheorem{example}{\scshape\examplename}[section]\r
1530 \def\theexample{\thesection.\arabic{theorem}}\r
1531 \def\examplefont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1532 %\r
1533 \def\theoremname{\scshape Theorem}\r
1534 \newtheorem{theorem}{\theoremname}\r
1535 \def\thetheorem{\thesection.\arabic{theorem}}\r
1536 \def\theoremfont{\hbox{\hspace{-4pt}$\,\,\,\,\,$}\itshape}\r
1537 %\def\theoremheadfont{\bfseries}\r
1538 %\r
1539 \def\lemmaname{Lemma}\r
1540 \newtheorem{lemma}{\scshape\lemmaname}[section]\r
1541 \def\thelemma{\thesection.\arabic{theorem}}\r
1542 \def\lemmafont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1543 %\def\lemmaheadfont{\bfseries}\r
1544 %\r
1545 \def\propositionname{\scshape Proposition}\r
1546 \newtheorem{proposition}{\propositionname}[section]\r
1547 \def\theproposition{\thesection.\arabic{theorem}}\r
1548 \def\propositionfont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1549 %\def\propositionheadfont{\bfseries}\r
1550 %\r
1551 \def\propertyname{\scshape Property}\r
1552 \newtheorem{property}{\propertyname}[section]\r
1553 \def\theproperty{\thesection.\arabic{theorem}}\r
1554 \def\propertyfont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1555 %\def\propertyheadfont{\bfseries}\r
1556 %\r
1557 \def\corollaryname{\scshape Corollary}\r
1558 \newtheorem{corollary}{\corollaryname}[section]\r
1559 \def\thecorollary{\arabic{theorem}}\r
1560 \def\corollaryfont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1561 %\def\corollaryheadfont{\bfseries}\r
1562 %\r
1563 \def\definitionname{\scshape  Def{}inition}\r
1564 \newtheorem{definition}{\definitionname}[section]\r
1565 \def\thedefinition{\thesection.\arabic{theorem}}\r
1566 \def\definitionfont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1567 %\def\definitionheadfont{\scseries}\r
1568 %\r
1569 \def\notationname{Notation}\r
1570 \newtheorem{notation}{\notationname}[section]\r
1571 \def\thenotation{\thesection.\arabic{theorem}}\r
1572 \def\notationfont{\hbox{\hspace{-5pt}$\,\,\,\,\,$}\itshape}\r
1573 \def\notationheadfont{\scseries}\r
1574 %\r
1575 %%\def\assumptionname{Assumption}\r
1576 %%\newtheorem{assumption}{\assumptionname}[section]\r
1577 %%\def\theassumption{\arabic{theorem}}\r
1578 %%\def\assumptionfont{\hbox{\hspace{-5pt}$\bm{:}\,\,\,\,\,$}}\r
1579 %%\def\assumptionheadfont{\itshape}\r
1580 %\r
1581 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Proof  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1582 %\r
1583 \font\QEDlogofont=msam10 at 10pt\r
1584 \def\QEDlogo{\hbox{\QEDlogofont\char'003}}\r
1585 \def\QEDblogo{\hbox{\QEDlogofont\char'004}}\r
1586 \newif\ifnologo\nologofalse\r
1587 \newif\iflogo\r
1588 \newif\ifblogo\blogofalse\r
1589 \newif\iftopprhead\topprheadfalse\r
1590 \def\prheadfont{\it\leftskip-1pt plus1fill\rightskip0pt plus1fill}\r
1591 \def\prhead#1{\par%\addvspace{6.5pt plus2pt}\r
1592 \noindent{\prheadfont #1\par}}\r
1593 \def\prooffont{\normalsize}\r
1594 \newenvironment{proof}{\par\addvspace{6pt plus2pt}%\topprheadtrue\par\iftopprhead\vspace*{-13pt}\else%\r
1595 \par%\addvspace{6.5pt plus2pt}%\fi%\r
1596 \noindent\prooffont{\itshape Proof}\hskip6pt\ignorespaces}{%\r
1597    \ifblogo\hskip1.2pt\r
1598             %\QEDblogo\r
1599             %\blacksquare$\r
1600    \else\r
1601    \ifnologo\r
1602    \else\r
1603    \hfill\r
1604             %\QEDlogo\r
1605             $\blacksquare$\r
1606    \fi\fi\r
1607 \par\addvspace{6pt plus2pt}\global\topprheadfalse}%\r
1608 \r
1609 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%  Initialization  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\r
1610 %\r
1611 \pagestyle{empty}\r
1612 \pagenumbering{arabic}\r
1613 \frenchspacing\r
1614 \sloppy\r
1615 \onecolumn\r
1616 \ifprinter\r
1617 \voffset-54pt\r
1618 \hoffset-1in\r
1619 \else\r
1620 \voffset-54pt\r
1621 \hoffset-1in\r
1622 \fi\r
1623 \r
1624 \usepackage{amsfonts,amsmath,amssymb,amsbsy,epsfig,graphicx,natbib,rotating,subfigure}\r
1625 \r
1626 \bibpunct[, ]{(}{)}{;}{a}{}{,}\r
1627 \let\bibfont\relax\r
1628 \def\bibfont{\fontsize{10}{12}\selectfont}\r
1629 \r
1630 \endinput\r