]> AND Private Git Repository - canny.git/blob - NSP1.cls
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
raph
[canny.git] / NSP1.cls
1 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
2 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
3 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
4 \NeedsTeXFormat{LaTeX2e}[2012/01/01]\r
5 \ProvidesClass{NSP}[2012/01/01]\r
6 \newcommand\@ptsize{}\r
7 \newif\if@restonecol\r
8 \newif\if@titlepage\r
9 \@titlepagefalse\r
10 \DeclareOption{a4paper}\r
11    {\setlength\paperheight {297mm}%\r
12     \setlength\paperwidth  {210mm}}\r
13 \DeclareOption{10pt}{\renewcommand\@ptsize{0}}\r
14 \DeclareOption{twoside}{\@twosidetrue  \@mparswitchtrue}\r
15 \DeclareOption{draft}{\setlength\overfullrule{5pt}}\r
16 \DeclareOption{final}{\setlength\overfullrule{0pt}}\r
17 \DeclareOption{twocolumn}{\@twocolumntrue}\r
18 \DeclareOption{fleqn}{\input{fleqn.clo}\AtEndOfClass{\mathindent\z@}}\r
19 \DeclareOption{leqno}{\input{leqno.clo}}%ananfang\r
20 \let\if@mathematic\iftrue\r
21 \let\if@numbook\iffalse\r
22 \DeclareOption{numbook}{\let\if@envcntsect\iftrue\r
23   \AtEndOfPackage{%\r
24    \renewcommand\thefigure{\thesection.\@arabic\c@figure}%\r
25    \renewcommand\thetable{\thesection.\@arabic\c@table}%\r
26    \renewcommand\theequation{\thesection.\@arabic\c@equation}%\r
27    \@addtoreset{figure}{section}%\r
28    \@addtoreset{table}{section}%\r
29    \@addtoreset{equation}{section}%\r
30   }%\r
31 }\r
32 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
33 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
34 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
35 \DeclareOption{openbib}{%\r
36   \AtEndOfPackage{%\r
37    \renewcommand\@openbib@code{%\r
38       \advance\leftmargin\bibindent\r
39       \itemindent -\bibindent\r
40       \listparindent \itemindent\r
41       \parsep \z@\r
42       }%\r
43    \renewcommand\newblock{\par}}%\r
44 }\r
45 %\r
46 \let\if@runhead\iffalse\r
47 \DeclareOption{runningheads}{\let\if@runhead\iftrue}\r
48 \let\if@smartrunh\iffalse\r
49 \DeclareOption{smartrunhead}{\let\if@smartrunh\iftrue}\r
50 \DeclareOption{nosmartrunhead}{\let\if@smartrunh\iffalse}\r
51 \let\if@envcntreset\iffalse\r
52 \DeclareOption{envcountreset}{\let\if@envcntreset\iftrue}\r
53 \let\if@envcntsame\iffalse\r
54 \DeclareOption{envcountsame}{\let\if@envcntsame\iftrue}\r
55 \let\if@envcntsect\iffalse\r
56 \DeclareOption{envcountsect}{\let\if@envcntsect\iftrue}\r
57 \let\if@referee\iffalse\r
58 \DeclareOption{referee}{\let\if@referee\iftrue}\r
59 \def\makereferee{\def\baselinestretch{2}}\r
60 \let\if@instindent\iffalse\r
61 \DeclareOption{instindent}{\let\if@instindent\iftrue}\r
62 \let\if@smartand\iffalse\r
63 \DeclareOption{smartand}{\let\if@smartand\iftrue}\r
64 \let\if@spthms\iftrue\r
65 \DeclareOption{nospthms}{\let\if@spthms\iffalse}\r
66 \let\switch@texts\relax\r
67 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
68 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
69 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
70 \let\journalopt\@empty\r
71 \DeclareOption*{\InputIfFileExists{\CurrentOption.clo}{%\r
72 \let\journalopt\CurrentOption}{%\r
73 \ClassWarning{NSP}{Specified option or subpackage\r
74 "\CurrentOption" not found -}\OptionNotUsed}}\r
75 \ExecuteOptions{final,twocolumn,fleqn,a4paper,twoside,10pt,instindent}\r
76 \ProcessOptions\relax\r
77 \r
78 \RequirePackage{color}\r
79 \RequirePackage{graphicx}\r
80 \RequirePackage{lastpage}\r
81 \RequirePackage[colorlinks=true,linkcolor=blue,citecolor=blue,citebordercolor={1 1 1},urlcolor=blue]{hyperref}\r
82 \RequirePackage{url}\r
83 \r
84 \r
85 \r
86 \DeclareMathSymbol{\Gamma}{\mathalpha}{letters}{"00}\r
87 \DeclareMathSymbol{\Delta}{\mathalpha}{letters}{"01}\r
88 \DeclareMathSymbol{\Theta}{\mathalpha}{letters}{"02}\r
89 \DeclareMathSymbol{\Lambda}{\mathalpha}{letters}{"03}\r
90 \DeclareMathSymbol{\Xi}{\mathalpha}{letters}{"04}\r
91 \DeclareMathSymbol{\Pi}{\mathalpha}{letters}{"05}\r
92 \DeclareMathSymbol{\Sigma}{\mathalpha}{letters}{"06}\r
93 \DeclareMathSymbol{\Upsilon}{\mathalpha}{letters}{"07}\r
94 \DeclareMathSymbol{\Phi}{\mathalpha}{letters}{"08}\r
95 \DeclareMathSymbol{\Psi}{\mathalpha}{letters}{"09}\r
96 \DeclareMathSymbol{\Omega}{\mathalpha}{letters}{"0A}\r
97 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
98 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
99 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
100 \setlength\parindent{15\p@}\r
101 \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}\r
102 \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}\r
103 \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}\r
104 \setlength\headheight{12\p@}%12\r
105 \setlength\headsep   {16.74dd}\r
106 \setlength\topskip   {10\p@}\r
107 \setlength\footskip{30\p@}\r
108 \setlength\maxdepth{.5\topskip}\r
109 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
110 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
111 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
112 \@settopoint\textwidth\r
113 \setlength\marginparsep {10\p@}\r
114 \setlength\marginparpush{5\p@}\r
115 \setlength\topmargin{-10pt}\r
116 \if@twocolumn\r
117    \setlength\oddsidemargin {-30\p@}\r
118    \setlength\evensidemargin{-30\p@}\r
119 \else\r
120    \setlength\oddsidemargin {\z@}\r
121    \setlength\evensidemargin{\z@}\r
122 \fi\r
123 \setlength\marginparwidth  {48\p@}\r
124 \setlength\footnotesep{8\p@}\r
125 \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}\r
126 \setlength\floatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}\r
127 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}\r
128 \setlength\intextsep   {20\p@ \@plus 2\p@ \@minus 2\p@}\r
129 \setlength\dblfloatsep    {12\p@ \@plus 2\p@ \@minus 2\p@}\r
130 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}\r
131 \setlength\@fptop{0\p@}\r
132 \setlength\@fpsep{12\p@ \@plus 2\p@ \@minus 2\p@}\r
133 \setlength\@fpbot{0\p@ \@plus 1fil}\r
134 \setlength\@dblfptop{0\p@}\r
135 \setlength\@dblfpsep{12\p@ \@plus 2\p@ \@minus 2\p@}\r
136 \setlength\@dblfpbot{0\p@ \@plus 1fil}\r
137 \setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}\r
138 \def\@listi{\leftmargin\leftmargini\r
139             \parsep \z@\r
140             \topsep 6\p@ \@plus2\p@ \@minus4\p@\r
141             \itemsep\parsep}\r
142 \let\@listI\@listi\r
143 \@listi\r
144 \def\@listii {\leftmargin\leftmarginii\r
145               \labelwidth\leftmarginii\r
146               \advance\labelwidth-\labelsep\r
147               \topsep    \z@\r
148               \parsep    \topsep\r
149               \itemsep   \parsep}\r
150 \def\@listiii{\leftmargin\leftmarginiii\r
151               \labelwidth\leftmarginiii\r
152               \advance\labelwidth-\labelsep\r
153               \topsep    \z@\r
154               \parsep    \topsep\r
155               \itemsep   \parsep}\r
156 \def\@listiv {\leftmargin\leftmarginiv\r
157               \labelwidth\leftmarginiv\r
158               \advance\labelwidth-\labelsep}\r
159 \def\@listv  {\leftmargin\leftmarginv\r
160               \labelwidth\leftmarginv\r
161               \advance\labelwidth-\labelsep}\r
162 \def\@listvi {\leftmargin\leftmarginvi\r
163               \labelwidth\leftmarginvi\r
164               \advance\labelwidth-\labelsep}\r
165 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
166 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
167 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
168 \setlength\lineskip{1\p@}\r
169 \setlength\normallineskip{1\p@}\r
170 \renewcommand\baselinestretch{}\r
171 \setlength\parskip{0\p@ \@plus \p@}\r
172 \@lowpenalty   51\r
173 \@medpenalty  151\r
174 \@highpenalty 301\r
175 \setcounter{topnumber}{4}\r
176 \renewcommand\topfraction{.9}\r
177 \setcounter{bottomnumber}{2}\r
178 \renewcommand\bottomfraction{.7}\r
179 \setcounter{totalnumber}{6}\r
180 \renewcommand\textfraction{.1}\r
181 \renewcommand\floatpagefraction{.85}\r
182 \setcounter{dbltopnumber}{3}\r
183 \renewcommand\dbltopfraction{.85}\r
184 \renewcommand\dblfloatpagefraction{.85}\r
185 \def\ps@headings{%\r
186     \let\@oddfoot\@empty\let\@evenfoot\@empty\r
187     \def\@evenhead{\small\rlap{\thepage}\hfil\leftmark\unskip}%\r
188     \def\@oddhead{\small\rightmark\hfil\llap{\thepage}}%\r
189     \let\@mkboth\@gobbletwo\r
190     \let\sectionmark\@gobble\r
191     \let\subsectionmark\@gobble\r
192     }\r
193 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
194 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
195 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
196 \def\setitemindent#1{\settowidth{\labelwidth}{#1}%\r
197         \leftmargini\labelwidth\r
198         \advance\leftmargini\labelsep\r
199    \def\@listi{\leftmargin\leftmargini\r
200         \labelwidth\leftmargini\advance\labelwidth by -\labelsep\r
201         \parsep=\parskip\r
202         \topsep=\medskipamount\r
203         \itemsep=\parskip \advance\itemsep by -\parsep}}\r
204 \def\setitemitemindent#1{\settowidth{\labelwidth}{#1}%\r
205         \leftmarginii\labelwidth\r
206         \advance\leftmarginii\labelsep\r
207 \def\@listii{\leftmargin\leftmarginii\r
208         \labelwidth\leftmarginii\advance\labelwidth by -\labelsep\r
209         \parsep=\parskip\r
210         \topsep=\z@\r
211         \itemsep=\parskip \advance\itemsep by -\parsep}}\r
212 % labels of description\r
213 \def\descriptionlabel#1{\hspace\labelsep #1\hfil}\r
214 \r
215 \def\description{\@ifnextchar[{\@describe}{\list{}{\labelwidth\z@\r
216           \itemindent-\leftmargin \let\makelabel\descriptionlabel}}}\r
217 \let\enddescription\endlist\r
218 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
219 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
220 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
221 \def\describelabel#1{#1\hfil}\r
222 \def\@describe[#1]{\relax\ifnum\@listdepth=0\r
223 \setitemindent{#1}\else\ifnum\@listdepth=1\r
224 \setitemitemindent{#1}\fi\fi\r
225 \list{--}{\let\makelabel\describelabel}}\r
226 %\r
227 \newdimen\logodepth\r
228 \logodepth=2.2cm\r
229 \newdimen\headerboxheight\r
230 \headerboxheight=180pt % 18 10.5dd-lines - 2\baselineskip\r
231 \newdimen\betweenumberspace          % dimension for space between\r
232 \betweenumberspace=3.33pt            % number and text of titles.\r
233 \newdimen\aftertext                  % dimension for space after\r
234 \aftertext=5pt                       % text of title.\r
235 \newdimen\headlineindent             % dimension for space between\r
236 \headlineindent=1.166cm              % number and text of headings.\r
237 \def\andname{and}\r
238 \if@mathematic\r
239    \def\runinend{\enspace}\r
240    \def\floatcounterend{\enspace}\r
241    \def\sectcounterend{}\r
242 \else\r
243    \def\runinend{.}\r
244    \def\floatcounterend{.\ }\r
245    \def\sectcounterend{.}\r
246 \fi\r
247 \def\lastandname{, and}\r
248 \def\mailname{Corresponding author e-mail:}\r
249 \def\email#1{{e-mail: #1}}\r
250 \def\keywordname{{\bfseries Abstract:}\enspace}\r
251 \def\abstracttext#1{\gdef\@abstracttext{#1}}\r
252 \def\@abstracttext{}\r
253 \def\setabstracttext{%\r
254   \ifx\@abstracttext\@empty\else\r
255     \par\addvspace\baselineskip\noindent\keywordname\r
256     \ignorespaces\@abstracttext\r
257   \fi\r
258 }\r
259 \def\receivedname{{\normalfont Received:}\ }\r
260 \def\received#1{\gdef\@received{#1}}\r
261 \def\@received{}\r
262 \def\setreceived{%\r
263   \ifx\@received\@empty\else\r
264     \par\noindent\receivedname\r
265     \ignorespaces\@received\r
266   \fi\r
267 }\r
268 \def\revisedname{{, \normalfont Revised:}\ }\r
269 \def\revised#1{\gdef\@revised{#1}}\r
270 \def\@revised{}\r
271 \def\setrevised{%\r
272   \ifx\@revised\@empty\else\r
273     \revisedname\r
274     \ignorespaces\@revised\r
275   \fi\r
276 }\r
277 \def\acceptedname{{, \normalfont Accepted:}\ }\r
278 \def\accepted#1{\gdef\@accepted{#1}}\r
279 \def\@accepted{}\r
280 \def\setaccepted{%\r
281   \ifx\@accepted\@empty\else\r
282     \acceptedname\r
283     \ignorespaces\@accepted\r
284   \fi\r
285 }\r
286 \def\publishedname{{\normalfont Published online:}\ }\r
287 \def\published#1{\gdef\@published{#1}}\r
288 \def\@published{}\r
289 \def\setpublished{%\r
290   \ifx\@published\@empty\else\r
291     \par\noindent\publishedname\r
292     \ignorespaces\@published\r
293   \fi\r
294 }\r
295 \def\keywordsname{{\bfseries Keywords:}\enspace}\r
296 \def\keywords#1{\gdef\@keywords{#1}}\r
297 \def\@keywords{}\r
298 \def\setkeywords{%\r
299   \ifx\@keywords\@empty\else\r
300     \par\addvspace\baselineskip\noindent\keywordsname\r
301     \ignorespaces\@keywords\r
302   \fi\r
303 }\r
304 \def\abstracttext@keywords{%\r
305   \@tempswafalse\r
306   \ifx\@abstracttext\@empty\r
307   \ifx\@keywords\@empty\else\@tempswatrue\fi\r
308   \else\@tempswatrue\fi\r
309   \if@tempswa\r
310     \par\addvspace{\baselineskip}%\r
311     \noindent{\color{rulecolor}\rule{\textwidth}{2pt}}%\r
312     \normalcolor\setabstracttext\setkeywords\r
313     \par\addvspace{\ht\strutbox}%\r
314     \noindent{\color{rulecolor}\rule{\textwidth}{2pt}}\par\r
315   \fi\r
316 }\r
317 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
318 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
319 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
320 \newcounter{inst}\r
321 \newcounter{auth}\r
322 \def\authdepth{2}\r
323 \newdimen\instindent\r
324 \newbox\authrun\r
325 \newtoks\authorrunning\r
326 \newbox\titrun\r
327 \newtoks\titlerunning\r
328 \def\authorfont{\itshape}%hhh\r
329 \r
330 \def\combirunning#1{\gdef\@combi{#1}}\r
331 \def\@combi{}\r
332 \newbox\combirun\r
333 %\r
334 \def\ps@last{\def\@evenhead{\small\rlap{\thepage}\hfil\r
335 \lastevenhead}}\r
336 \newcounter{lastpage}\r
337 \def\islastpageeven{\@ifundefined{lastpagenumber}\r
338 {\setcounter{lastpage}{0}}{\setcounter{lastpage}{\lastpagenumber}}\r
339 \ifnum\value{lastpage}>0\r
340    \ifodd\value{lastpage}%\r
341    \else\r
342       \if@smartrunh\r
343          \thispagestyle{last}%\r
344       \fi\r
345    \fi\r
346 \fi}\r
347 \def\getlastpagenumber{\clearpage\r
348 \addtocounter{page}{-1}%\r
349    \immediate\write\@auxout{\string\gdef\string\lastpagenumber{\thepage}}%\r
350    \immediate\write\@auxout{\string\newlabel{LastPage}{{}{\thepage}}}%\r
351    \addtocounter{page}{1}}\r
352 \r
353 \def\journalname#1{\gdef\@journalname{#1}}\r
354 \r
355 \def\dedication#1{\gdef\@dedic{#1}}\r
356 \def\@dedic{}\r
357 \r
358 \let\@date\@empty\r
359 \r
360 \def\institute#1{\gdef\@institute{#1}}\r
361 \r
362 \def\institutename{\par\r
363  \begingroup\r
364  \parindent=0pt\r
365  \parskip=0pt\r
366  \setcounter{inst}{1}%\r
367  \def\and{\par\stepcounter{inst}%\r
368  \if@instindent\hangindent\instindent\fi\r
369  \noindent\r
370  %\hbox to\instindent{\hss\smash{$^{\theinst}$}\enspace}\ignorespaces}%\r
371  \hbox%hhh\r
372 {$^{\theinst}$\,}\ignorespaces}%\r
373  \setbox0=\vbox{\def\thanks##1{}\@institute}\r
374  \ifnum\value{inst}>9\relax\setbox0=\hbox{$^{88}$\enspace}%\r
375                  \else\setbox0=\hbox{$^{8}$\enspace}\fi\r
376  \instindent=\wd0\relax\r
377  \ifnum\value{inst}=1\relax\r
378  \else\r
379    \setcounter{inst}{1}%\r
380    \if@instindent\hangindent\instindent\fi\r
381    \noindent\r
382    \hbox%hhh\r
383 {$^{\theinst}$\,}\ignorespaces\r
384  \fi\r
385  \small\r
386  \ignorespaces\r
387  \@institute\par\r
388  \endgroup}\r
389 \r
390 \def\offprints#1{\begingroup\r
391 \def\protect{\noexpand\protect\noexpand}\xdef\@thanks{\@thanks\r
392 \protect\footnotetext[0]{\unskip\hskip-15pt{\itshape Send offprint requests\r
393 to\/}: \ignorespaces#1}}\endgroup\ignorespaces}\r
394 \r
395 \def\mail#1{\gdef\@mail{#1}}\r
396 \def\@mail{}\r
397 \r
398 \def\@thanks{}\r
399 \r
400 \def\@fnsymbol#1{\ifcase#1\or\star\or{\star\star}\or{\star\star\star}%\r
401    \or \dagger\or \ddagger\or\r
402    \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger\r
403    \or \ddagger\ddagger \else\@ctrerr\fi\relax}\r
404 \r
405 \def\inst#1{\unskip\,$^{#1}$}\r
406 \def\fnmsep{\unskip$^,$}\r
407 \r
408 \def\subtitle#1{\gdef\@subtitle{#1}}\r
409 \def\@subtitle{}\r
410 \r
411 \def\headnote#1{\gdef\@headnote{\normalfont\small#1}}%%%hhh\r
412 \def\@headnote{}\r
413 \def\abstract#1{\gdef\@abstract{\small{\bf Abstract:} #1}}%%%hhh\r
414 \def\@abstract{}\r
415 \let\endabstract\relax\r
416 \r
417 %\newcommand*{\titlefigure}[2][]{\gdef\@titlefigure{\vspace*{-3mm}\includegraphics[#1]{#2}}}\r
418 %\def\@titlefigure{}\titlefigure{x}\r
419 \r
420 \r
421 \def\titlefigurecaption#1{\gdef\@titlefigurecaption{\small #1}}\r
422 \def\@titlefigurecaption{}\r
423 \r
424 \def\ch@ckobl#1#2{\@ifundefined{@#1}\r
425  {\typeout{Warning: Missing\r
426 \expandafter\string\csname#1\endcsname}%\r
427   \csname #1\endcsname{#2}}\r
428  {}}\r
429 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
430 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
431 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
432 \def\ProcessRunnHead{%\r
433     \def\\{\unskip\ \ignorespaces}\def\inst##1{\unskip{}}%\r
434     \def\thanks##1{\unskip{}}\def\fnmsep{\unskip}%\r
435     \instindent=\textwidth\r
436     \advance\instindent by-\headlineindent\r
437     \if!\the\titlerunning!\else\r
438       \edef\@title{\the\titlerunning}%\r
439     \fi\r
440     \global\setbox\titrun=\hbox{\small\rmfamily\unboldmath\ignorespaces\@title\r
441                                 \unskip}%\r
442     \ifdim\wd\titrun>\instindent\r
443        \typeout{^^JWarning: Title too long for running head.}%\r
444        \typeout{Please supply a shorter form with \string\titlerunning\r
445                 \space prior to \string\maketitle}%\r
446        \global\setbox\titrun=\hbox{\small\rmfamily\r
447        Title Suppressed Due to Excessive Length}%\r
448     \fi\r
449     \xdef\@title{\copy\titrun}%\r
450 %\r
451     \if!\the\authorrunning!\r
452     \else\r
453       \setcounter{auth}{1}%\r
454       \edef\@author{\the\authorrunning}%\r
455     \fi\r
456     \ifnum\value{auth}>\authdepth\r
457        \def\stripauthor##1\and##2\endauthor{%\r
458        \protected@xdef\@author{##1\unskip\unskip\if!##2!\else\ et al.\fi}}%\r
459        \expandafter\stripauthor\@author\and\endauthor\r
460     \else\r
461        \gdef\and{\unskip, \ignorespaces}%\r
462        {\def\and{\noexpand\protect\noexpand\and}%\r
463        \protected@xdef\@author{\@author}}\r
464     \fi\r
465     \global\setbox\authrun=\hbox{\small\rmfamily\unboldmath\ignorespaces\r
466                                  \@author\unskip}%\r
467     \ifdim\wd\authrun>\instindent\r
468     \typeout{^^JWarning: Author name(s) too long for running head.\r
469              ^^JPlease supply a shorter form with \string\authorrunning\r
470              \space prior to \string\maketitle}%\r
471     \global\setbox\authrun=\hbox{\small\rmfamily Please give a shorter version\r
472           with: {\tt\string\authorrunning\space and\r
473              \string\titlerunning\space prior to \string\maketitle}}%\r
474     \fi\r
475     \xdef\@author{\copy\authrun}%\r
476     \markboth{\@author}{\@title}%\r
477 }\r
478 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
479 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
480 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
481 \def\maketitle{\par\r
482 \ch@ckobl{journalname}{Noname}\r
483 %\ch@ckobl{date}{The date of receipt and acceptance will be inserted by\r
484 %the editor}\r
485 \ch@ckobl{title}{A title should be given}\r
486 \ch@ckobl{author}{Name(s) and initial(s) of author(s) should be given}\r
487 \ch@ckobl{institute}{Address(es) of author(s) should be given}\r
488 %\ch@ckobl{titlefigure}{Titlefigure should be given}\r
489 %\ch@ckobl{abstract}{Abstract should be given}\r
490 \begingroup\r
491 %\r
492     \renewcommand\thefootnote{\@fnsymbol\c@footnote}%\r
493     \def\@makefnmark{$^{\@thefnmark}$}%\r
494 %\r
495  \def\lastand{\ifnum\value{inst}=2\relax\r
496                  \unskip{} \andname\\r
497               \else\r
498                  \unskip, \andname\\r
499               \fi}%\r
500  \def\and{\stepcounter{auth}\relax\r
501           \if@smartand\r
502              \ifnum\value{auth}=\value{inst}%\r
503                 \lastand\r
504              \else\r
505                 \unskip,\r
506              \fi\r
507           \else\r
508              \unskip,\r
509           \fi}%\r
510  \ifnum \col@number=\@ne\r
511    \@maketitle\r
512  \else\r
513    \twocolumn[\@maketitle]%\r
514  \fi\r
515 % \thispagestyle{empty}\r
516  \global\@topnum\z@\r
517  \@thanks\r
518 % \if!\@mail!\else\r
519 %    \footnotetext[0]{\kern-\bibindent\mailname\\r
520 %    \ignorespaces\@mail}%\r
521 % \fi\r
522 %\r
523  \if@runhead\r
524     \ProcessRunnHead\r
525     \if@smartrunh\r
526        \instindent=\textwidth\r
527        \advance\instindent by-\headlineindent\r
528        \if!\@combi!%\r
529           \global\setbox\combirun=\hbox{\small\rmfamily\unboldmath\ignorespaces\r
530                                         \@author\unskip: \@title\unskip}%\r
531           \def\@tempa{Automatically generated running head}%\r
532        \else\r
533           \global\setbox\combirun=\hbox{\small\rmfamily\unboldmath\ignorespaces\r
534                                         \@combi\unskip}%\r
535           \def\@tempa{With \string\combirunning\space supplied running head}%\r
536        \fi\r
537        \ifdim\wd\combirun>\instindent\r
538           \typeout{^^JWarning: \@tempa}%\r
539           \typeout{for a possible last even numbered page is too long.}%\r
540           \typeout{Please supply a shorter form with \string\combirunning\r
541                    \space prior to \string\maketitle.}%\r
542           \global\setbox\combirun=\hbox{\small\rmfamily\r
543           Title Suppressed Due to Excessive Length --\r
544           supply \ttfamily\char92combirunning}%\r
545        \fi\r
546        \xdef\lastevenhead{\copy\combirun}%\r
547     \fi\r
548  \fi\r
549 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
550 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
551 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
552  \endgroup\r
553  \setcounter{footnote}{0}\r
554  \global\let\thanks\relax\r
555  \global\let\maketitle\relax\r
556  \global\let\@maketitle\relax\r
557  \global\let\@thanks\@empty\r
558  \global\let\@author\@empty\r
559  \global\let\@date\@empty\r
560  \global\let\@title\@empty\r
561  \global\let\@subtitle\@empty\r
562  \global\let\title\relax\r
563  \global\let\author\relax\r
564  \global\let\date\relax\r
565  \global\let\and\relax}\r
566 \r
567 \r
568 \def\makeheadbox{%\r
569 }\r
570 \r
571 \def\titlefont{\normalfont}\r
572 \definecolor{abstractcolor}{named}{LimeGreen}\r
573 \definecolor{rulecolor}{named}{PineGreen}\r
574 \r
575 \def\@setabstractpart{%\r
576   \parbox[t]{\columnwidth}{\@abstract}%\r
577 }\r
578 \r
579 \def\abstractcaptionminskip{\baselineskip}\r
580 \newcommand*{\@setxabstractpart}[1][]{%\r
581   \def\@tempa{\parbox[t]}%\r
582   \ifx\relax#1\relax\else\def\@tempa{\parbox[t][#1][t]}\fi\r
583   \@tempa{\columnwidth}{%\r
584     \@abstract\par\r
585     \vspace{\abstractcaptionminskip }%HHH\r
586     \@titlefigurecaption\r
587   }%\r
588 }\r
589 \r
590 \def\@setfigurepart{%Legende~neben~Abb.\r
591   \parbox[t]{\columnwidth}{%\r
592     \vspace*{0pt}\vspace{-\baselineskip}%hhh\r
593     \setlength{\@tempdima}{\dp\strutbox}\vspace{.4\@tempdima}%\r
594     %{\centering\@titlefigure\\}%\r
595   }%\r
596 }%\r
597 \r
598 \newcommand*\@setxfigurepart[1][]{%Legende~unter~Abb.\r
599   \def\@tempa{\parbox[t]}%\r
600   \ifx\relax#1\relax\else\def\@tempa{\parbox[t][#1][t]}\fi\r
601   \@tempa{\columnwidth}{%\r
602     \vspace*{0pt}\vspace{-\ht\strutbox}\vspace{-1pt}%\r
603     %{\centering\@titlefigure\\}%\r
604     %\vfill% einkommentieren, wenn die caption nach unten soll\r
605     \vspace{0.2cm}%\r
606     \@titlefigurecaption\r
607   }%\r
608 }\r
609 \r
610 \newcommand{\@settototalheight}[2]{%\r
611   \settoheight{#1}{#2}%\r
612   \settodepth{\@tempdimc}{#2}%\r
613   \addtolength{#1}{\@tempdimc}%\r
614 }\r
615 \r
616 \def\copyrightmark{%\r
617   {%\r
618     \fontsize{6}{7.2pt}\selectfont\r
619     \mbox{\begin{tabular}{@{}l@{}}\r
620       \textcopyright\ \theyear\ NSP \\\r
621 Natural Sciences Publishing Cor.\r
622 \end{tabular}\r
623     }%\r
624   }%\r
625 }\r
626 \r
627 \def\@maketitle{\newpage\r
628  \normalfont\r
629  \vbox to0pt{\vskip-40pt\r
630  \nointerlineskip\r
631  \makeheadbox\vss}\nointerlineskip\r
632  %\vspace*{-\headsep}\r
633  %\vspace*{-\topskip}%\r
634  \vspace{-0.5cm}\r
635  \colorbox{abstractcolor}{%\r
636    \@settototalheight{\@tempdima}{\@setxabstractpart}%\r
637    \@settototalheight{\@tempdimb}{\@setfigurepart}%\r
638    \setlength{\@tempdimc}{\textwidth}%\r
639   \addtolength{\@tempdimc}{-2\fboxsep}%\r
640    \ifdim\@tempdima>\@tempdimb\r
641      \parbox[t]{\@tempdimc}{%\r
642        \@settototalheight{\@tempdima}{\@setabstractpart}%\r
643        \@settototalheight{\@tempdimb}{\@setxfigurepart}%\r
644        \ifdim\@tempdima>\@tempdimb\r
645          \settoheight{\@tempdimb}{\@setabstractpart}%\r
646        \fi\r
647        \@setabstractpart\r
648        \hfill\r
649        \@setxfigurepart[\@tempdimb]%\r
650      }%\r
651    \else\r
652      \parbox[t]{\@tempdimc}{%\r
653        \@settototalheight{\@tempdimb}{\strut\@setfigurepart}%\r
654        \strut\@setxabstractpart[\@tempdimb]%\r
655        \hfill\r
656        \@setfigurepart\r
657      }%\r
658    \fi\r
659  }%\r
660  \vspace{3.5mm}\r
661 \def\doi{http://dx.doi.org/10.12785/amis/\jobname}\r
662 \urlstyle{same}\r
663 \hbox{~}\hfill {\scriptsize \url{\doi} \\ }\r
664  \vspace{-3\baselineskip}%\r
665  \setbox\authrun=\vbox\bgroup\r
666  {\Large \bfseries\boldmath\r
667   \hrule\@height\logodepth\@width\z@\r
668   \pretolerance=10000\r
669   \rightskip=0pt plus 4cm\r
670  \if!\@headnote!\else %%%%hhh\r
671    \noindent\r
672    {\normalfont\em\ignorespaces\@headnote\par}\vskip 3.5mm\r
673  \fi\r
674   \noindent\ignorespaces\r
675   {\titlefont\@title \par}}\vskip 11.24pt\relax\r
676  \if!\@subtitle!\else\r
677    {\large\bfseries\boldmath\r
678    \pretolerance=10000\r
679    \rightskip=0pt plus 3cm\r
680    \noindent\ignorespaces\@subtitle \par}\vskip 11.24pt\r
681  \fi\r
682  \normalfont\authorfont\r
683  \lineskip .5em\r
684  \setbox0=\vbox{\setcounter{auth}{1}\def\and{\stepcounter{auth} }%\r
685                 \hfuzz=2\textwidth\def\thanks##1{}\@author}%\r
686  \value{inst}=\value{auth}%\r
687  \setcounter{auth}{1}%\r
688  \rightskip=0pt plus 2cm\r
689  \noindent\ignorespaces\@author\vskip7.23pt\r
690  \rightskip=0pt\relax\r
691  \normalfont\small\rmfamily\r
692  \institutename\r
693  \if!\@date!\else\vskip 12.85pt \noindent\@date\fi\r
694  \if!\@dedic!\else\r
695     \par\r
696     \small\itshape\r
697     \addvspace\baselineskip\r
698     \noindent\@dedic\r
699  \fi\r
700  \par\vspace{\baselineskip}\r
701  \setreceived\r
702  \setrevised\r
703  \setaccepted\r
704  \setpublished\r
705  \abstracttext@keywords\r
706  \egroup % end of header box\r
707  \@tempdima=\headerboxheight\r
708  \advance\@tempdima by-\ht\authrun\r
709  \ifdim\@tempdima>0pt\r
710     \vrule width0pt height\@tempdima\r
711  \fi\r
712  \unvbox\authrun\r
713  \global\@minipagetrue\r
714  \global\everypar{\global\@minipagefalse\global\everypar{}}\r
715  \vskip2.5\baselineskip\r
716 }\r
717 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
718 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
719 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
720 \if@mathematic\r
721    \def\vec#1{\ensuremath{\mathchoice\r
722                      {\mbox{\boldmath$\displaystyle\mathbf{#1}$}}\r
723                      {\mbox{\boldmath$\textstyle\mathbf{#1}$}}\r
724                      {\mbox{\boldmath$\scriptstyle\mathbf{#1}$}}\r
725                      {\mbox{\boldmath$\scriptscriptstyle\mathbf{#1}$}}}}\r
726 \else\r
727    \def\vec#1{\ensuremath{\mathchoice\r
728                      {\mbox{\boldmath$\displaystyle#1$}}\r
729                      {\mbox{\boldmath$\textstyle#1$}}\r
730                      {\mbox{\boldmath$\scriptstyle#1$}}\r
731                      {\mbox{\boldmath$\scriptscriptstyle#1$}}}}\r
732 \fi\r
733 %\r
734 \def\tens#1{\ensuremath{\mathsf{#1}}}\r
735 %\r
736 \setcounter{secnumdepth}{3}\r
737 \newcounter {section}\r
738 \newcounter {subsection}[section]\r
739 \newcounter {subsubsection}[subsection]\r
740 \newcounter {paragraph}[subsubsection]\r
741 \newcounter {subparagraph}[paragraph]\r
742 \renewcommand\thesection      {\@arabic\c@section}\r
743 \renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}\r
744 \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}\r
745 \renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}\r
746 \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}\r
747 %\r
748 \def\@hangfrom#1{\setbox\@tempboxa\hbox{#1}%\r
749       \hangindent \z@\noindent\box\@tempboxa}\r
750 \r
751 \def\@seccntformat#1{\csname the#1\endcsname\sectcounterend\r
752 \hskip\betweenumberspace}\r
753 \r
754 \def\@sect#1#2#3#4#5#6[#7]#8{%\r
755   \ifnum #2>\c@secnumdepth\r
756     \let\@svsec\@empty\r
757   \else\r
758     \refstepcounter{#1}%\r
759     \protected@edef\@svsec{\@seccntformat{#1}\relax}%\r
760   \fi\r
761   \@tempskipa #5\relax\r
762   \ifdim \@tempskipa>\z@\r
763     \begingroup\r
764       #6{%\r
765         \@hangfrom{\hskip #3\relax\@svsec}%\r
766           \raggedright\r
767           \hyphenpenalty \@M%\r
768           \interlinepenalty \@M #8\@@par}%\r
769     \endgroup\r
770     \csname #1mark\endcsname{#7}%\r
771     \addcontentsline{toc}{#1}{%\r
772       \ifnum #2>\c@secnumdepth \else\r
773         \protect\numberline{\csname the#1\endcsname\sectcounterend}%\r
774       \fi\r
775       #7}%\r
776   \else\r
777     \def\@svsechd{%\r
778       #6{\hskip #3\relax\r
779       \@svsec #8\hskip\aftertext}%\r
780       \csname #1mark\endcsname{#7}%\r
781       \addcontentsline{toc}{#1}{%\r
782         \ifnum #2>\c@secnumdepth \else\r
783           \protect\numberline{\csname the#1\endcsname}%\r
784         \fi\r
785         #7}}%\r
786   \fi\r
787   \@xsect{#5}}\r
788 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
789 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
790 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
791 % measures and setting of sections\r
792 %\r
793 \def\section{\@startsection{section}{1}{\z@}%\r
794     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt\r
795      minus4pt}{\normalsize\bfseries\boldmath}}\r
796 \def\subsection{\@startsection{subsection}{2}{\z@}%\r
797     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt\r
798      minus4pt}{\normalsize\itshape}}\r
799 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}%\r
800     {-13dd plus-4pt minus-4pt}{-5.5pt}{\normalsize\itshape}}\r
801 \def\paragraph{\@startsection{paragraph}{4}{\z@}%\r
802     {-13pt plus-4pt minus-4pt}{-5.5pt}{\normalsize\itshape}}\r
803 \r
804 \setlength\leftmargini  {\parindent}\r
805 \leftmargin  \leftmargini\r
806 \setlength\leftmarginii {\parindent}\r
807 \setlength\leftmarginiii {1.87em}\r
808 \setlength\leftmarginiv  {1.7em}\r
809 \setlength\leftmarginv  {.5em}\r
810 \setlength\leftmarginvi {.5em}\r
811 \setlength  \labelsep  {.5em}\r
812 \setlength  \labelwidth{\leftmargini}\r
813 \addtolength\labelwidth{-\labelsep}\r
814 \@beginparpenalty -\@lowpenalty\r
815 \@endparpenalty   -\@lowpenalty\r
816 \@itempenalty     -\@lowpenalty\r
817 \renewcommand\theenumi{\@arabic\c@enumi}\r
818 \renewcommand\theenumii{\@alph\c@enumii}\r
819 \renewcommand\theenumiii{\@roman\c@enumiii}\r
820 \renewcommand\theenumiv{\@Alph\c@enumiv}\r
821 \newcommand\labelenumi{\theenumi.}\r
822 \newcommand\labelenumii{(\theenumii)}\r
823 \newcommand\labelenumiii{\theenumiii.}\r
824 \newcommand\labelenumiv{\theenumiv.}\r
825 \renewcommand\p@enumii{\theenumi}\r
826 \renewcommand\p@enumiii{\theenumi(\theenumii)}\r
827 \renewcommand\p@enumiv{\p@enumiii\theenumiii}\r
828 \newcommand\labelitemi{\normalfont\bfseries --}\r
829 \newcommand\labelitemii{\normalfont\bfseries --}\r
830 \newcommand\labelitemiii{$\m@th\bullet$}\r
831 \newcommand\labelitemiv{$\m@th\cdot$}\r
832 \r
833 \if@spthms\r
834 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
835 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
836 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
837 \r
838 \def\@thmcountersep{}\r
839 \def\@thmcounterend{}\r
840 \r
841 \def\spnewtheorem{\@ifstar{\@sthm}{\@Sthm}}\r
842 \r
843 % definition of \spnewtheorem with number\r
844 \r
845 \def\@spnthm#1#2{%\r
846   \@ifnextchar[{\@spxnthm{#1}{#2}}{\@spynthm{#1}{#2}}}\r
847 \def\@Sthm#1{\@ifnextchar[{\@spothm{#1}}{\@spnthm{#1}}}\r
848 \r
849 \def\@spxnthm#1#2[#3]#4#5{\expandafter\@ifdefinable\csname #1\endcsname\r
850    {\@definecounter{#1}\@addtoreset{#1}{#3}%\r
851    \expandafter\xdef\csname the#1\endcsname{\expandafter\noexpand\r
852      \csname the#3\endcsname \noexpand\@thmcountersep \@thmcounter{#1}}%\r
853    \expandafter\xdef\csname #1name\endcsname{#2}%\r
854    \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#4}{#5}}%\r
855                               \global\@namedef{end#1}{\@endtheorem}}}\r
856 \r
857 \def\@spynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname\r
858    {\@definecounter{#1}%\r
859    \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}%\r
860    \expandafter\xdef\csname #1name\endcsname{#2}%\r
861    \global\@namedef{#1}{\@spthm{#1}{\csname #1name\endcsname}{#3}{#4}}%\r
862                                \global\@namedef{end#1}{\@endtheorem}}}\r
863 \r
864 \def\@spothm#1[#2]#3#4#5{%\r
865   \@ifundefined{c@#2}{\@latexerr{No theorem environment `#2' defined}\@eha}%\r
866   {\expandafter\@ifdefinable\csname #1\endcsname\r
867   {\global\@namedef{the#1}{\@nameuse{the#2}}%\r
868   \expandafter\xdef\csname #1name\endcsname{#3}%\r
869   \global\@namedef{#1}{\@spthm{#2}{\csname #1name\endcsname}{#4}{#5}}%\r
870   \global\@namedef{end#1}{\@endtheorem}}}}\r
871 \r
872 \def\@spthm#1#2#3#4{\topsep 7\p@ \@plus2\p@ \@minus4\p@\r
873 \refstepcounter{#1}%\r
874 \@ifnextchar[{\@spythm{#1}{#2}{#3}{#4}}{\@spxthm{#1}{#2}{#3}{#4}}}\r
875 \r
876 \def\@spxthm#1#2#3#4{\@spbegintheorem{#2}{\csname the#1\endcsname}{#3}{#4}%\r
877                     \ignorespaces}\r
878 \r
879 \def\@spythm#1#2#3#4[#5]{\@spopargbegintheorem{#2}{\csname\r
880        the#1\endcsname}{#5}{#3}{#4}\ignorespaces}\r
881 \r
882 \def\@spbegintheorem#1#2#3#4{\trivlist\r
883                  \item[\hskip\labelsep{#3#1\ #2\@thmcounterend}]#4}\r
884 \r
885 \def\@spopargbegintheorem#1#2#3#4#5{\trivlist\r
886       \item[\hskip\labelsep{#4#1\ #2}]{#4(#3)\@thmcounterend\ }#5}\r
887 \r
888 % definition of \spnewtheorem* without number\r
889 \r
890 \def\@sthm#1#2{\@Ynthm{#1}{#2}}\r
891 \r
892 \def\@Ynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname\r
893    {\global\@namedef{#1}{\@Thm{\csname #1name\endcsname}{#3}{#4}}%\r
894     \expandafter\xdef\csname #1name\endcsname{#2}%\r
895     \global\@namedef{end#1}{\@endtheorem}}}\r
896 \r
897 \def\@Thm#1#2#3{\topsep 7\p@ \@plus2\p@ \@minus4\p@\r
898 \@ifnextchar[{\@Ythm{#1}{#2}{#3}}{\@Xthm{#1}{#2}{#3}}}\r
899 \r
900 \def\@Xthm#1#2#3{\@Begintheorem{#1}{#2}{#3}\ignorespaces}\r
901 \r
902 \def\@Ythm#1#2#3[#4]{\@Opargbegintheorem{#1}\r
903        {#4}{#2}{#3}\ignorespaces}\r
904 \r
905 \def\@Begintheorem#1#2#3{#3\trivlist\r
906                            \item[\hskip\labelsep{#2#1\@thmcounterend}]}\r
907 \r
908 \def\@Opargbegintheorem#1#2#3#4{#4\trivlist\r
909       \item[\hskip\labelsep{#3#1}]{#3(#2)\@thmcounterend\ }}\r
910 \r
911 \if@envcntsect\r
912    \def\@thmcountersep{.}\r
913    \spnewtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape}\r
914 \else\r
915    \spnewtheorem{theorem}{Theorem}{\bfseries}{\itshape}\r
916    \if@envcntreset\r
917       \@addtoreset{theorem}{section}\r
918    \else\r
919       \@addtoreset{theorem}{chapter}\r
920    \fi\r
921 \fi\r
922 \r
923 %definition of divers theorem environments\r
924 \spnewtheorem*{claim}{Claim}{\itshape}{\rmfamily}\r
925 \spnewtheorem*{proof}{Proof}{\itshape}{\rmfamily}\r
926 \if@envcntsame % alle Umgebungen wie Theorem.\r
927    \def\spn@wtheorem#1#2#3#4{\@spothm{#1}[theorem]{#2}{#3}{#4}}\r
928 \else % alle Umgebungen mit eigenem Zaehler\r
929    \if@envcntsect % mit section numeriert\r
930       \def\spn@wtheorem#1#2#3#4{\@spxnthm{#1}{#2}[section]{#3}{#4}}\r
931    \else % nicht mit section numeriert\r
932       \if@envcntreset\r
933          \def\spn@wtheorem#1#2#3#4{\@spynthm{#1}{#2}{#3}{#4}\r
934                                    \@addtoreset{#1}{section}}\r
935       \else\r
936          \let\spn@wtheorem=\@spynthm\r
937       \fi\r
938    \fi\r
939 \fi\r
940 \spn@wtheorem{case}{Case}{\itshape}{\rmfamily}\r
941 \spn@wtheorem{conjecture}{Conjecture}{\itshape}{\rmfamily}\r
942 \spn@wtheorem{corollary}{Corollary}{\bfseries}{\itshape}\r
943 \spn@wtheorem{definition}{Definition}{\bfseries}{\itshape}\r
944 \spn@wtheorem{example}{Example}{\itshape}{\rmfamily}\r
945 \spn@wtheorem{exercise}{Exercise}{\bfseries}{\rmfamily}\r
946 \spn@wtheorem{lemma}{Lemma}{\bfseries}{\itshape}\r
947 \spn@wtheorem{note}{Note}{\itshape}{\rmfamily}\r
948 \spn@wtheorem{problem}{Problem}{\bfseries}{\rmfamily}\r
949 \spn@wtheorem{property}{Property}{\itshape}{\rmfamily}\r
950 \spn@wtheorem{proposition}{Proposition}{\bfseries}{\itshape}\r
951 \spn@wtheorem{question}{Question}{\itshape}{\rmfamily}\r
952 \spn@wtheorem{solution}{Solution}{\bfseries}{\rmfamily}\r
953 \spn@wtheorem{remark}{Remark}{\itshape}{\rmfamily}\r
954 \r
955 \def\theopargself{\def\@spopargbegintheorem##1##2##3##4##5{\trivlist\r
956       \item[\hskip\labelsep{##4##1\ ##2}]{##4##3\@thmcounterend\ }##5}\r
957                   \def\@Opargbegintheorem##1##2##3##4{##4\trivlist\r
958       \item[\hskip\labelsep{##3##1}]{##3##2\@thmcounterend\ }}\r
959       }\r
960 \fi\r
961 \r
962 \def\@takefromreset#1#2{%\r
963     \def\@tempa{#1}%\r
964     \let\@tempd\@elt\r
965     \def\@elt##1{%\r
966         \def\@tempb{##1}%\r
967         \ifx\@tempa\@tempb\else\r
968             \@addtoreset{##1}{#2}%\r
969         \fi}%\r
970     \expandafter\expandafter\let\expandafter\@tempc\csname cl@#2\endcsname\r
971     \expandafter\def\csname cl@#2\endcsname{}%\r
972     \@tempc\r
973     \let\@elt\@tempd}\r
974 \r
975 \def\squareforqed{\hbox{\rlap{$\sqcap$}$\sqcup$}}\r
976 \def\qed{\ifmmode\else\unskip\quad\fi\squareforqed}\r
977 \def\smartqed{\def\qed{\ifmmode\squareforqed\else{\unskip\nobreak\hfil\r
978 \penalty50\hskip1em\null\nobreak\hfil\squareforqed\r
979 \parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi}}\r
980 \r
981 %\\\\\\\\\\\\\\\\\\\\\\\\\\\r
982 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
983 %\\\\\\\\\\\\\\\\\\\\\\\\\\\\\r
984 \r
985 \r
986 %\r
987 \newenvironment{verse}\r
988                {\let\\\@centercr\r
989                 \list{}{\itemsep      \z@\r
990                         \itemindent   -1.5em%\r
991                         \listparindent\itemindent\r
992                         \rightmargin  \leftmargin\r
993                         \advance\leftmargin 1.5em}%\r
994                 \item\relax}\r
995                {\endlist}\r
996 \newenvironment{quotation}\r
997                {\list{}{\listparindent 1.5em%\r
998                         \itemindent    \listparindent\r
999                         \rightmargin   \leftmargin\r
1000                         \parsep        \z@ \@plus\p@}%\r
1001                 \item\relax}\r
1002                {\endlist}\r
1003 \newenvironment{quote}\r
1004                {\list{}{\rightmargin\leftmargin}%\r
1005                 \item\relax}\r
1006                {\endlist}\r
1007 \newcommand\appendix{\par\r
1008   \setcounter{section}{0}%\r
1009   \setcounter{subsection}{0}%\r
1010   \renewcommand\thesection{\@Alph\c@section}}\r
1011 \setlength\arraycolsep{1.5\p@}\r
1012 \setlength\tabcolsep{6\p@}\r
1013 \setlength\arrayrulewidth{.4\p@}\r
1014 \setlength\doublerulesep{2\p@}\r
1015 \setlength\tabbingsep{\labelsep}\r
1016 \skip\@mpfootins = \skip\footins\r
1017 %\setlength\fboxsep{3\p@}\r
1018 \setlength\fboxsep{6\p@}\r
1019 \setlength\fboxrule{.4\p@}\r
1020 \renewcommand\theequation{\@arabic\c@equation}\r
1021 \newcounter{figure}\r
1022 \renewcommand\thefigure{\@arabic\c@figure}\r
1023 \def\fps@figure{tbp}\r
1024 \def\ftype@figure{1}\r
1025 \def\ext@figure{lof}\r
1026 \def\fnum@figure{\figurename~\thefigure}\r
1027 \newenvironment{figure}[1][]%hhh\r
1028                {\@float{figure}[{#1}]\vspace*{\baselineskip}}\r
1029                {\end@float}\r
1030 \newenvironment{figure*}[1][]\r
1031                {\@dblfloat{figure}[#1]\vspace*{\baselineskip}}\r
1032                {\end@dblfloat}\r
1033 \newcounter{table}\r
1034 \renewcommand\thetable{\@arabic\c@table}\r
1035 \def\fps@table{tbp}\r
1036 \def\ftype@table{2}\r
1037 \def\ext@table{lot}\r
1038 \def\fnum@table{\tablename~\thetable}\r
1039 \newenvironment{table}\r
1040                {\@float{table}}\r
1041                {\end@float}\r
1042 \newenvironment{table*}\r
1043                {\@dblfloat{table}}\r
1044                {\end@dblfloat}\r
1045 \r
1046 \def \@floatboxreset {%\r
1047         \reset@font\r
1048         \small\r
1049         \@setnobreak\r
1050         \@setminipage\r
1051 }\r
1052 \r
1053 \newlength\abovecaptionskip\r
1054 \newlength\belowcaptionskip\r
1055 \setlength\abovecaptionskip{10\p@}\r
1056 \setlength\belowcaptionskip{0\p@}\r
1057 \newcommand\leftlegendglue{}\r
1058 \r
1059 \def\fig@type{figure}\r
1060 \r
1061 \newdimen\figcapgap\figcapgap=3pt\r
1062 \newdimen\tabcapgap\tabcapgap=5.5pt\r
1063 \r
1064 %%%hhh\r
1065 \@ifundefined{floatlegendstyle}{\def\floatlegendstyle{\bfseries}}{}\r
1066 \r
1067 \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname\r
1068   ext@#1\endcsname}{#1}{\protect\numberline{\csname\r
1069   the#1\endcsname}{\ignorespaces #2}}\begingroup\r
1070     \@parboxrestore\r
1071     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par\r
1072   \endgroup}\r
1073 \r
1074 \def\capstrut{\vrule\@width\z@\@height\topskip}\r
1075 \r
1076 \@ifundefined{captionstyle}{\def\captionstyle{\normalfont\small}}{}%%hhh\r
1077 \r
1078 \long\def\@makecaption#1#2{%\r
1079  \captionstyle\r
1080  \ifx\@captype\fig@type\r
1081    \vskip\figcapgap\r
1082  \fi\r
1083  \setbox\@tempboxa\hbox{{\floatlegendstyle #1\floatcounterend}%\r
1084  \capstrut #2}%\r
1085  \ifdim \wd\@tempboxa >\hsize\r
1086    {\floatlegendstyle #1\floatcounterend}\capstrut #2\par\r
1087  \else\r
1088    \hbox to\hsize{\leftlegendglue\unhbox\@tempboxa\hfil}%\r
1089  \fi\r
1090  \ifx\@captype\fig@type\else\r
1091    \vskip\tabcapgap\r
1092  \fi}\r
1093 \r
1094 \newdimen\figgap\figgap=1cc\r
1095 \long\def\@makesidecaption#1#2{%\r
1096    \parbox[b]{\@tempdima}{\captionstyle{\floatlegendstyle\r
1097                                          #1\floatcounterend}#2}}\r
1098 \def\sidecaption#1\caption{%\r
1099 \setbox\@tempboxa=\hbox{#1\unskip}%\r
1100 \if@twocolumn\r
1101  \ifdim\hsize<\textwidth\else\r
1102    \ifdim\wd\@tempboxa<\columnwidth\r
1103       \typeout{Double column float fits into single column -\r
1104             ^^Jyou'd better switch the environment. }%\r
1105    \fi\r
1106  \fi\r
1107 \fi\r
1108 \@tempdima=\hsize\r
1109 \advance\@tempdima by-\figgap\r
1110 \advance\@tempdima by-\wd\@tempboxa\r
1111 \ifdim\@tempdima<3cm\r
1112     \typeout{\string\sidecaption: No sufficient room for the legend;\r
1113              using normal \string\caption. }%\r
1114    \unhbox\@tempboxa\r
1115    \let\@capcommand=\@caption\r
1116 \else\r
1117    \let\@capcommand=\@sidecaption\r
1118    \leavevmode\r
1119    \unhbox\@tempboxa\r
1120    \hfill\r
1121 \fi\r
1122 \refstepcounter\@captype\r
1123 \@dblarg{\@capcommand\@captype}}\r
1124 \r
1125 \long\def\@sidecaption#1[#2]#3{\addcontentsline{\csname\r
1126   ext@#1\endcsname}{#1}{\protect\numberline{\csname\r
1127   the#1\endcsname}{\ignorespaces #2}}\begingroup\r
1128     \@parboxrestore\r
1129     \@makesidecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par\r
1130   \endgroup}\r
1131 \r
1132 % Define `acknowledgement' environment\r
1133 \def\acknowledgement{\par\addvspace{17pt}\small\rmfamily\r
1134 \trivlist\if!\ackname!\item[]\else\r
1135 \item[\hskip\labelsep\r
1136 {\it\ackname}]\fi}\r
1137 \def\endacknowledgement{\endtrivlist\addvspace{6pt}}\r
1138 % Define `noteadd' environment\r
1139 \def\noteadd{\par\addvspace{17pt}\small\rmfamily\r
1140 \trivlist\item[\hskip\labelsep\r
1141 {\itshape\noteaddname}]}\r
1142 \def\endnoteadd{\endtrivlist\addvspace{6pt}}\r
1143 \r
1144 \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}\r
1145 \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}\r
1146 \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}\r
1147 \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}\r
1148 \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}\r
1149 \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}\r
1150 \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}\r
1151 \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}\r
1152 \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}\r
1153 \newcommand\@pnumwidth{1.55em}\r
1154 \newcommand\@tocrmarg{2.55em}\r
1155 \newcommand\@dotsep{4.5}\r
1156 \setcounter{tocdepth}{1}\r
1157 \newcommand\tableofcontents{%\r
1158     \section*{\contentsname}%\r
1159     \@starttoc{toc}%\r
1160     \addtocontents{toc}{\begingroup\protect\small}%\r
1161     \AtEndDocument{\addtocontents{toc}{\endgroup}}%\r
1162     }\r
1163 \newcommand*\l@part[2]{%\r
1164   \ifnum \c@tocdepth >-2\relax\r
1165     \addpenalty\@secpenalty\r
1166     \addvspace{2.25em \@plus\p@}%\r
1167     \begingroup\r
1168       \setlength\@tempdima{3em}%\r
1169       \parindent \z@ \rightskip \@pnumwidth\r
1170       \parfillskip -\@pnumwidth\r
1171       {\leavevmode\r
1172        \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par\r
1173        \nobreak\r
1174        \if@compatibility\r
1175          \global\@nobreaktrue\r
1176          \everypar{\global\@nobreakfalse\everypar{}}%\r
1177       \fi\r
1178     \endgroup\r
1179   \fi}\r
1180 \newcommand*\l@section{\@dottedtocline{1}{0pt}{1.5em}}\r
1181 \newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}\r
1182 \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}\r
1183 \newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}\r
1184 \newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}\r
1185 \newcommand\listoffigures{%\r
1186     \section*{\listfigurename\r
1187       \@mkboth{\listfigurename}%\r
1188               {\listfigurename}}%\r
1189     \@starttoc{lof}%\r
1190     }\r
1191 \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}\r
1192 \newcommand\listoftables{%\r
1193     \section*{\listtablename\r
1194       \@mkboth{\listtablename}{\listtablename}}%\r
1195     \@starttoc{lot}%\r
1196     }\r
1197 \let\l@table\l@figure\r
1198 \newdimen\bibindent\r
1199 \setlength\bibindent{\parindent}\r
1200 \def\@biblabel#1{#1.}\r
1201 \def\@lbibitem[#1]#2{\item[{[#1]}\hfill]\if@filesw\r
1202       {\let\protect\noexpand\r
1203        \immediate\r
1204        \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces}\r
1205 \newenvironment{thebibliography}[1]\r
1206      {\section*{\refname\r
1207         \@mkboth{\refname}{\refname}}\small\r
1208       \list{\@biblabel{\@arabic\c@enumiv}}%\r
1209            {\settowidth\labelwidth{\@biblabel{#1}}%\r
1210             \leftmargin\labelwidth\r
1211             \advance\leftmargin\labelsep\r
1212             \@openbib@code\r
1213             \usecounter{enumiv}%\r
1214             \let\p@enumiv\@empty\r
1215             \renewcommand\theenumiv{\@arabic\c@enumiv}}%\r
1216       \sloppy\clubpenalty4000\widowpenalty4000%\r
1217       \sfcode`\.\@m}\r
1218      {\def\@noitemerr\r
1219        {\@latex@warning{Empty `thebibliography' environment}}%\r
1220       \endlist}\r
1221 %\r
1222 \newcount\@tempcntc\r
1223 \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi\r
1224   \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do\r
1225     {\@ifundefined\r
1226        {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea\def\@citea{,}{\bfseries\r
1227         ?}\@warning\r
1228        {Citation `\@citeb' on page \thepage \space undefined}}%\r
1229     {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}%\r
1230      \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne\r
1231        \@citea\def\@citea{,\hskip0.1em\ignorespaces}\hbox{\csname b@\@citeb\endcsname}%\r
1232      \else\r
1233       \advance\@tempcntb\@ne\r
1234       \ifnum\@tempcntb=\@tempcntc\r
1235       \else\advance\@tempcntb\m@ne\@citeo\r
1236       \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}}\r
1237 \def\@citeo{\ifnum\@tempcnta>\@tempcntb\else\r
1238             \@citea\def\@citea{,\hskip0.1em\ignorespaces}%\r
1239   \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else\r
1240    {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else \def\@citea{--}\fi\r
1241     \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi}\r
1242 %\r
1243 \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}\r
1244 \let\@openbib@code\@empty\r
1245 \newenvironment{theindex}\r
1246                {\if@twocolumn\r
1247                   \@restonecolfalse\r
1248                 \else\r
1249                   \@restonecoltrue\r
1250                 \fi\r
1251                 \columnseprule \z@\r
1252                 \columnsep 35\p@\r
1253                 \twocolumn[\section*{\indexname}]%\r
1254                 \@mkboth{\indexname}{\indexname}%\r
1255                 \thispagestyle{plain}\parindent\z@\r
1256                 \parskip\z@ \@plus .3\p@\relax\r
1257                 \let\item\@idxitem}\r
1258                {\if@restonecol\onecolumn\else\clearpage\fi}\r
1259 \newcommand\@idxitem{\par\hangindent 40\p@}\r
1260 \newcommand\subitem{\@idxitem \hspace*{20\p@}}\r
1261 \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}\r
1262 \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}\r
1263 \renewcommand\footnoterule{%\r
1264   \kern-3\p@\r
1265   \hrule\@width.4\columnwidth\r
1266   \kern2.6\p@}\r
1267 \newcommand\@makefntext[1]{%\r
1268     \noindent\r
1269     \hb@xt@\bibindent{\hss\@makefnmark\enspace}#1}\r
1270 %\r
1271 \newcommand\contentsname{Contents}\r
1272 \newcommand\listfigurename{List of Figures}\r
1273 \newcommand\listtablename{List of Tables}\r
1274 \newcommand\refname{References}\r
1275 \newcommand\indexname{Index}\r
1276 \newcommand\figurename{Fig.}\r
1277 \newcommand\tablename{Table}\r
1278 \newcommand\partname{Part}\r
1279 \newcommand\appendixname{Appendix}\r
1280 \newcommand\abstractname{Abstract\runinend}\r
1281 \newcommand\ackname{Acknowledgements\runinend}\r
1282 \newcommand\noteaddname{Note added in proof}\r
1283 % French section\r
1284 \def\ds@francais{%\r
1285  \typeout{On parle francais.}%\r
1286  \def\abstractname{R\'esum\'e\runinend}%\r
1287  \def\ackname{Remerciements\runinend}%\r
1288  \def\andname{et}%\r
1289  \def\lastandname{ et}%\r
1290  \def\appendixname{Appendice}\r
1291  \def\chaptername{Chapitre}%\r
1292  \def\claimname{Pr\'etention}%\r
1293  \def\conjecturename{Hypoth\`ese}%\r
1294  \def\contentsname{Table des mati\`eres}%\r
1295  \def\corollaryname{Corollaire}%\r
1296  \def\definitionname{D\'efinition}%\r
1297  \def\examplename{Exemple}%\r
1298  \def\exercisename{Exercice}%\r
1299  \def\figurename{Fig.}%\r
1300  \def\keywordname{{\bfseries Mots-cl\'e\runinend}}\r
1301  \def\indexname{Index}\r
1302  \def\lemmaname{Lemme}%\r
1303  \def\contriblistname{Liste des contributeurs}\r
1304  \def\listfigurename{Liste des figures}%\r
1305  \def\listtablename{Liste des tables}%\r
1306  \def\mailname{Correspondence to:}\r
1307  \def\noteaddname{Note ajout\'ee \`a l'\'epreuve}%\r
1308  \def\notename{Remarque}%\r
1309  \def\partname{Partie}%\r
1310  \def\problemname{Probl\`eme}%\r
1311  \def\proofname{\'Epreuve}%\r
1312  \def\propertyname{Caract\'eristique}%\r
1313 %\def\propositionname{Proposition}%\r
1314  \def\questionname{Question}%\r
1315 %\def\refname{References}%\r
1316  \def\remarkname{Remarque}%\r
1317  \def\seename{voyez}\r
1318  \def\solutionname{Solution}%\r
1319 %\def\subclassname{{\it Subject Classifications\/}:}\r
1320  \def\tablename{Tableau}%\r
1321  \def\theoremname{Th\'eor\`eme}%\r
1322 }\r
1323 %\r
1324 % German section\r
1325 \def\ds@deutsch{\typeout{Man spricht deutsch.}%\r
1326  \def\abstractname{Zusammenfassung\runinend}%\r
1327  \def\ackname{Danksagung\runinend}%\r
1328  \def\andname{und}%\r
1329  \def\lastandname{ und}%\r
1330  \def\appendixname{Anhang}%\r
1331  \def\chaptername{Kapitel}%\r
1332  \def\claimname{Behauptung}%\r
1333  \def\conjecturename{Hypothese}%\r
1334  \def\contentsname{Inhaltsverzeichnis}%\r
1335  \def\corollaryname{Korollar}%\r
1336 %\def\definitionname{Definition}%\r
1337  \def\examplename{Beispiel}%\r
1338  \def\exercisename{\"Ubung}%\r
1339  \def\figurename{Abb.}%\r
1340  \def\keywordname{{\bfseries Schl\"usselw\"orter\runinend}}\r
1341  \def\indexname{Index}\r
1342 %\def\lemmaname{Lemma}%\r
1343  \def\contriblistname{Mitarbeiter}\r
1344  \def\listfigurename{Abbildungsverzeichnis}%\r
1345  \def\listtablename{Tabellenverzeichnis}%\r
1346  \def\mailname{Correspondence to:}\r
1347  \def\noteaddname{Nachtrag}%\r
1348  \def\notename{Anmerkung}%\r
1349  \def\partname{Teil}%\r
1350 %\def\problemname{Problem}%\r
1351  \def\proofname{Beweis}%\r
1352  \def\propertyname{Eigenschaft}%\r
1353 %\def\propositionname{Proposition}%\r
1354  \def\questionname{Frage}%\r
1355  \def\refname{Literatur}%\r
1356  \def\remarkname{Anmerkung}%\r
1357  \def\seename{siehe}\r
1358  \def\solutionname{L\"osung}%\r
1359 %\def\subclassname{{\it Subject Classifications\/}:}\r
1360  \def\tablename{Tabelle}%\r
1361 %\def\theoremname{Theorem}%\r
1362 }\r
1363 \AtBeginDocument{\switch@texts}\r
1364 \newcommand\today{}\r
1365 \edef\today{\ifcase\month\or\r
1366   January\or February\or March\or April\or May\or June\or\r
1367   July\or August\or September\or October\or November\or December\fi\r
1368   \space\number\day, \number\year}\r
1369 \setlength\columnsep{1.5cc}\r
1370 \setlength\columnseprule{0\p@}\r
1371 %\r
1372 \frenchspacing\r
1373 \clubpenalty=10000\r
1374 \widowpenalty=10000\r
1375 \def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil\r
1376 \global\let\@textbottom\relax}}\r
1377 \pagestyle{headings}\r
1378 \pagenumbering{arabic}\r
1379 \if@twocolumn\r
1380    \twocolumn\r
1381 \fi\r
1382 \if@referee\r
1383    \makereferee\r
1384 \fi\r
1385 \flushbottom\r
1386 \r
1387 \r
1388 \r
1389 \let\if@mathematic\iffalse\r
1390 % No size changing allowed, hence a copy of size10.clo is included\r
1391 \renewcommand\normalsize{%\r
1392    \@setfontsize\normalsize\@xpt{10.5dd}%\r
1393    \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@\r
1394    \abovedisplayshortskip \z@ \@plus3\p@\r
1395    \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@\r
1396    \belowdisplayskip \abovedisplayskip\r
1397    \let\@listi\@listI}\r
1398 \normalsize\r
1399 \newcommand\small{%\r
1400    \@setfontsize\small\@ixpt{10dd}%\r
1401    \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@\r
1402    \abovedisplayshortskip \z@ \@plus2\p@\r
1403    \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@\r
1404    \def\@listi{\leftmargin\leftmargini\r
1405                \parsep 0\p@ \@plus1\p@ \@minus\p@\r
1406                \topsep 8\p@ \@plus2\p@ \@minus4\p@\r
1407                \itemsep0\p@}%\r
1408    \belowdisplayskip \abovedisplayskip\r
1409 }\r
1410 \let\footnotesize\small\r
1411 \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}\r
1412 \newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}\r
1413 \newcommand\large{\@setfontsize\large\@xiipt{13dd}}\r
1414 \newcommand\Large{\@setfontsize\Large\@xivpt{15dd}}\r
1415 \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{17dd}}\r
1416 \newcommand\huge{\@setfontsize\huge\@xxpt{25}}\r
1417 \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}\r
1418 %\r
1419 \r
1420 \setlength{\textwidth}{170mm}\r
1421 \setlength{\textheight}{255mm}\r
1422 %\r
1423 \def\laserrunnhead{%\r
1424     \def\\{\unskip\ \ignorespaces}\def\inst##1{\unskip{}}%\r
1425     \def\thanks##1{\unskip{}}\def\fnmsep{\unskip}%\r
1426     \instindent=\textwidth\r
1427     \advance\instindent by-\headlineindent\r
1428     \if!\the\titlerunning!\else\r
1429       \edef\@title{\the\titlerunning}%\r
1430     \fi\r
1431     \global\setbox\titrun=\hbox{\small\rm\unboldmath\ignorespaces\@title}%\r
1432     \ifdim\wd\titrun>\instindent\r
1433        \typeout{^^JWarning: Title too long for running head.}%\r
1434        \typeout{Please supply a shorter form with \string\titlerunning\r
1435                 \space prior to \string\maketitle}%\r
1436        \global\setbox\titrun=\hbox{\small\rm\r
1437        Title Suppressed Due to Excessive Length}%\r
1438     \fi\r
1439     \xdef\@title{\copy\titrun}%\r
1440 %\r
1441     \if!\the\authorrunning!\r
1442     \else\r
1443       \setcounter{auth}{1}%\r
1444       \edef\@author{\the\authorrunning}%\r
1445     \fi\r
1446     \ifnum\value{auth}>2\r
1447        \def\stripauthor##1\and##2\endauthor{%\r
1448        \protected@xdef\@author{##1\unskip\unskip\if!##2!\else\ et al.\fi}}%\r
1449        \expandafter\stripauthor\@author\and\endauthor\r
1450     \else\r
1451        \gdef\and{\unskip, \ignorespaces}%\r
1452        {\def\and{\noexpand\protect\noexpand\and}%\r
1453        \protected@xdef\@author{\@author}}\r
1454     \fi\r
1455     \global\setbox\authrun=\hbox{\small\unboldmath\ignorespaces\r
1456                                  \@author\unskip: \unhbox\titrun}%\r
1457     \ifdim\wd\authrun>\instindent\r
1458     \typeout{^^JWarning: The running head built automatically from\r
1459              \string\author\space and \string\title\r
1460              ^^Jexceeds the pagewidth, please supply a shorter form\r
1461              ^^Jwith \string\authorrunning\space and\r
1462              \string\titlerunning\space prior to \string\maketitle}%\r
1463     \global\setbox\authrun=\hbox{\small\rm Please give a shorter version\r
1464           with: {\tt\string\authorrunning\space and\r
1465              \string\titlerunning\space prior to \string\maketitle}}%\r
1466     \fi\r
1467     \xdef\@author{\copy\authrun}%\r
1468     \markboth{\@author}{\@author}%\r
1469 }\r
1470 %\r
1471 \def\biography#1{\par\addvspace{21dd}\small\noindent\r
1472 {\bfseries#1\unskip\ }\ignorespaces}\r
1473 \def\endbiography{\par\addvspace{12pt}}\r
1474 \r
1475 \def\biographyps#1#2{%\r
1476 \begingroup\r
1477 \endgraf\r
1478 \skip0=0pt plus2cm\r
1479 \advance\skip0 by2\bigskipamount\relax\r
1480 \vskip\skip0\r
1481 \small\r
1482 \setbox0=\vbox\bgroup\def\par{\hfil\break}%\r
1483                \sloppy\r
1484                \noindent\r
1485                \hangindent=113pt\r
1486                %\hangafter=-16\relax alt\r
1487                \hangafter=-14\relax %neu\r
1488                \smash{\raise 6.5pt\r
1489                       \llap{\vbox to0pt{\psfig{height=5truecm,%\r
1490                                                width=3.6truecm,#1}%\r
1491                                         \vss}\kern11pt}}%\r
1492                %\vrule height\topskip width0pt\r
1493                \if!#2!\else{\sc\ignorespaces#2\/} \fi\r
1494                \ignorespaces}\r
1495 %\r
1496 \def\endbiographyps{\egroup\r
1497 \dimen0=\ht0\advance\dimen0 by\dp0\r
1498 \ifdim\dimen0<5cm\r
1499    \vtop to5cm{\box0\vss}\r
1500 \else\r
1501    {\splittopskip=0pt\r
1502    \splitmaxdepth=\maxdepth\r
1503    \vbadness=10000\r
1504    \setbox1=\vsplit0 to 139.153dd\r
1505    \vtop{\box1}%\r
1506    \vskip-\prevdepth\r
1507    \unvbox0\r
1508    \endgraf}\r
1509 \fi\r
1510 \endgroup}\r
1511 \r
1512 \r
1513 \def\theyear{}\r
1514 \urlstyle{same}\r
1515 \def\wwwmark{~/~\url{www.naturalspublishing.com/Journals.asp}}\r
1516 %\r
1517 %\AtEndOfClass{%\r
1518 \let\if@runhead\iftrue\r
1519 \let\ProcessRunnHead=\relax%\lplrunnhead%%%%hhh\r
1520 %\def\@evenhead{\small\rlap{\thepage}\hfil\leftmark\unskip}%\r
1521 %\def\@oddhead{\small\ignorespaces\rightmark\hfil\llap{\thepage}}%\r
1522 \def\ps@default{%\r
1523   \def\@oddhead{%\r
1524 %    \hbox to 0pt{%\r
1525       \vbox to \headheight{\vss\baselineskip=3pt\r
1526         \hbox to\textwidth{%\r
1527           \small Appl. Math. Inf. Sci. {\bf \thevol}, No.~\thenumber,\r
1528           \firstpage\--\pageref*{LastPage}\\r
1529           (\theyear)%\r
1530           \wwwmark\hfill\r
1531           \smash{\lower5pt\hbox{\includegraphics{logo7pt}}}%hhh\r
1532           \quad\hbox to 2em{\hfill\thepage}}%\r
1533         \leavevmode\lower2pt\rlap{\hbox to\textwidth{\hrulefill}}%\r
1534 %      }%\r
1535     }%\r
1536   }%\r
1537   \def\@evenhead{\small%\r
1538     \hbox to\textwidth{%\r
1539       \vbox to \headheight{\vss\baselineskip=3pt\r
1540         \hbox to\textwidth{%\r
1541           \hbox to 2em{\thepage\hfill}\quad\r
1542           \smash{\lower5pt\hbox{\includegraphics{logo7pt}}}%hhh\r
1543           \hfill\the\authorrunning:~\the\titlerunning\r
1544         }%\r
1545         \leavevmode\lower2pt\hbox to\textwidth{\hrulefill}%\r
1546       }%\r
1547     }%\r
1548   }%\r
1549   \def\@oddfoot{%\r
1550     \vbox to 0pt{%\r
1551       \vskip-\baselineskip\footfontsize\baselineskip=0pt\relax\r
1552       \vskip\normalbaselineskip\r
1553       \hbox to\textwidth{\hrulefill}\vskip\dp\strutbox\r
1554       \hbox to 0pt{%\r
1555         \rlap{\hbox to \textwidth{\strut\leftfootmark\hss}}%\r
1556         \rlap{\hbox to \textwidth{\hss\strut\midfootmark\hss}}%\r
1557         \rlap{\hbox to \textwidth{\hss\strut\rightfootmark}}%hhh\r
1558       }\vss%\r
1559     }%\r
1560   }%\r
1561   \def\@evenfoot{%\r
1562     \vbox to 0pt{%\r
1563       \vskip-\baselineskip\footfontsize\baselineskip=0pt\relax\r
1564       \vskip\normalbaselineskip\r
1565       \hbox to\textwidth{\hrulefill}\vskip\dp\strutbox\r
1566       \hbox to 0pt{%\r
1567         \rlap{\hbox to \textwidth{\strut\rightfootmark\hss}}%\r
1568         \rlap{\hbox to \textwidth{\hss\strut\midfootmark\hss}}%\r
1569         \rlap{\hbox to \textwidth{\hss\strut\leftfootmark}}%hhh\r
1570       }\vss%\r
1571     }%\r
1572   }%\r
1573 }\r
1574 \def\corresponding#1{\g@addto@macro\@maketitle{\thispagestyle{titlepage}}%\r
1575   \def\ps@titlepage{%\r
1576     \def\leftfootmark{#1}%\r
1577     \def\wwwmark{~~{\bf } }%hhh\r
1578     \def\@evenhead{\small%\r
1579       \hbox to\textwidth{%\r
1580         \vbox to \headheight{\vss\baselineskip=3pt\r
1581           \hbox to\textwidth{%\r
1582             \hbox to 2em{\thepage\hfill}\quad\r
1583             \smash{\lower5pt\hbox{\includegraphics{logo7pt}}}%hhh\r
1584             \hfill\small Appl. Math. Inf. Sci. {\bf \thevol}, No.~\thenumber,\r
1585             \firstpage\--\pageref*{LastPage}\\r
1586             (\theyear)%\r
1587             \wwwmark\r
1588           }%\r
1589           \leavevmode\lower2pt\hbox to\textwidth{\hrulefill}%\r
1590         }%\r
1591       }%\r
1592     }%\r
1593   }%\r
1594 }\r
1595 \def\rightfootmark{\smash{\lower6mm\hbox{%%%%hhh\r
1596       \copyrightmark}}}\r
1597 \def\leftfootmark{}%\r
1598 \def\midfootmark{}%\r
1599 \def\footfontsize{\small}\r
1600 \corresponding{$^\ast$\,\mailname\ \ignorespaces \textcolor{blue}{\@mail}}\r
1601 \ps@default\r
1602 \setlength{\topmargin}{-1in}%\r
1603 \addtolength{\topmargin}{1cm}%\r
1604 \setlength{\textwidth}{17cm}%%%hhh\r
1605 %\setlength{\textheight}{257.23mm}% 57cc = 257.23mm\r
1606 \setlength{\textheight}{244.23mm}% 57cc = 257.23mm\r
1607 \addtolength{\textheight}{-2\baselineskip}% - foot (without copyright)\r
1608 % typearea correction: n * \baselineskip + \topsep (to avoid underfull \vbox)\r
1609 \setlength{\@tempdima}{\textheight}\r
1610 \divide\@tempdima by\baselineskip\r
1611 \multiply\@tempdima by\baselineskip\r
1612 \setlength{\topskip}{\textheight}\r
1613 \addtolength{\topskip}{-\@tempdima}\r
1614 \addtolength{\topskip}{\baselineskip}% min. \topskip\r
1615 \addtolength{\textheight}{-\baselineskip}\r
1616 % odd and even margin (1:2)\r
1617 \setlength{\oddsidemargin}{210mm}\r
1618 \addtolength{\oddsidemargin}{-\textwidth}\r
1619 \divide\oddsidemargin by 3\r
1620 \setlength{\evensidemargin}{2\oddsidemargin}\r
1621 \addtolength{\oddsidemargin}{-1in}\r
1622 \addtolength{\evensidemargin}{-1in}\r
1623 %\r
1624 \def\section{\@startsection{section}{1}{\z@}%\r
1625     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt\r
1626      minus4pt}{\large\bfseries}}\r
1627 \def\subsection{\@startsection{subsection}{2}{\z@}%\r
1628     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt\r
1629      minus4pt}{\large\itshape}}\r
1630 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}%\r
1631     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt\r
1632      minus4pt}{\normalsize\normalfont}}\r
1633 \def\paragraph{\@startsection{subsubsection}{4}{\z@}%\r
1634     {-21dd plus-4pt minus-4pt}{-1pt}{\normalsize}}\r
1635 \def\sectcounterend{}\r
1636 \def\@thmcounterend{.}\r
1637 \let\remark\relax\r
1638 \let\proof\relax\r
1639 \spnewtheorem*{remark}{Remark}{\itshape}{\rm}\r
1640 \spnewtheorem*{proof}{Proof\runinend}{\itshape}{\rm}\r
1641 \def\claimname{Claim}{\itshape}{\rm}\r
1642 \def\proofname{Proof}{\itshape}{\rm}\r
1643 \journalname{Applied Mathematics \& Information Sciences }\r
1644 %}\r
1645 \r
1646 \def\titlefont{\fontsize{18}{23pt}\sffamily} %Helvetica (Test3)\r
1647 \renewcommand\@biblabel[1]{[#1]\ }\r
1648 %%\r
1649 %% End of copy of file `lpl.clo'.\r
1650 \endinput\r
1651 %%\r
1652 %% End of file `NSP.cls'.\r