]> git.lyx.org Git - lyx.git/blob - lib/tex/ejour2.cls
27232d8c65ddfad68b7d57797fdbbbec757ac5b4
[lyx.git] / lib / tex / ejour2.cls
1 %
2 %-------------------------------- NEW ---------------------------------
3 % ejour2.cls   
4 % ==========
5 %
6 % class definition file for LaTeX2e
7 % two-column journal articles
8 %
9 % Martin Vermeer, June 1997
10 % =========================
11 % Lyx 10 version
12 %
13 % MV and Jean-Marc Lasgouttes, March 1998
14 % =======================================
15 % Lyx 12 version, fixes for reference list and author/year ref format
16 %
17 % Call either with 
18 %   \documentstyle (2.09 compatibility mode)
19 % or with
20 %   \documentclass (2e native mode, preferred)
21
22 % To be used with LaTeX2e and NFSS.
23 %
24 % No promises, no lies (from the GPL, freely interpreted)
25 % mail address for possible help:
26 %
27 %    mv@fgi.fi
28 %
29 %--------------------------------- OLD -------------------------------
30 % LaTeX package LJour2 1.0: main style file
31 % Springer-Verlag HD
32 %
33 % This file has been modified from ljour2.mac, 
34 % version 1.0 as of 6-May-94
35 % from Springer-Verlag
36 %
37 % LaTeX support of two column journals
38 %
39 %% It is for use with: LATEX VERSION 2.09 <25 March 1992>
40 %% and the NFSS from F. Mittelbach and R. Schoepf
41 %
42 % Please report all errors via e-mail to SPRINGER@vax.ntp.springer.de
43 % or to the address mentioned on page 2 of the documentation
44 %---------------------------------------------------------------------
45 %
46 \NeedsTeXFormat{LaTeX2e}[1994/06/01]
47 \ProvidesClass{ejour2}
48           [1997/06/17 (Martin Vermeer)]
49 %
50 % All this is new, 2e-like (MV)
51 \newif\if@draft
52 \newif\if@bibay
53 \newif\if@numart
54 \newif\if@english
55 \newif\if@francais
56 \newif\if@deutsch
57 \newif\if@footinfo
58 \newif\if@JG           % Is this Journal of Geodesy?
59
60 % Assume english  (MV)
61 \@englishtrue
62 \@francaisfalse
63 \@deutschfalse
64
65 %
66 % All new... -- MV June 1997
67 %
68 \DeclareOption{amssymb}{\relax}
69 \DeclareOption{draft}{\@drafttrue}
70 \DeclareOption{makeidx}{\relax}
71 \DeclareOption{script}{\relax}
72 \DeclareOption{footinfo}{\@footinfotrue}
73 \DeclareOption{twoside}{\relax}
74 \DeclareOption{referee}{\@drafttrue}
75 \DeclareOption{vecmath}{\relax}
76 \DeclareOption{vecphys}{\relax}
77 \DeclareOption{numart}{\@numarttrue}
78 \DeclareOption{fleqn}{\relax}
79 \DeclareOption{leqno}{\relax}
80 \DeclareOption{array}{\relax}
81 \DeclareOption{bibay}{\@bibaytrue}
82 %
83 \DeclareOption{deutsch}{\@deutschtrue\@englishfalse}
84 \DeclareOption{francais}{\@francaistrue\@englishfalse}
85 \DeclareOption{german}{\@deutschtrue\@englishfalse}
86 %
87 \DeclareOption{cropmark}{\relax}
88 \DeclareOption{psfig}{\relax}
89 \DeclareOption{JG}{\@JGtrue\@bibaytrue
90   \@englishtrue\@francaisfalse\@deutschfalse}
91
92 %% 
93 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
94 \ProcessOptions
95 \LoadClass[fleqn]{article}
96 %%
97
98 %  This was added to make equations always flush left
99 % Martin Vermeer 27/06/1997
100 %
101 \AtBeginDocument{\mathindent\z@}
102 %
103 %
104 \if@draft\@twocolumnfalse\@twosidefalse
105 \else\@twocolumntrue\@twosidetrue
106 \fi
107
108 %
109 % This is sprbegch.tex
110 % changes to LaTeX for Springer styles begin herewith
111 %
112 \makeatletter
113 %
114 % Added (cannibalized from compatibility mode code):
115 % Martin Vermeer 19/06/1997
116 %
117 \if@compatibility\else
118 % We are in native mode:
119 % Make 2e understand these old constructs:
120   \def\@footnotemark{%
121     \leavevmode
122     \ifhmode\edef\@x@sf{\the\spacefactor}\fi
123     \@makefnmark
124     \ifhmode\spacefactor\@x@sf\fi
125      \relax}
126   \def\@textsuperscript#1{$\m@th{\@gobble#1}$}
127   \def\@makefnmark{\hbox{$^{\@thefnmark}\m@th$}}
128 \fi
129 %
130 \def\@optiondef#1{\expandafter\def\csname sp@#1\endcsname{}}
131 %
132 \def\@springererr#1#2{%
133 \edef\@tempc{#2}\expandafter\errhelp\expandafter{\@tempc}%
134 \typeout{Springer Style error.  \space See documentation for
135  explanation.^^J \space\@spaces\@spaces\@spaces Type \space H <return>
136  \space for immediate help.}\errmessage{#1}}
137 %
138 \def\@springerwarn#1#2{%
139 \edef\@tempc{#2}\expandafter\errhelp\expandafter{\@tempc}%
140 \typeout{Springer Style Warning. \space See documentation for
141  explanation.^^J \space\@spaces\@spaces\@spaces Type \space H <return>
142  \space for immediate help.}\errmessage{#1}}
143 \def\springerstylefile{ejour2}
144 %
145 % This is document.tex
146 % checks whether style specified in \documentstyle and style used as
147 % formatfile are the same
148 \def\@documentstyle[#1]#2{\makeatletter
149   \def\@tempx{#2}
150   \def\@optionlist{#1}\gdef\@optionfiles{}%
151   \@ifundefined{springerstylefile}{\input \@tempx.sty\relax}%
152     {\ifx\@tempx\springerstylefile\relax
153      \typeout{This is \springerstylefile.}%
154     \else
155     \@springererr{Style '\springerstylefile' is preloaded}{Please
156      check your input.}\fi
157      \@options}
158     \let\@elt\input \@optionfiles \let\@elt\relax
159     \def\normalsize{\@normalsize}%
160     \normalsize\rm
161     \mark{{}{}}}
162 %
163 % Checks whether options specified to \documentstyle are allowed with
164 % current style (e.g. are listed in the dataset options.tex)
165 \def\@options{\let\@elt\relax
166   \@for\@tempa:=\@optionlist\do{
167      \@ifundefined{sp@\@tempa}%
168          {\@springerwarn{Option '\@tempa' not tested with
169                         \springerstylefile, this may not work}%
170                        {Press return to continue, but keep your
171                         fingers crossed.}}%
172      {}%
173      \@ifundefined{ds@\@tempa}{\xdef\@optionfiles{\@optionfiles
174      \@elt \@tempa.sty\relax}}{\csname ds@\@tempa\endcsname}%
175   }%
176 }
177 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
178 %
179 %             This is misc.xxx
180 %
181 % It defines various commands not available in "plain LaTeX"
182 %
183 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
184 \newcommand{\ts}{\thinspace{}}
185 \newcommand{\sq}{\hbox{\rlap{$\sqcap$}$\sqcup$}}
186 \newcommand{\qed}{\ifmmode\sq\else{\unskip\nobreak\hfil
187   \penalty50\hskip1em\null\nobreak\hfil\sq
188   \parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi{}}
189 \def\D{{\rm d}}
190 \def\E{{\rm e}}
191 \let\eul=\E
192 \def\I{{\rm i}}
193 \let\imag=\I
194 \def\strich{\vskip0.5cm\hrule\vskip3ptplus12pt\null}
195 % Frame for paste-in figures or tables
196 \def\mpicplace#1#2{%#1 = width   #2 = height
197 \vbox{\@tempdima=#2\advance\@tempdima by-2\fboxrule
198 \hrule\@height \fboxrule\@width #1
199 \hbox to #1{\vrule\@width \fboxrule\@height\@tempdima\hfil
200 \vrule\@width \fboxrule\@height\@tempdima}\hrule\@height
201 \fboxrule\@width #1}}
202 \def\picplace#1{\mpicplace{\hsize}{#1}}
203 % Ragged bottom for the actual page
204 \def\thisbottomragged{\def\@textbottom{\vskip\z@ plus.0001fil
205 \global\let\@textbottom\relax}}
206 \flushbottom
207 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208 %
209 %             This is referee.tex
210 %
211 % It defines the style option "referee" = "draft"
212 %
213 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
214 \if@draft
215  \typeout{A referee's copy will be produced.}%
216  \def\baselinestretch{2}\small
217  \normalsize\rm
218  \newbox\refereebox
219  \setbox\refereebox=\vbox to0pt{\vskip0.5cm%
220    \hbox to\textwidth{\normalsize\tt\hrulefill\lower0.5ex
221          \hbox{\kern5pt referee's copy\kern5pt}\hrulefill}\vss}%
222  \def\@oddfoot{\copy\refereebox}\let\@evenfoot=\@oddfoot
223 \fi
224 %
225 % This is ucgreek
226 % the definition of versal greek characters
227 \mathchardef\Gamma="0100
228 \mathchardef\Delta="0101
229 \mathchardef\Theta="0102
230 \mathchardef\Lambda="0103
231 \mathchardef\Xi="0104
232 \mathchardef\Pi="0105
233 \mathchardef\Sigma="0106
234 \mathchardef\Upsilon="0107
235 \mathchardef\Phi="0108
236 \mathchardef\Psi="0109
237 \mathchardef\Omega="010A
238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
239 %
240 %             This is vector.tex
241 %
242 % It redefines the plain TeX \vec command
243 % and adds a \tens command for tensors
244 %
245 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
246
247 \def\vec@style{\bf}  % hook to change style of vector
248                      % default yields mathstyle i.e. boldface upright
249
250 \def\vec#1{\relax\ifmmode\mathchoice
251 {\mbox{\boldmath$\vec@style\displaystyle#1$}}
252 {\mbox{\boldmath$\vec@style\textstyle#1$}}
253 {\mbox{\boldmath$\vec@style\scriptstyle#1$}}
254 {\mbox{\boldmath$\vec@style\scriptscriptstyle#1$}}\else
255 \hbox{\boldmath$\vec@style\textstyle#1$}\fi}
256
257 \def\tens#1{\relax\ifmmode\mathchoice{\mbox{$\sf\displaystyle#1$}}
258 {\mbox{$\sf\textstyle#1$}}
259 {\mbox{$\sf\scriptstyle#1$}}
260 {\mbox{$\sf\scriptscriptstyle#1$}}\else
261 \hbox{$\sf\textstyle#1$}\fi}
262 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
263 %
264 %             This is layout.lj2
265 %
266 % It defines various sizes and settings for journals
267 %
268 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
269 %
270 \hoffset=-1cm
271 \voffset=-1.5cm  % changed from -2.5 cm MV
272 %
273 \topmargin=0cm
274 \textwidth=39.5cc
275 \textheight=640dd
276 \columnsep=1.5cc
277 \oddsidemargin=0cm
278 \evensidemargin=0cm
279 \headsep=16.74dd
280 \newdimen\headerboxheight
281 \headerboxheight=202.23pt % 20 10.5dd-lines - 2\baselineskip
282 %
283 \baselineskip=10.5dd
284 \parindent=15pt
285 \parskip=0pt plus 1pt
286 \hfuzz=2pt
287 \frenchspacing
288 %
289 \renewcommand{\topfraction}{.9}
290 \renewcommand{\bottomfraction}{.9}
291 \renewcommand{\textfraction}{.1}
292 \renewcommand{\floatpagefraction}{.9}
293 \renewcommand{\dbltopfraction}{.9}
294 \renewcommand{\dblfloatpagefraction}{.9}
295 %
296 \tolerance=500
297 %
298 \abovedisplayskip=3 mm plus6pt minus 4pt
299 \belowdisplayskip=3 mm plus6pt minus 4pt
300 \abovedisplayshortskip=0.0 mm plus6pt
301 \belowdisplayshortskip=2 mm plus4pt minus 4pt
302 %
303 \predisplaypenalty=0
304 \clubpenalty=20000
305 \widowpenalty=20000
306 %
307 \arraycolsep=1.5pt
308 %
309 \newdimen\betweenumberspace          % dimension for space between
310 \betweenumberspace=3.33pt            % number and text of titles.
311 \newdimen\aftertext                  % dimension for space after
312 \aftertext=5pt                       % text of title.
313 \newdimen\headlineindent             % dimension for space between
314 \headlineindent=1.166cm              % number and text of headings.
315 %
316 %
317 % Figures and tables are processed in small print
318 %
319 \if@compatibility
320   % in 2.09 compat mode:   (mv 27/06/97 )
321   \def\figure{\small\rm\@float{figure}}
322   \@namedef{figure*}{\small\rm\@dblfloat{figure}}
323   \def\table{\small\rm\@float{table}}
324   \@namedef{table*}{\small\rm\@dblfloat{table}}
325 \else
326   % 2e native mode; I added this (MV)
327   \renewenvironment{figure}
328                  {\@float{figure}\small}
329                  {\end@float}
330   \renewenvironment{figure*}
331                  {\@dblfloat{figure}\small}
332                  {\end@dblfloat}
333   \renewenvironment{table}
334                  {\@float{table}\small}
335                  {\end@float}
336   \renewenvironment{table*}
337                  {\@dblfloat{table}\small}
338                  {\end@dblfloat}
339 \fi
340 %
341 \def\fps@figure{htbp}
342 \def\fps@table{htbp}
343 %
344 \labelsep=5pt                        % measures for lists
345 \leftmargini=\parindent
346 \labelwidth\leftmargini\advance\labelwidth-\labelsep
347 \leftmarginii=\parindent
348 \parsep=\parskip
349 %
350 \def\@listI{\leftmargin\leftmargini
351         \parsep=\parskip
352         \topsep=\medskipamount
353         \itemsep=\parskip \advance\itemsep by -\parsep}
354 \let\@listi\@listI
355 \@listi
356 %
357 \def\@listii{\leftmargin\leftmarginii
358         \labelwidth\leftmarginii\advance\labelwidth by -\labelsep
359         \parsep=\parskip
360         \topsep=\z@
361         \itemsep=\parskip \advance\itemsep by -\parsep}
362 %
363 \def\@normalsize{\@setsize\normalsize{10.5dd}\xpt\@xpt
364 \abovedisplayskip=3 mm plus6pt minus 4pt
365 \belowdisplayskip=3 mm plus6pt minus 4pt
366 \abovedisplayshortskip=0.0 mm plus6pt
367 \belowdisplayshortskip=2 mm plus4pt minus 4pt
368 \let\@listi\@listI}
369 %
370 \def\small{\@setsize\small{9dd}\viiipt\@viiipt
371 \abovedisplayskip 8.5pt plus 3pt minus 4pt%
372 \belowdisplayskip \abovedisplayskip
373 \abovedisplayshortskip \z@ plus2pt%
374 \belowdisplayshortskip 4pt plus2pt minus 2pt
375 \def\@listi{\leftmargin\leftmargini
376 \topsep 4pt plus 2pt minus 2pt\parsep\parskip
377 \itemsep\parskip}}
378 %
379 \def\petit{\par\addvspace{6pt}\small}
380 \def\endpetit{\par\addvspace{6pt}}
381 %
382 \def\footnotesize{\@setsize\footnotesize{9dd}\viiipt\@viiipt
383 \abovedisplayskip 6pt plus 2pt minus 4pt%
384 \belowdisplayskip \abovedisplayskip
385 \abovedisplayshortskip \z@ plus 1pt%
386 \belowdisplayshortskip 3pt plus 1pt minus 2pt
387 \def\@listi{\leftmargin\leftmargini
388 \topsep 3pt plus 1pt minus 1pt\parsep\parskip
389 \itemsep\parskip}}
390 %
391 \def\scriptsize{\@setsize\scriptsize{8pt}\viipt\@viipt}
392 \def\tiny{\@setsize\tiny{6pt}\vpt\@vpt}
393 \def\large{\@setsize\large{13dd}\xiipt\@xiipt}
394 \def\Large{\@setsize\Large{17dd}\xviipt\@xviipt}
395 \def\LARGE{\@setsize\LARGE{17dd}\xviipt\@xviipt}
396 \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
397 \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
398 % This is texte.tex
399 % it defines various texts and their translations
400 % called up with documentclass options
401 \if@english
402 \typeout{In English.}
403 \def\abstractname{Abstract.}
404 \def\ackname{Acknowledgements.}
405 \def\andname{and}
406 \def\lastandname{, and}
407 \def\appendixname{Appendix}
408 \def\chaptername{Chapter}
409 \def\claimname{Claim}
410 \def\conjecturename{Conjecture}
411 \def\contentsname{Table of Contents}
412 \def\corollaryname{Corollary}
413 \def\definitionname{Definition}
414 \def\examplename{Example}
415 \def\exercisename{Exercise}
416 \def\figurename{Fig.}
417 \def\keywordname{{\bf Key words:}}
418 \def\indexname{Index}
419 \def\lemmaname{Lemma}
420 \def\contriblistname{List of Contributors}
421 \def\listfigurename{List of Figures}
422 \def\listtablename{List of Tables}
423 \def\mailname{{\it Correspondence to\/}:}
424 \def\noteaddname{Note added in proof}
425 \def\notename{Note}
426 \def\partname{Part}
427 \def\problemname{Problem}
428 \def\proofname{Proof}
429 \def\propertyname{Property}
430 \def\propositionname{Proposition}
431 \def\questionname{Question}
432 \def\refname{References}
433 \def\remarkname{Remark}
434 \def\seename{see}
435 \def\solutionname{Solution}
436 \def\subclassname{{\it Subject Classifications\/}:}
437 \def\tablename{Table}
438 \def\theoremname{Theorem}
439 \fi
440 % Names of theorem like environments are already defined
441 % but must be translated if another language is chosen
442 %
443 % French section
444 %
445 \if@francais
446  \typeout{On parle francais.}%
447  \def\abstractname{R\'esum\'e.}%
448  \def\ackname{Remerciements.}%
449  \def\andname{et}%
450  \def\lastandname{ et}%
451  \def\appendixname{Appendice}
452  \def\chaptername{Chapitre}%
453  \def\claimname{Pr\'etention}%
454  \def\conjecturename{Hypoth\`ese}%
455  \def\contentsname{Table des mati\`eres}%
456  \def\corollaryname{Corrolaire}%
457  \def\definitionname{D\'efinition}%
458  \def\examplename{Exemple}%
459  \def\exercisename{Exercice}%
460  \def\figurename{Fig.}%
461  \def\keywordname{{\bf Mots-cl\'e:}}
462  \def\indexname{Index}
463  \def\lemmaname{Lemme}%
464  \def\contriblistname{Liste des contributeurs}
465  \def\listfigurename{Liste des figures}%
466  \def\listtablename{Liste des tables}%
467  \def\mailname{{\it Correspondence to\/}:}
468  \def\noteaddname{Note ajout\'ee \`a l'\'epreuve}%
469  \def\notename{Remarque}%
470  \def\partname{Partie}%
471  \def\problemname{Probl\`eme}%
472  \def\proofname{\'Epreuve}%
473  \def\propertyname{Caract\'eristique}%
474 %\def\propositionname{Proposition}%
475  \def\questionname{Question}%
476  \def\refname{R\'ef\'erences}
477  \def\remarkname{Remarque}%
478  \def\seename{see}
479  \def\solutionname{Solution}%
480  \def\subclassname{{\it Subject Classifications\/}:}
481  \def\tablename{Tableau}%
482  \def\theoremname{Th\'eor\`eme}%
483 \fi
484 %
485 % German section
486 \if@deutsch
487  \typeout{Man spricht Deutsch.}
488  \def\abstractname{Zusammenfassung.}%
489  \def\ackname{Danksagung.}%
490  \def\andname{und}%
491  \def\lastandname{ und}%
492  \def\appendixname{Anhang}%
493  \def\chaptername{Kapitel}%
494  \def\claimname{Behauptung}%
495  \def\conjecturename{Hypothese}%
496  \def\contentsname{Inhaltsverzeichnis}%
497  \def\corollaryname{Korollar}%
498 %\def\definitionname{Definition}%
499  \def\examplename{Beispiel}%
500  \def\exercisename{\"Ubung}%
501  \def\figurename{Abb.}%
502  \def\keywordname{{\bf Schl\"usselw\"orter:}}
503  \def\indexname{Index}
504 %\def\lemmaname{Lemma}%
505  \def\contriblistname{Mitarbeiter}
506  \def\listfigurename{Abbildungsverzeichnis}%
507  \def\listtablename{Tabellenverzeichnis}%
508  \def\mailname{{\it Correspondence to\/}:}
509  \def\noteaddname{Nachtrag}%
510  \def\notename{Anmerkung}%
511  \def\partname{Teil}%
512 %\def\problemname{Problem}%
513  \def\proofname{Beweis}%
514  \def\propertyname{Eigenschaft}%
515 %\def\propositionname{Proposition}%
516  \def\questionname{Frage}%
517  \def\refname{Literatur} % Meine zufugung (MV)
518  \def\remarkname{Anmerkung}%
519  \def\seename{see}
520  \def\solutionname{L\"osung}%
521  \def\subclassname{{\it Subject Classifications\/}:}
522  \def\tablename{Tab.}%
523 %\def\theoremname{Theorem}%
524 \fi
525 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
526 %
527 %             This is headjour.tex
528 %
529 % Titles for journals are redefined
530 %
531 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
532 \setcounter{secnumdepth}{3}          % depth (3) of the highest-level
533                                       % sectioning command
534 \def\thesection{\arabic{section}}
535 \def\thesubsection{\thesection.\arabic{subsection}}
536 \def\thesubsubsection{\thesubsection.\arabic{subsubsection}}
537 %
538 %  definition of \chapter
539 %  not allowed with this springer style
540 \def\chapter#1{\@springererr{Command \string\chapter \space
541                         is not allowed with this Style File}%
542                        {Please remove command \string\chapter.}%
543                        \relax}
544 %
545 \def\sectcounterend{.}
546 \def\sec@hangfrom#1{\setbox\@tempboxa\hbox{#1}%
547       \hangindent \z@\noindent\box\@tempboxa}
548 %
549 \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
550    \let\@svsec\@empty\else
551    \refstepcounter{#1}\edef\@svsec{\csname the#1%
552    \endcsname\sectcounterend\hskip\betweenumberspace\ignorespaces}\fi
553    \@tempskipa #5\relax
554     \ifdim \@tempskipa>\z@
555       \begingroup #6\relax
556         \sec@hangfrom{\hskip #3\relax\@svsec}{%
557         \raggedright
558         \hyphenpenalty \@M%
559         \interlinepenalty \@M #8\par}%
560       \endgroup
561      \csname #1mark\endcsname{#7}
562      \addcontentsline
563        {toc}{#1}{\ifnum #2>\c@secnumdepth \else
564                     \protect\numberline{\csname the#1\endcsname}\fi
565                   #7}
566 % debugging - MV
567 %                 \typeout{added a line to TOC:}
568 %                 \typeout{toc}
569 %                 \typeout{\protect\numberline{\csname the#1\endcsname}}
570 %                 \typeout{#1}
571      \else
572      \def\@svsechd{#6\hskip #3\relax
573                 \@svsec #8\hskip\aftertext\ignorespaces
574                     \csname #1mark\endcsname
575                     {#7}
576                     \addcontentsline
577                          {toc}{#1}{\ifnum #2>\c@secnumdepth \else
578                            \protect\numberline{\csname the#1\endcsname}\fi
579                      #7}
580 %                   \typeout{added another line to TOC}
581                                   }
582      \fi
583    \@xsect{#5}}
584 %
585 %
586 % measures and setting of sections
587 %
588 \def\section{\@startsection{section}{1}{\z@}%
589     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt
590      minus4pt}{\normalsize\bf\boldmath}}
591 \def\subsection{\@startsection{subsection}{2}{\z@}%
592     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt
593      minus4pt}{\normalsize\it}}
594 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}%
595     {-21dd plus-4pt minus-4pt}{10.5dd plus 4pt
596      minus4pt}{\normalsize}}
597 \def\paragraph{\@startsection{subsubsection}{4}{\z@}%
598     {-21dd plus-4pt minus-4pt}{-1pt}{\normalsize\it}}
599 %  definition of \subparagraph
600 %  not allowed with springer styles
601 \def\subsubparagraph#1{\@springererr{Command \string\subparagraph \space
602                         is not allowed with this Style File}%
603                        {Please remove command \string\subparagraph.}%
604                        \relax}
605 %  definition of \part
606 %  not allowed with springer styles
607 \def\part#1{\@springererr{Command \string\part \space
608                         is not allowed with this Style File}%
609                        {Please remove command \string\part.}%
610                        \relax}
611 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
612 %
613 %             This is toc.xxx
614 %
615 % it modifies the appearence of the table of contents
616 %
617 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
618 \def\tableofcontents{
619  \@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi
620 %  \Chapter*{\contentsname \@mkboth{{\contentsname}}{{\contentsname}}}
621  \section*{\contentsname \@mkboth{{\contentsname}}{{\contentsname}}}
622  \@starttoc{toc}
623  \if@restonecol\twocolumn\fi
624                     }
625
626 \setcounter{tocdepth}{3}
627
628 \def\l@part#1#2{\addpenalty{\@secpenalty}%
629    \addvspace{2em plus\p@}%  % space above part line
630    \begingroup
631      \parindent \z@
632      \rightskip \z@ plus 5em
633      \hrule\vskip5pt
634      \bf\boldmath        % set line in boldface
635      \leavevmode          % TeX command to enter horizontal mode.
636      #1\par
637      \vskip5pt
638      \hrule
639      \vskip1pt
640      \nobreak             % Never break after part entry
641    \endgroup}
642
643 \def\@dotsep{2}
644
645 \def\l@chapter#1#2{\addpenalty{-\@highpenalty}
646  \vskip 1.0em plus 1pt \@tempdima \tocchpnum \begingroup
647  \parindent \z@ \rightskip \@pnumwidth
648  \parfillskip -\@pnumwidth
649  \leavevmode \advance\leftskip\@tempdima \hskip -\leftskip
650  {\bf\boldmath#1}\nobreak
651  \leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern
652  \@dotsep mu$}\hfill
653  \nobreak\hbox to\@pnumwidth{\hss #2}\par
654  \penalty\@highpenalty \endgroup}
655
656 \newdimen\tocchpnum
657 \newdimen\tocsecnum
658 \newdimen\tocsectotal
659 \newdimen\tocsubsecnum
660 \newdimen\tocsubsectotal
661 \newdimen\tocsubsubsecnum
662 \newdimen\tocsubsubsectotal
663 \newdimen\tocparanum
664 \newdimen\tocparatotal
665 \newdimen\tocsubparanum
666 \tocchpnum=20\p@            % chapter {\bf 88.} plus 5.3pt
667 \tocsecnum=22.5\p@          % section 88.8. plus 4.722pt
668 \tocsubsecnum=30.5\p@       % subsection 88.8.8 plus 4.944pt
669 \tocsubsubsecnum=38\p@      % subsubsection 88.8.8.8 plus 4.666pt
670 \tocparanum=45\p@           % paragraph 88.8.8.8.8 plus 3.888pt
671 \tocsubparanum=53\p@        % subparagraph 88.8.8.8.8.8 plus 4.11pt
672 \def\calctocindent{%
673 \tocsectotal=\tocchpnum
674 \advance\tocsectotal by\tocsecnum
675 \tocsubsectotal=\tocsectotal
676 \advance\tocsubsectotal by\tocsubsecnum
677 \tocsubsubsectotal=\tocsubsectotal
678 \advance\tocsubsubsectotal by\tocsubsubsecnum
679 \tocparatotal=\tocsubsubsectotal
680 \advance\tocparatotal by\tocparanum}
681 \calctocindent
682
683 \def\l@section{\@dottedtocline{1}{\tocchpnum}{\tocsecnum}}
684 \def\l@subsection{\@dottedtocline{2}{\tocsectotal}{\tocsubsecnum}}
685 \def\l@subsubsection{\@dottedtocline{3}{\tocsubsectotal}{\tocsubsubsecnum}}
686 \def\l@paragraph{\@dottedtocline{4}{\tocsubsubsectotal}{\tocparanum}}
687 \def\l@subparagraph{\@dottedtocline{5}{\tocparatotal}{\tocsubparanum}}
688
689 \def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
690  \fi\chapter*{\listfigurename\@mkboth{{\listfigurename}}{{\listfigurename}}}
691  \@starttoc{lof}\if@restonecol\twocolumn\fi}
692 \def\l@figure{\@dottedtocline{1}{0em}{\tocsecnum}}
693
694 \def\listoftables{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn
695  \fi\chapter*{\listtablename\@mkboth{{\listtablename}}{{\listtablename}}}
696  \@starttoc{lot}\if@restonecol\twocolumn\fi}
697 \let\l@table\l@figure
698
699 %
700 %
701 % This is kopf2.xxx
702 % it does the whole head of a contribution for two-column journals
703 % extending the \maketitle command.
704 % LaTeX does not provide a command to enter the authors institute
705 % addresses. The \institute command is defined here.
706
707 \newcounter{inst}
708 \newcounter{auth}
709 \newdimen\instindent
710 \newbox\authrun
711 \newtoks\authorrunning
712 \newbox\titrun
713 \newtoks\titlerunning
714
715 \def\journalname#1{\gdef\@journalname{#1}}
716
717 \def\headnote#1{\gdef\@headnote{#1}}
718 \def\@headnote{}
719
720 \def\dedication#1{\gdef\@dedic{#1}}
721 \def\@dedic{}
722
723 \def\institute#1{\gdef\@institute{#1}}
724
725 \def\institutename{\par
726  \begingroup
727  \parindent=0pt
728  \parskip=0pt
729  \setcounter{inst}{1}%
730  \def\and{\par\stepcounter{inst}%
731  \noindent
732  \hbox to\instindent{\hss$^{\theinst}$\enspace}\ignorespaces}%
733  \setbox0=\vbox{\def\thanks##1{}\@institute}  % !!!
734  \ifnum\value{inst}>9\relax\setbox0=\hbox{$^{88}$\enspace}%
735                  \else\setbox0=\hbox{$^{8}$\enspace}\fi
736  \instindent=\wd0\relax
737  \ifnum\value{inst}=1\relax
738  \else
739    \setcounter{inst}{1}%
740    \noindent
741    \hbox to\instindent{\hss$^{\theinst}$\enspace}\ignorespaces
742  \fi
743  \small
744  \ignorespaces
745  \@institute\par
746  \endgroup}
747
748 %\def\mail#1{\begingroup
749 %\def\protect{\noexpand\protect\noexpand}\xdef\@thanks{%
750 %\protect\footnotetext[0]{\kern-\parindent\mailname\
751 %\ignorespaces#1}\@thanks}\endgroup\ignorespaces}
752 \def\mail#1{\gdef\@mail{#1}}
753 \def\@mail{}
754
755 \def\@thanks{}
756
757 \def\@fnsymbol#1{\ifcase#1\or\star\or{\star\star}\or{\star\star\star}%
758    \or \dagger\or \ddagger\or
759    \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger
760    \or \ddagger\ddagger \else\@ctrerr\fi\relax}
761
762 \def\inst#1{\unskip$^{#1}$}
763 \def\fnmsep{\unskip$^,$}
764
765 \def\subtitle#1{\gdef\@subtitle{#1}}
766 \def\@subtitle{}
767
768 %\def\thesaurus#1{\gdef\@thesaurus{#1}}
769
770 \def\ch@ckobl#1#2{\@ifundefined{@#1}
771        {\typeout{Missing \expandafter\string\csname#1\endcsname}%
772         \csname #1\endcsname{#2}}
773        {}}
774
775 \newif\if@normhead \@normheadtrue
776 \def\hugehead{\@normheadfalse
777 \onecolumn
778 \let\thanks=\footnote
779 \long\def\@makefntext##1{\parindent 15pt
780      \columnwidth\textwidth\advance\columnwidth -\columnsep
781      \divide\columnwidth\tw@\hsize\columnwidth \linewidth\columnwidth
782      \noindent\hbox to15pt{\hss$\m@th^{\@thefnmark}$ }
783      ##1}%
784 }
785
786 \def\maketitle{\par
787 %\ch@ckobl{thesaurus}{missing; you have not inserted them}
788 %
789 % Added for Journal of Geodesy (Martin Vermeer, June 1997)
790 %
791 \if@JG\journalname{Journal of Geodesy}\fi
792 %
793 %
794 \ch@ckobl{journalname}{Noname}
795 \ch@ckobl{date}{the date of receipt and acceptance should be inserted
796 later}
797 \ch@ckobl{title}{A title should be given}
798 \ch@ckobl{author}{Name(s) and initial(s) of author(s) should be given}
799 \ch@ckobl{institute}{Address(es) of author(s) should be given}
800  \begingroup
801  \def\thefootnote{\fnsymbol{footnote}}
802  \def\lastand{\ifnum\value{inst}=2\relax
803                  \unskip{} \andname\
804               \else
805                  \unskip, \andname\
806               \fi}%
807  \def\and{\stepcounter{auth}\relax
808           \ifnum\value{auth}=\value{inst}%
809              \lastand
810           \else
811              \unskip,
812           \fi}%
813  \thispagestyle{empty}
814  \if@twocolumn
815    \twocolumn[\@maketitle]
816  \else
817    \newpage \@maketitle
818  \fi
819  \global\@topnum\z@
820  \if@normhead
821     \@thanks
822  \else
823     \if@draft
824       \onecolumn[\vspace{\@tempdima}]  % !!!
825     \else
826       \twocolumn[\vspace{\@tempdima}] 
827     \fi
828     \addtocounter{page}{-1}
829     \if!\the\authorrunning!
830        \authorrunning{ }%
831     \fi
832  \fi
833  \if!\@mail!\else
834     \footnotetext[0]{\kern-\parindent\mailname\
835     \ignorespaces\@mail}%
836  \fi
837  \def\\{ }\def\inst##1{\unskip}\def\thanks##1{\unskip}%
838  \def\fnmsep{\unskip}%
839  \if!\the\authorrunning!
840    \value{inst}=\value{auth}%
841    \setcounter{auth}{1}%
842  \else
843    \edef\@author{\the\authorrunning}%
844  \fi
845  \global\setbox\authrun=\hbox{\small\rm\unboldmath\@author\unskip}%
846  \instindent=\textwidth
847  \advance\instindent by-\headlineindent
848  \ifdim\wd\authrun>\instindent
849     \typeout{Names of authors too long for running head. Please supply}%
850     \typeout{a shorter form with \string\authorrunning\space prior to
851              \string\maketitle}%
852     \global\setbox\authrun=\hbox{\small\rm
853     Authors suppressed due to excessive length}%
854  \fi
855  \xdef\@author{\copy\authrun}%
856  \if!\the\titlerunning!\else
857    \edef\@title{\the\titlerunning}%
858  \fi
859  \global\setbox\titrun=\hbox{\small\rm\unboldmath\ignorespaces\@title}%
860  \ifdim\wd\titrun>\instindent
861     \typeout{Title too long for running head. Please supply}%
862     \typeout{a shorter form with \string\titlerunning\space prior to
863              \string\maketitle}%
864     \global\setbox\titrun=\hbox{\small\rm
865     Title suppressed due to excessive length}%
866  \fi
867  \xdef\@title{\copy\titrun}%
868  \markboth{\@author}{\@title}
869  \endgroup
870  \setcounter{footnote}{0}
871  \let\maketitle\relax
872  \let\@maketitle\relax
873  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}\gdef\@subtitle{}%
874  \let\thanks\relax}
875
876 \def\makeheadbox{{%
877 \hbox to0pt{\vbox{\baselineskip=10dd\hrule\hbox
878 to\hsize{\vrule\kern3pt\vbox{\kern3pt
879 \hbox{\bf\@journalname\ Manuscript-Nr.}
880 \hbox{(will be inserted by hand later)}
881 \kern3pt}\hfil\kern3pt\vrule}\hrule}%
882 \hss}}}
883 \def\@maketitle{\newpage
884  \rm
885  \vbox to0pt{\vskip-40pt
886  \nointerlineskip
887  \makeheadbox
888  \vss}\nointerlineskip
889  \if@normhead
890     \setbox\authrun=\vbox\bgroup
891  \fi
892  {\Large \bf\boldmath
893   \pretolerance=10000
894   \rightskip=0pt plus 4cm
895  \if!\@headnote!\else
896    \noindent
897    {\em\ignorespaces\@headnote\par}\vskip 3.5mm
898  \fi
899   \noindent\ignorespaces
900   \@title \par}\vskip 11.24pt\relax
901  \bf
902  \if!\@subtitle!\else
903    {\large\bf\boldmath
904    \pretolerance=10000
905    \rightskip=0pt plus 3cm
906    \noindent\ignorespaces\@subtitle \par}\vskip 11.24pt
907  \fi
908  \lineskip .5em
909  \setbox0=\vbox{\setcounter{auth}{1}\def\and{\stepcounter{auth} }%
910                 \hfuzz=2\textwidth\def\thanks##1{}\@author}%
911  \value{inst}=\value{auth}%
912  \setcounter{auth}{1}%
913  \rightskip=0pt plus 2cm
914  \noindent\ignorespaces\@author\vskip7.23pt
915  \rightskip=0pt\relax
916  \small\rm
917  \institutename
918  \vskip 12.85pt \noindent\@date
919  \if!\@dedic!\else
920     \par
921     \normalsize\it
922     \addvspace\baselineskip
923     \noindent\@dedic
924  \fi
925  \if@normhead
926     \egroup % end of header box
927     \@tempdima=\headerboxheight
928     \advance\@tempdima by-\ht\authrun
929     \advance\@tempdima by-\pagetotal
930     \ifdim\@tempdima>0pt
931        \vskip\@tempdima
932     \fi
933     \unvbox\authrun
934     \global\@minipagetrue
935     \global\everypar{\global\@minipagefalse\global\everypar{}}
936  \else
937     \typeout{\the\c@auth\space author names and}
938     \typeout{\the\c@inst\space institutes processed}
939     \global\@tempdima=\pagetotal
940     \global\advance\@tempdima by22.47pt
941  \fi
942  \vskip22.47pt
943 }
944
945 % Define `abstract' environment
946 \def\abstract{\topsep=0pt\partopsep=0pt\parsep=0pt\itemsep=0pt\relax
947 \trivlist\item[\hskip\labelsep
948 {\bf\abstractname}]\if!\abstractname!\hskip-\labelsep\fi}
949 \let\endabstract=\endtrivlist
950
951 % Define `transsummary' environment
952 \def\transsummary{\trivlist\item[\hskip\labelsep
953 {\bf Summary.}]}
954 \let\endtranssummary=\endtrivlist
955
956 % Define \transtitle, (\trans-)\keywords, \subclass, and \PACS
957 \def\transtitle#1{\par\addvspace\baselineskip\noindent
958 {\bf\ignorespaces#1}\par}
959 \def\transkey#1{\par\addvspace\baselineskip\noindent
960 {\bf Key words: }\ignorespaces#1\par}
961 \def\keywords{\par\addvspace\baselineskip\noindent\keywordname\
962 \ignorespaces}
963 \def\subclass{\par\addvspace\baselineskip\noindent\subclassname\
964 \ignorespaces}
965 \def\PACS{\par\addvspace\baselineskip\noindent{\bf PACS: }\ignorespaces}
966 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
967 %
968 %             This is runnhead.j
969 %
970 % It redefines the headings of a text. There are two
971 % pagestyles possible: "\pagestyle{headings}" and
972 % "\pagestyle{myheadings}". The later is the default.
973 %
974 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
975 \if@twoside
976 \def\ps@headings{\let\@mkboth\markboth
977    \def\@oddfoot{}\def\@evenfoot{}
978    \def\@evenhead{\rm\thepage\hskip\headlineindent\leftmark\hfil}
979    \def\@oddhead{\hfil\rightmark\hskip\headlineindent\rm\thepage}
980    \let\chaptermark\@gobble
981    \def\sectionmark##1{\markright{{\ifnum\c@secnumdepth>\z@
982       \thesection.\hskip\betweenumberspace\fi ##1}}}}
983 \else \def\ps@headings{\let\@mkboth\markboth
984    \def\@oddfoot{}\def\@evenfoot{}
985    \def\@oddhead{\hfil\rightmark\hskip\headlineindent\rm\thepage}
986    \let\chaptermark\@gobble
987    \def\sectionmark##1{\markright{{\ifnum\c@secnumdepth>\z@
988       \thesection.\hskip\betweenumberspace\fi ##1}}}}
989 \fi
990 \def\ps@myheadings{\let\@mkboth\@gobbletwo
991    \def\@oddfoot{}\def\@evenfoot{}
992    \def\@evenhead{\small\rm\thepage\hfil\leftmark}
993    \def\@oddhead{\small\rm\rightmark\hfil\thepage}
994    \def\chaptermark##1{}
995    \def\sectionmark##1{}%
996    \def\subsectionmark##1{}}
997 \ps@myheadings
998 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
999 %
1000 %             This is theorem.xxx
1001 %
1002 % It redefines the "\newtheorem" command.
1003 %
1004 % Usage now:
1005 %
1006 %     \newtheorem{env_nam}{caption}[within]{cap_font}{body_font}
1007 % or  \newtheorem{env_nam}[numbered_like]{caption}{cap_font}{body_font}
1008 % or  \newtheorem*{env_nam}{caption}{cap_font}{body_font}
1009 %
1010 % New is "cap_font" and "body_font". It stands for
1011 % fontdefinition of the caption and the text itself.
1012 %
1013 % "\newtheorem*" gives a theorem without number.
1014 %
1015 % A defined newthoerem environment is used as described
1016 % by Lamport.
1017 %
1018 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1019
1020 \def\@thmcounterend{.}
1021
1022 \def\newtheorem{\@ifstar{\@sthm}{\@Sthm}}
1023
1024 % definition of \newtheorem with number
1025
1026 \def\@Sthm#1{\@ifnextchar[{\@othm{#1}}{\@nthm{#1}}}
1027
1028 \def\@xnthm#1#2[#3]#4#5{\expandafter\@ifdefinable\csname #1\endcsname
1029    {\@definecounter{#1}\@addtoreset{#1}{#3}%
1030    \expandafter\xdef\csname the#1\endcsname{\expandafter\noexpand
1031      \csname the#3\endcsname \@thmcountersep \@thmcounter{#1}}%
1032    \expandafter\xdef\csname #1name\endcsname{#2}%
1033    \global\@namedef{#1}{\@thm{#1}{\csname #1name\endcsname}{#4}{#5}}%
1034                               \global\@namedef{end#1}{\@endtheorem}}}
1035
1036 \def\@ynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname
1037    {\@definecounter{#1}%
1038    \expandafter\xdef\csname the#1\endcsname{\@thmcounter{#1}}%
1039    \expandafter\xdef\csname #1name\endcsname{#2}%
1040    \global\@namedef{#1}{\@thm{#1}{\csname #1name\endcsname}{#3}{#4}}%
1041                                \global\@namedef{end#1}{\@endtheorem}}}
1042
1043 \def\@othm#1[#2]#3#4#5{%
1044   \@ifundefined{c@#2}{\@latexerr{No theorem environment `#2' defined}\@eha}%
1045   {\expandafter\@ifdefinable\csname #1\endcsname
1046   {\global\@namedef{the#1}{\@nameuse{the#2}}%
1047   \expandafter\xdef\csname #1name\endcsname{#3}%
1048   \global\@namedef{#1}{\@thm{#2}{\csname #1name\endcsname}{#4}{#5}}%
1049   \global\@namedef{end#1}{\@endtheorem}}}}
1050
1051 \def\@thm#1#2#3#4{\refstepcounter
1052     {#1}\@ifnextchar[{\@ythm{#1}{#2}{#3}{#4}}{\@xthm{#1}{#2}{#3}{#4}}}
1053
1054 \def\@xthm#1#2#3#4{\@begintheorem{#2}{\csname the#1\endcsname}{#3}{#4}%
1055                     \ignorespaces}
1056
1057 \def\@ythm#1#2#3#4[#5]{\@opargbegintheorem{#2}{\csname
1058        the#1\endcsname}{#5}{#3}{#4}\ignorespaces}
1059
1060 \def\@begintheorem#1#2#3#4{\trivlist
1061                  \item[\hskip\labelsep{#3#1\ #2\@thmcounterend}]#4}
1062
1063 \def\@opargbegintheorem#1#2#3#4#5{\trivlist
1064       \item[\hskip\labelsep{#4#1\ #2\ (#3)\@thmcounterend}]#5}
1065
1066 % definition of \newtheorem* without number
1067
1068 \def\@sthm#1#2{\@Ynthm{#1}{#2}}
1069
1070 \def\@Ynthm#1#2#3#4{\expandafter\@ifdefinable\csname #1\endcsname
1071    {\global\@namedef{#1}{\@Thm{\csname #1name\endcsname}{#3}{#4}}%
1072     \expandafter\xdef\csname #1name\endcsname{#2}%
1073     \global\@namedef{end#1}{\@endtheorem}}}
1074
1075 \def\@Thm#1#2#3{\@ifnextchar[{\@Ythm{#1}{#2}{#3}}{\@Xthm{#1}{#2}{#3}}}
1076
1077 \def\@Xthm#1#2#3{\@Begintheorem{#1}{#2}{#3}\ignorespaces}
1078
1079 \def\@Ythm#1#2#3[#4]{\@Opargbegintheorem{#1}
1080        {#4}{#2}{#3}\ignorespaces}
1081
1082 \def\@Begintheorem#1#2#3{#3\trivlist
1083                            \item[\hskip\labelsep{#2#1\@thmcounterend}]}
1084
1085 \def\@Opargbegintheorem#1#2#3#4{#4\trivlist
1086       \item[\hskip\labelsep{#3#1\ (#2)\@thmcounterend}]}
1087
1088 % definition of divers theorem environments
1089
1090 \newtheorem*{claim}{Claim}{\it}{\rm}
1091 \newtheorem{conjecture}{Conjecture}{\it}{\rm}
1092 \newtheorem{corollary}{Corollary}{\bf}{\it}
1093 \newtheorem{definition}{Definition}{\bf}{\it}
1094 \newtheorem{example}{Example}{\it}{\rm}
1095 \newtheorem{exercise}{Exercise}{\bf}{\rm}
1096 \newtheorem{lemma}{Lemma}{\bf}{\it}
1097 \newtheorem{note}{Note}{\it}{\rm}
1098 \newtheorem{problem}{Problem}{\bf}{\rm}
1099 \newtheorem{property}{Property}{\it}{\rm}
1100 \newtheorem{proposition}{Proposition}{\bf}{\it}
1101 \newtheorem{question}{Question}{\it}{\rm}
1102 \newtheorem{solution}{Solution}{\bf}{\rm}
1103 \newtheorem{theorem}{Theorem}{\bf}{\it}
1104 \newtheorem*{proof}{Proof}{\it}{\rm}
1105 \newtheorem{remark}{Remark}{\it}{\rm}
1106 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1107 %
1108 %             This is figure.neu
1109 %
1110 % It redefines the captions for "figure" and "table"
1111 % environments.
1112 %
1113 % There are three new kind of captions: "\firstcaption"
1114 % and "\secondcaption" for captions set side by side.
1115 % Usage for those two commands: like "\caption".
1116 %
1117 % "\sidecaption" with two parms: #1 width of picture
1118 %                                #2 height of picture
1119 %
1120 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1121
1122 \long\def\@caption#1[#2]#3{\par\addcontentsline{\csname
1123   ext@#1\endcsname}{#1}{\protect\numberline{\csname
1124   the#1\endcsname}{\ignorespaces #2}}\begingroup
1125     \@parboxrestore
1126     \@makecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
1127   \endgroup}
1128
1129 \def\firstcaption{\refstepcounter\@captype\@dblarg%
1130             {\@firstcaption\@captype}}
1131
1132 \def\secondcaption{\refstepcounter\@captype\@dblarg%
1133             {\@secondcaption\@captype}}
1134
1135 \long\def\@firstcaption#1[#2]#3{\addcontentsline{\csname
1136   ext@#1\endcsname}{#1}{\protect\numberline{\csname
1137   the#1\endcsname}{\ignorespaces #2}}\begingroup
1138     \@parboxrestore
1139     \vskip3pt
1140     \@maketwocaptions{\csname fnum@#1\endcsname}{\ignorespaces #3}%
1141     \ignorespaces\hspace{.073\textwidth}\hfil%
1142   \endgroup}
1143
1144 \long\def\@secondcaption#1[#2]#3{\addcontentsline{\csname
1145   ext@#1\endcsname}{#1}{\protect\numberline{\csname
1146   the#1\endcsname}{\ignorespaces #2}}\begingroup
1147     \@parboxrestore
1148     \@maketwocaptions{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
1149   \endgroup}
1150
1151 \long\def\@maketwocaptions#1#2{%
1152    \parbox[t]{.46\textwidth}{{\bf #1.} #2}}
1153
1154 \newdimen\figgap\figgap=18pt
1155
1156 \def\sidecaption#1\caption{%
1157 \setbox\@tempboxa=\hbox{#1\unskip}%
1158 \if@twocolumn
1159  \ifdim\hsize<\textwidth\else
1160    \ifdim\wd\@tempboxa<\columnwidth
1161       \typeout{Double column float fits into single column -
1162             ^^Jyou'd better switch the environment. }%
1163    \fi
1164  \fi
1165 \fi
1166 \@tempdima=\hsize
1167 \advance\@tempdima by-\figgap
1168 \advance\@tempdima by-\wd\@tempboxa
1169 \ifdim\@tempdima<3cm
1170     \typeout{\string\sidecaption: No sufficient room for the legend;
1171              using normal \string\caption. }%
1172    \unhbox\@tempboxa
1173    \let\@capcommand=\@caption
1174 \else
1175    \let\@capcommand=\@sidecaption
1176    \leavevmode
1177    \unhbox\@tempboxa
1178    \hfill
1179 \fi
1180 \refstepcounter\@captype
1181 \@dblarg{\@capcommand\@captype}}
1182
1183 \long\def\@sidecaption#1[#2]#3{\addcontentsline{\csname
1184   ext@#1\endcsname}{#1}{\protect\numberline{\csname
1185   the#1\endcsname}{\ignorespaces #2}}\begingroup
1186     \@parboxrestore
1187     \@makesidecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}\par
1188   \endgroup}
1189 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1190
1191 \def\fig@type{figure}
1192
1193 \def\leftlegendglue{\hfil}
1194
1195 \long\def\@makecaption#1#2{%
1196  \ifx\@captype\fig@type
1197    \vskip 3pt
1198    \setbox\@tempboxa\hbox{{\bf #1.} #2}%
1199    \ifdim \wd\@tempboxa >\hsize
1200      {\bf #1.} #2\par
1201    \else
1202      \hbox to\hsize{\leftlegendglue\unhbox\@tempboxa\hfil}%
1203    \fi
1204  \else
1205    {\bf #1.} #2\par
1206    \vskip5.5pt
1207  \fi}
1208
1209 \long\def\@makesidecaption#1#2{%
1210    \parbox[b]{\@tempdima}{{\bf #1.} #2}}
1211 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1212 %
1213 %             This is bibjour.xxx
1214 %
1215 % It redefines the "bibliography" environment.
1216 %
1217 % Usage: \begin{thebibliography}[label]{title}
1218 %
1219 %        where "title" is the text of the title which will be
1220 %        typeset, e.g. "References" or "Bibliography". It must
1221 %        be given.
1222 %
1223 %        together with "bibay" style option (e.g.
1224 %          \documentstyle[bibay]{article}):
1225 %
1226 %        \bibitem{label}{key}{referenced text}
1227 %             for author-year-citation
1228 %
1229 %        without style option (as described by Lamport):
1230 %
1231 %        \bibitem[label]{key}
1232 %        \bibitem{key}
1233 %
1234 %        \cite{key}  (as described by Lamport)
1235 %
1236 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1237
1238 % definition of \begin{thebibliography}
1239
1240 \def\thebibliography{\@ifnextchar[{\@lThebibliography}%
1241                                   {\@Thebibliography}}
1242
1243 \def\@lThebibliography[#1]#2{\section*{#2\@mkboth{#2}{#2}}%
1244    \small\rm
1245    \list{\arabic{enumiv}.}{\settowidth\labelwidth{[#1]}
1246       \leftmargin\labelwidth
1247       \advance\leftmargin\labelsep
1248       \usecounter{enumiv}%
1249       \let\p@enumiv\@empty
1250       \def\theenumiv{\arabic{enumiv}}}%
1251    \def\newblock{\hskip .11em plus .33em minus .07em}
1252    \sloppy\clubpenalty4000\widowpenalty4000
1253    \sfcode`\.=1000\relax}
1254
1255 \def\@Thebibliography#1{\section*{#1\@mkboth{#1}{#1}}
1256    \small\rm
1257    \list{\arabic{enumiv}.}%
1258    {\settowidth\labelwidth{\hspace\parindent\hskip-\labelsep}%
1259       \usecounter{enumiv}%
1260       \let\p@enumiv\@empty
1261       \def\theenumiv{\arabic{enumiv}}%
1262       \leftmargin\labelwidth
1263       \advance\leftmargin\labelsep}
1264    \def\newblock{\hskip .11em plus .33em minus .07em}
1265    \sloppy\clubpenalty4000\widowpenalty4000
1266    \sfcode`\.=1000\relax}
1267
1268 \let\endthebibliography=\endlist
1269
1270 % definition of \bibitem and \cite
1271 %
1272 % Put in the if-else-fi to choose or not author-year type
1273 % reference list (e.g. for Journal of Geodesy)
1274 % Martin Vermeer, June 1997
1275 %
1276 \if@bibay
1277     \typeout{Author, year style bibliography chosen}
1278     \def\bibitem{\@bibitem}%
1279     \def\@bibitem#1#2#3{\ifx!#1\item[]\hskip-\labelwidth
1280         \hskip-\labelsep\else\item[\@biblabel{#1}]\fi#3
1281         \if@filesw
1282            {\def\protect##1{\string ##1\space}\immediate
1283            \write\@auxout{\string\bibcite{#2}{#3}}}%
1284         \fi\ignorespaces}%
1285 %
1286     \def\cite{\@ifnextchar[{\@tempswatrue\@citex}%
1287                            {\@tempswafalse\@citex[]}}%
1288 %
1289     \def\@citex[#1]#2{%
1290         \if@filesw
1291            \immediate\write\@auxout{\string\citation{#2}}%
1292 %
1293 %          \typeout{\string\citation{#2}}
1294 %
1295         \fi
1296         \def\@citea{}%
1297         \@cite{\@for\@citeb:=#2\do
1298            {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
1299            {b@\@citeb}{{\bf ?}\@warning
1300            {Citation `\@citeb' on page \thepage \space undefined}}%
1301            \hbox{\csname b@\@citeb\endcsname}}}%
1302         {#1}}%
1303 %
1304     \def\@cite#1#2{{#1\if@tempswa , #2\fi}}%
1305     \def\@biblabel#1{#1\hfill}
1306
1307 % }
1308 \else
1309 %
1310 \@bibayfalse
1311 \def\bibitem{\@ifnextchar[{\@lbibitem}{\@bibitem}}
1312 \def\@lbibitem[#1]#2{\itemindent\z@
1313     \item[\@biblabel{#1}]\if@filesw
1314        {\def\protect##1{\string ##1\space}\immediate
1315        \write\@auxout{\string\bibcite{#2}{#1}}}\fi\ignorespaces}
1316 %
1317 \def\@bibitem#1{\item\if@filesw \immediate\write\@auxout
1318        {\string\bibcite{#1}{\the\c@enumiv}}\fi\ignorespaces}
1319 %
1320 \def\cite{\@ifnextchar[{\@tempswatrue\@citex}{\@tempswafalse\@citex[]}}
1321 %
1322 \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi
1323     \def\@citea{}%
1324     \@cite{\@for\@citeb:=#2\do
1325        {\@citea\def\@citea{,\penalty\@m\ }\@ifundefined
1326        {b@\@citeb}{{\bf ?}\@warning
1327        {Citation `\@citeb' on page \thepage \space undefined}}%
1328        \hbox{\csname b@\@citeb\endcsname}}}%
1329     {#1}}
1330 \def\@cite#1#2{[{#1\if@tempswa , #2\fi}]}
1331 \def\@biblabel#1{[#1]\hfill}
1332 \fi
1333 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1334 %
1335 %             This is biograph.xxx
1336 %
1337 % Usage: \begin{biography}{Author's name}
1338 %        Text of biography
1339 %        \end{biography}
1340 %
1341 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1342 \def\biography#1{%
1343 \begingroup
1344 \endgraf
1345 \skip0=0pt plus2cm
1346 \advance\skip0 by2\bigskipamount\relax
1347 \vskip\skip0
1348 \small
1349 \setbox0=\vbox\bgroup\def\par{\hfil\break}%
1350                \sloppy
1351                \noindent
1352                \hangindent=113pt
1353                \hangafter=-16\relax
1354                \smash{\raise 6.5pt
1355                \llap{\vbox to0pt{\hrule
1356                                  \hbox to3.6cm{\vrule height5cm\hfil
1357                                        \vrule height5cm}
1358                                  \hrule\vss}\kern11pt}}%
1359                \vrule height\topskip width0pt
1360                \if!#1!\else{\sc\ignorespaces#1\/} \fi
1361                \ignorespaces}
1362 %
1363 \def\endbiography{\egroup
1364 \dimen0=\ht0\advance\dimen0 by\dp0
1365 \ifdim\dimen0<5cm
1366    \vtop to5cm{\box0\vss}
1367 \else
1368    {\splittopskip=0pt
1369    \splitmaxdepth=\maxdepth
1370    \vbadness=10000
1371    \setbox1=\vsplit0 to 139.153dd
1372    \vtop{\box1}%
1373    \vskip-\prevdepth
1374    \unvbox0
1375    \endgraf}
1376 \fi
1377 \endgroup}
1378 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1379 %
1380 %             This is fonotej.xxx
1381 %
1382 % It redefines how footnotes will be typeset.
1383 %
1384 % Usage like described by Lamport.
1385 %
1386 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1387 \newdimen\footnoterulewidth
1388   \footnoterulewidth=4cc
1389
1390 \def\footnoterule{\kern-3\p@
1391  \hrule width\footnoterulewidth
1392  \kern 2.6\p@}
1393
1394 \long\def\@makefntext#1{\parindent 15pt\noindent
1395             \hbox to15pt{\hss$\m@th^{\@thefnmark}$ }#1}
1396 %
1397 %\long\def\@makefntext#1{\@setpar{\@@par\@tempdima \hsize
1398 %         \advance\@tempdima-15pt\parshape \@ne 15pt \@tempdima}\par
1399 %         \parindent 15pt\noindent \hbox to \z@{%
1400 %         \hss\hss$^{\@thefnmark}$ }#1}
1401 % This is footinfo.tex
1402 % it provides an informatory line on every page
1403 %
1404 \def\SpringerMacroPackageNameA{\springerstylefile}
1405 % \thetime, \thedate and \timstamp are macros to include
1406 % time, date (or both) of the TeX run in the document
1407 \def\maketimestamp{\count255=\time
1408 \divide\count255 by 60\relax
1409 \edef\thetime{\the\count255:}%
1410 \multiply\count255 by-60\relax
1411 \advance\count255 by\time
1412 \edef\thetime{\thetime\ifnum\count255<10 0\fi\the\count255}
1413 \edef\thedate{\number\day-\ifcase\month\or Jan\or Feb\or Mar\or
1414              Apr\or May\or Jun\or Jul\or Aug\or Sep\or Oct\or
1415              Nov\or Dec\fi-\number\year}
1416 \def\timstamp{\hbox to\hsize{\tt\hfil\thedate\hfil\thetime\hfil}}}
1417 \maketimestamp
1418 %
1419 % \footinfo generates a info footline on every page containing
1420 % pagenumber, jobname, macroname, and timestamp
1421 % \def\ds@footinfo{
1422 \if@footinfo 
1423    \typeout{You ordered a foot-info line. }
1424    \maketimestamp
1425    \def\@oddfoot{\footnotesize\tt Page: \thepage\hfil job: \jobname\hfil
1426                  macro: \SpringerMacroPackageNameA\hfil
1427                  date/time: \thedate/\thetime}%
1428    \let\@evenfoot=\@oddfoot
1429 \def\footinfo{\maketimestamp
1430    \ds@footinfo
1431    \typeout{You ordered a foot-info line (2). }}
1432 \else
1433 \def\nofootinfo{%
1434    \def\@oddfoot{}\def\@evenfoot{}%
1435    \typeout{Foot-info has been disabled. }}
1436 \fi
1437 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1438 %
1439 %             This is environ.xxx
1440 %
1441 % It defines the environment for acknowledgements.
1442 %                            and noteadd
1443 %
1444 % Usage e.g.: \begin{acknowledgement}
1445 %                Text
1446 %             \end{acknowledgement}
1447 %
1448 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1449 % Define `abstract' environment
1450 \def\acknowledgement{\par\addvspace{17pt}\small\rm
1451 \trivlist\item[\hskip\labelsep
1452 {\it\ackname}]}
1453 \def\endacknowledgement{\endtrivlist\addvspace{6pt}}
1454 % Define `noteadd' environment
1455 \def\noteadd{\par\addvspace{17pt}\small\rm
1456 \trivlist\item[\hskip\labelsep
1457 {\it\noteaddname}]}
1458 \def\endnoteadd{\endtrivlist\addvspace{6pt}}
1459 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1460 %
1461 %             This is item.xxx
1462 %
1463 % It redefines the kind of label for "itemize", "enumerate"
1464 % and "description" environment. The last is extended by
1465 % an optional parameter. Its length is used for overall
1466 % indentation.
1467 %
1468 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1469
1470 % labels of enumerate
1471
1472 \def\labelenumi{\theenumi.}
1473 \def\labelenumii{\theenumii)}
1474 \def\theenumii{\alph{enumii}}
1475 \def\p@enumii{\theenumi}
1476
1477 % labels of itemize
1478
1479 \def\labelitemi{\bf --}
1480 \def\labelitemii{\bf --}
1481 \def\labelitemiii{$\bullet$}
1482 \def\labelitemiv{$\cdot$}
1483
1484 % labels of description
1485 \def\descriptionlabel#1{\hspace\labelsep #1\hfil}
1486
1487 % make indentations changeable
1488
1489 \def\setitemindent#1{\settowidth{\labelwidth}{#1}%
1490         \leftmargini\labelwidth
1491         \advance\leftmargini\labelsep
1492    \def\@listi{\leftmargin\leftmargini
1493         \labelwidth\leftmargini\advance\labelwidth by -\labelsep
1494         \parsep=\parskip
1495         \topsep=\medskipamount
1496         \itemsep=\parskip \advance\itemsep by -\parsep}}
1497 \def\setitemitemindent#1{\settowidth{\labelwidth}{#1}%
1498         \leftmarginii\labelwidth
1499         \advance\leftmarginii\labelsep
1500 \def\@listii{\leftmargin\leftmarginii
1501         \labelwidth\leftmarginii\advance\labelwidth by -\labelsep
1502         \parsep=\parskip
1503         \topsep=\z@
1504         \itemsep=\parskip \advance\itemsep by -\parsep}}
1505 %
1506 % adjusted environment "description"
1507 % if an optional parameter (at the first two levels of lists)
1508 % is present, its width is considered to be the widest mark
1509 % throughout the current list.
1510 \def\description{\@ifnextchar[{\@describe}{\list{}{\labelwidth\z@
1511           \itemindent-\leftmargin \let\makelabel\descriptionlabel}}}
1512 %
1513 \def\describelabel#1{#1\hfil}
1514 \def\@describe[#1]{\relax\ifnum\@listdepth=0
1515 \setitemindent{#1}\else\ifnum\@listdepth=1
1516 \setitemitemindent{#1}\fi\fi
1517 \list{--}{\let\makelabel\describelabel}}
1518 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1519 %
1520 %             This is typeset.xxx
1521 %
1522 % It defines last text of every article.
1523 %
1524 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1525 %
1526 \def\typeset{\small\noindent This article was authored in \LyX\ and typeset
1527            by \LaTeX, using the \LaTeXe{}\ class file {\it\springerstylefile\/}
1528              from Springer-Verlag.\par}
1529
1530 \def\enddocument{\par\vspace{2\bigskipamount}\typeset
1531   \@checkend{document}\clearpage\begingroup
1532   \if@filesw \immediate\closeout\@mainaux
1533   \def\global\@namedef##1##2{}\def\newlabel{\@testdef r}%
1534  \def\bibcite{\@testdef b}\@tempswafalse \makeatletter\input \jobname.aux
1535   \if@tempswa \@@warning{Label(s) may have changed.  Rerun to get
1536   cross-references right}\fi\fi\endgroup\deadcycles\z@\@@end}
1537
1538 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1539 %
1540 %             This is numberj.xxx
1541 %
1542 % It redefines the kind of numeration for figures,
1543 % tables and equations like they should appear in
1544 % journals.
1545 %
1546 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1547 %
1548 \let\ds@numart=\relax
1549 %
1550 \def\thefigure{\@arabic\c@figure}
1551 \def\thetable{\@arabic\c@table}
1552 \def\theequation{\arabic{equation}}
1553 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1554 %
1555 %             This is mods.lj2
1556 %
1557 % It changes various sizes and settings from one
1558 % to two column journals
1559 %
1560 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1561 %
1562 \if@twocolumn\twocolumn\else\onecolumn\fi
1563 \let\sectcounterend\relax
1564 \let\leftlegendglue\relax
1565 \def\endabstract{\endtrivlist}
1566 \def\fps@figure{tbp}
1567 \def\fps@table{tbp}
1568 \headerboxheight=180.83146pt % 20 9.5dd-lines - 2\baselineskip
1569 %%
1570 %% END added: (MV)
1571 %%
1572 \endinput
1573 .
1574