doc-src/mathsing.sty
author lcp
Wed, 23 Mar 1994 11:32:21 +0100
changeset 292 cc69ef31cfc3
child 350 d9ebca601847
permissions -rw-r--r--
first draft of Springer volume
     1 %% edited by LCP!!  
     2 %%   Commented out the change to \newlinechar
     3 %%   Increased space in Contents
     4 %%   Changed \thebibliography to the defn in llncs.sty
     5 %%   Added ttbox
     6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     7 %
     8 %   MATHSING.STY        Version 1.1
     9 %
    10 %   This LaTeX style option file contains necessary macros for writing
    11 %   camera ready English single author math book manuscripts.
    12 %
    13 %
    14 %   Usage:
    15 %
    16 %      \documentstyle[12pt,mathsing]{book}
    17 %        ...
    18 %
    19 %   Change log:
    20 %
    21 %      90/11/04  pagestyle empty for first page of chapter
    22 %      90/11/04  distinct figure and table captions
    23 %      90/11/04  \small for captions and headings
    24 %      90/11/04  improved definition of theorem-like environments
    25 %      90/12/01  separation after chapter title changed to 5.1cm
    26 %      90/12/01  page size changed to 45x14.4+10pt=23.05cm
    27 %      90/12/01  references
    28 %      90/12/01  common counter for theorem-like environments
    29 %      90/12/02  table of contents
    30 %      90/12/02  final improvements and corrections
    31 %      90/12/26  two styles for equation numbers
    32 %      91/02/05  \numberlikebook and \numberlikearticle replace
    33 %                \eqnbook and \eqnarticle
    34 %      91/10/07  \listoffigures, \listoftables made similar to
    35 %                \tableofcontents,
    36 %                running head of Index changed: Sachverzeichnis -> Index,
    37 %                \newthe now uses \thechapter instead of \arabic{chapter}
    38 %      91/02/05  binding: \tablebook, \tablearticle
    39 %                \figurebook, \figurearticle added
    40 %      91/10/07  holzwarth: \listoffigures, \listoftables
    41 %                according to \tableofcontents,
    42 %                \begin{theindex}
    43 %                \newthe to produce correct numbers
    44 %      91/12/03  \chapter, \section, and \subsection now do not
    45 %                hyphenate the headings any more
    46 %
    47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    48 
    49 
    50 
    51 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    52 %
    53 %  change the catcode of @ (allows names containing @ after \begin{document})
    54 %
    55 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    56 
    57 \makeatletter
    58 
    59 
    60 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    61 %
    62 %     page layout and dimensions
    63 %
    64 % The following commands are redefined:
    65 %
    66 %   \ps@headings    (cf. BOOK.STY)
    67 %
    68 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    69 
    70 %
    71 %     Layout
    72 %
    73 %     Note: The following values do not apply for English Springer
    74 %     books on phsics; use \baselineskip=14pt, \textwidth=13.8cm,
    75 %     \textheight=640pt (=45x14pt+10pt=22.5cm) instead!
    76 %
    77 
    78 \baselineskip=14.4pt          % LaTeX default
    79 
    80 \topmargin=0cm
    81 \textwidth=14.2cm             % 1.2 x 11.833 cm
    82 \textheight=658pt             % 45x14.4pt+10pt = 658pt = 23.0554cm
    83 %\textheight=23.2502cm         % 1.2x19.3752cm=23.2502cm (first version)
    84 \oddsidemargin=0.7cm
    85 \evensidemargin=0.7cm
    86 \headsep=20pt                 % ?
    87 
    88 \parindent=7mm                % 1.2 x 5.833mm
    89 
    90 \hfuzz=2pt                    % supress "overfull box" messages below 2pt
    91 
    92 \frenchspacing                % no large blanks at the end of a sentence
    93 
    94 
    95 \tolerance=500
    96 
    97 \abovedisplayskip=3.6 mm plus7.2pt minus 4.8pt
    98 \belowdisplayskip=3.6 mm plus7.2pt minus 4.8pt
    99 \abovedisplayshortskip=0.0 mm plus7.2pt minus 2.4pt
   100 \belowdisplayshortskip=2.4 mm plus4.8pt minus 4.8pt
   101 
   102 \predisplaypenalty=0          % penalties for page break
   103 \clubpenalty=10000            %
   104 \widowpenalty=10000           %
   105 
   106 
   107 %
   108 %     running titles
   109 %
   110 
   111 % binding 5.2.91 \hspace changed to 1.0 cm    |           |
   112 % binding 5.2.91 dot deleted after \thesection                 |
   113 \def\ps@headings{
   114     \let\@mkboth\markboth
   115     \def\@oddfoot{}
   116     \def\@evenfoot{}
   117     \def\@evenhead{\rm\small\thepage\hspace{1.0cm}\leftmark\hfil\hbox{}}
   118     \def\@oddhead{\hbox{}\hfil\rm\small\rightmark\hspace{1.0cm}\thepage}
   119     \def\chaptermark##1{\markboth
   120                         {\ifnum \c@secnumdepth >\m@ne \thechapter.\ \fi ##1}{}}
   121 %hier punkt raus. binding                                      |
   122     \def\sectionmark##1{\markright
   123                         {\ifnum \c@secnumdepth >\z@ \thesection\ \fi ##1}}
   124     }
   125 
   126 \pagestyle{headings}
   127 
   128 
   129 
   130 
   131 
   132 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   133 %
   134 % Chapters and Sections
   135 %
   136 % The following commands are redefined:
   137 %
   138 %  \@makechapterhead    (cf. BK12.STY)
   139 %  \@makeschapterhead   (cf. BK12.STY)
   140 %  \chapter             (cf. BK12.STY)
   141 %  \@sect               (cf. LATEX.TEX)
   142 %  \section             (cf. BK12.STY)
   143 %  \subsection          (cf. BK12.STY)
   144 %  \subsubsection       (cf. BK12.STY)
   145 %  \paragraph           (cf. BK12.STY)
   146 %  \subparagraph        (cf. BK12.STY)
   147 %
   148 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   149 
   150 %
   151 %     number of numbered section levels
   152 %
   153 
   154 \setcounter{secnumdepth}{3}
   155 
   156 
   157 %
   158 %     Adapt the font size for chapter titles and supress printing of
   159 %     the word "chapter"
   160 %
   161 
   162 \def\@makechapterhead#1{ { \parindent 0pt \raggedright
   163 % \pretolerance added 12/3/91 fuh
   164 {\pretolerance=10000\Large \bf \thechapter.\hspace{0.3cm}#1\par}%
   165  \nobreak \vskip 4cm \vskip\baselineskip} }
   166 
   167 \def\@makeschapterhead#1{ { \parindent 0pt \raggedright
   168 % \pretolerance added 12/3/91 fuh
   169  \pretolerance=10000\Large \bf #1\par
   170  \nobreak \vskip 4cm \vskip\baselineskip} }
   171 
   172 %
   173 %     define pagestyle=empty for first page of a chapter
   174 %
   175 
   176 \def\chapter{\cleardoublepage \thispagestyle{empty} \global\@topnum\z@
   177 \@afterindentfalse \secdef\@chapter\@schapter}
   178 
   179 %
   180 %     Change the distance between section number and title from 1em to 2mm
   181 %     binding:  changed again to 1en=0.5em       |     5.2.91
   182 %
   183 
   184 \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
   185      \def\@svsec{}\else
   186      \refstepcounter{#1}%
   187      \edef\@svsec{\csname the#1\endcsname\hskip 0.5em }\fi
   188      \@tempskipa #5\relax
   189       \ifdim \@tempskipa>\z@
   190         \begingroup #6\relax
   191 % changed by Binding :) 20.3.91
   192 % old:    \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}
   193 % \@hangfrom deleted to avoid hanging indentation \noindent added
   194           {\noindent\hskip #3\relax\@svsec}%
   195           {\interlinepenalty \@M #8\par}
   196         \endgroup
   197        \csname #1mark\endcsname{#7}\addcontentsline
   198          {toc}{#1}{\ifnum #2>\c@secnumdepth \else
   199                       \protect\numberline{\csname the#1\endcsname}\fi
   200                     #7}\else
   201         \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname
   202                       {#7}\addcontentsline
   203                            {toc}{#1}{\ifnum #2>\c@secnumdepth \else
   204                              \protect\numberline{\csname the#1\endcsname}\fi
   205                        #7}}\fi
   206      \@xsect{#5}}
   207 
   208 
   209 %
   210 %     Font size for section titles;
   211 %     Increased vertical space before and after sections, subsections
   212 %     and subsubsections by 1ex; run-in headings starting with subsubsection
   213 %
   214 %     (\@startsection{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE})
   215 %
   216 
   217 %binding, 18.3.91:  \boldmath inserted
   218 \def\section{\@startsection{section}{1}{\z@}{
   219              -4.50ex plus -1ex minus -.2ex}{3.3ex plus .2ex}
   220              {\large\bf\boldmath\raggedright\pretolerance=10000}}
   221 % \raggedright and \pretolerance added 12/3/91 fuh
   222 \def\subsection{\@startsection{subsection}{2}{\z@}{
   223              -4.25ex plus -1ex minus -.2ex}{2.5ex plus .2ex}
   224              {\normalsize\bf\boldmath\raggedright\pretolerance=10000}}
   225 % \raggedright and \pretolerance added 12/3/91 fuh
   226 \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{
   227              -3.25ex plus -1ex minus -.2ex}{-0.5em}
   228              {\normalsize\bf\boldmath}}
   229 \def\paragraph{\@startsection{paragraph}{4}{\z@}{
   230              -3.25ex plus -1ex minus -.2ex}{-0.5em}{\normalsize\it}}
   231 \def\subparagraph{\@startsection{subparagraph}{5}{\@}{
   232              -3.25ex plus -1ex minus -.2ex}{-0.5em}{\normalsize\it}}
   233 
   234 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   235 %20.3.91, binding: \labelitemi changed
   236 \renewcommand{\labelitemi}{$\bullet$}
   237 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   238 %
   239 % Tables
   240 %
   241 % Change width of horizontal and vertical lines in arrays and tables
   242 %
   243 % The following commands are redefined:
   244 %
   245 %  \arrayrulewidth
   246 %
   247 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   248 
   249 \arrayrulewidth0.15mm
   250 
   251 
   252 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   253 %
   254 % Figure and table captions (small)
   255 %
   256 % To meet the different requirements for table and figure captions
   257 % new macros \@makefigurecaption and \@maketablecaption are introduced
   258 % in addition to \@makecaption (cf. BOOK.STY). The \@caption macro is
   259 % changed to check for figures and tables.
   260 %
   261 % The following commands are redefined:
   262 %
   263 %  \@caption         (cf. LATEX.TEX)
   264 %  \fnum@figure      (cf. BOOK.STY)
   265 %  \fnum@table       (cf. BOOK.STY)
   266 %
   267 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   268 
   269 \long\def\@caption#1[#2]#3{\addcontentsline{\csname
   270   ext@#1\endcsname}{#1}{\protect\numberline{\csname
   271   the#1\endcsname}{\ignorespaces #2}}\par
   272   \begingroup
   273     \@parboxrestore
   274     \normalsize
   275     \csname @make#1caption\endcsname
   276     {\csname fnum@#1\endcsname}{\ignorespaces #3}\par
   277   \endgroup}
   278 
   279 \long\def\@makefigurecaption#1#2{
   280  \vskip 10pt                     % skip between figure and caption
   281  {\small                         % required here for correct \baselineskip !
   282  \setbox\@tempboxa\hbox{\small{\bf#1}#2}
   283  \ifdim \wd\@tempboxa >\hsize
   284    \unhbox\@tempboxa\par
   285  \else
   286    \hbox to\hsize{\hfil\box\@tempboxa\hfil}       % centered short caption !
   287  \fi}
   288  \vskip 10pt}                    % additional space between caption and text
   289 
   290 \long\def\@maketablecaption#1#2{
   291  \vskip 10pt                     % additional space between text and caption
   292  {\small                         % required here for correct \baselineskip !
   293  \setbox\@tempboxa\hbox{\small{\bf#1}#2}
   294  \ifdim \wd\@tempboxa >\hsize
   295    \unhbox\@tempboxa\par
   296  \else \hbox  to\hsize{\box\@tempboxa\hfil}   % leftadjusted short caption !
   297  \fi}
   298  \vskip 10pt}                    % skip between caption and table
   299 
   300 \def\fnum@figure{Fig.$\,$\thefigure.$\;$}
   301 \def\fnum@table{Table$\,$\thetable.$\;$}
   302 
   303 
   304 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   305 %
   306 %  Distance between text and floatings (tables, figures)
   307 %
   308 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   309 
   310 \floatsep 14pt plus 2pt minus 4pt        % LaTeX defaults values
   311 \textfloatsep 20pt plus 2pt minus 4pt    %
   312 \intextsep 14pt plus 4pt minus 4pt       %
   313 \@maxsep 20pt                            %
   314 
   315 
   316 
   317 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   318 %
   319 % Table of contents
   320 %
   321 % The following commands are redefined:
   322 %
   323 %  \l@chapter        (cf. LATEX.STY)
   324 %  \tableofcontents
   325 %
   326 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   327 
   328 %
   329 %     lowest level for table of contents entries
   330 %
   331 \setcounter{tocdepth}{3}
   332 
   333 %
   334 %     dotted line for chapters in table of contents
   335 %     (cf. definition of \@dottedline in LATEX.STY)
   336 %
   337 \def\l@chapter#1#2{\pagebreak[3]
   338  \vskip 1.0em plus 1pt \@tempdima 1.5em \begingroup
   339  \parindent \z@ \rightskip \@pnumwidth
   340  \parfillskip -\@pnumwidth
   341  \rm \leavevmode #1
   342  \nobreak\leaders\hbox{$\m@th \mkern \@dotsep mu.\mkern \@dotsep mu$}\hfill
   343  \nobreak
   344  \hbox to\@pnumwidth{\hss \rm #2}\par
   345  \endgroup}
   346 
   347 %copied from book.sty to leave room for 12.11, etc. -- Frank Holzwarth via LCP
   348 \def\l@section{\@dottedtocline{1}{1.5em}{2.8em}}
   349 
   350 %
   351 %     Adaption of \tableofcontents (title,headings,pagenumber)
   352 %
   353 
   354 \def\tableofcontents{
   355      \@restonecolfalse
   356      \if@twocolumn\@restonecoltrue\onecolumn\fi
   357      \chapter*{Table of Contents}
   358      \markboth{Table of Contents}{Table of Contents}  % headline
   359      \renewcommand{\thepage}{\Roman{page}}            % roman page number
   360      \@starttoc{toc}\if@restonecol\twocolumn\fi}
   361 
   362 %%%%%%%% added 91/10/07 fuh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   363 %
   364 % List of figures
   365 %
   366 % The following commands are redefined:
   367 %
   368 %  \listoffigures
   369 %
   370 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   371 %
   372 \def\listoffigures{
   373      \@restonecolfalse
   374      \if@twocolumn\@restonecoltrue\onecolumn\fi
   375      \chapter*{List of Figures}
   376      \markboth{List of Figures}{List of Figures}      % headline
   377      \renewcommand{\thepage}{\Roman{page}}            % roman page number
   378      \@starttoc{lof}\if@restonecol\twocolumn\fi}
   379 
   380 %%%%%%%% added 91/10/07 fuh %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   381 %
   382 % List of tables
   383 %
   384 % The following commands are redefined:
   385 %
   386 %  \listoftables
   387 %
   388 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   389 %
   390 \def\listoftables{
   391      \@restonecolfalse
   392      \if@twocolumn\@restonecoltrue\onecolumn\fi
   393      \chapter*{List of Tables}
   394      \markboth{List of Tables}{List of Tables}        % headline
   395      \renewcommand{\thepage}{\Roman{page}}            % roman page number
   396      \@starttoc{lot}\if@restonecol\twocolumn\fi}
   397 
   398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   399 %
   400 % Index (with table of contents entry)
   401 %
   402 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   403 
   404 \def\theindex{ \cleardoublepage
   405                \small
   406                \columnseprule \z@
   407                \columnsep=0.84cm
   408                \twocolumn[\@makeschapterhead{Index}]
   409                \addcontentsline{toc}{chapter}{Index}
   410                \@mkboth{Index}{Index}
   411                \thispagestyle{plain}\parindent\z@
   412                \parskip\z@ plus .3pt\relax\let\item\@idxitem}
   413 \def\@idxitem{\par\hangindent 15pt}
   414 \def\subitem{\par\hangindent 15pt -- }
   415 \def\endtheindex{\clearpage}
   416 \def\indexspace{\par \vskip 10pt plus 5pt minus 3pt\relax}
   417 
   418 
   419 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   420 %
   421 % References (Bibliography)
   422 %
   423 % Macros for creating a list of references in small print using LaTeX
   424 % defaults or some special Springer commands.
   425 %
   426 % Usage:
   427 %
   428 %   \begin{thebibliography}{wide-label}      % LaTeX standard macros
   429 %     \bibitem[label]{name} ... text ...
   430 %     \bibitem[label]{name} ... text ...
   431 %   \end{thebibliography}
   432 %
   433 %   or
   434 %
   435 %   \begin{references}{wide-label}           % Springer macros
   436 %     \refer            ... text ...
   437 %     \refno{no.}       ... text ...
   438 %     \refmark{[label]} ... text ...
   439 %   \end{references}
   440 %
   441 % New commands:
   442 %
   443 %   \refchapter      starts an unnumbered chapter "References"; small font
   444 %   \refer           unlabeled item with hanging indentation
   445 %   \refno           right adjusted label (for numbers)
   446 %   \refmark         left adjusted label (for text labels)
   447 %
   448 % Changed commands
   449 %
   450 %   \thebibliography       (BOOK.STY)   (further edit by LCP!)
   451 %   \endthebibliography    (BOOK.STY)
   452 %
   453 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   454 
   455 \def\refchapter{\chapter*{References}
   456 \parindent0pt\parskip0pt\small
   457 \addcontentsline{toc}{chapter}{References}
   458 \markboth{References}{References}}
   459 
   460 
   461 \def\thebibliography#1{\refchapter\small\list
   462   {\arabic{enumi}.}{\settowidth\labelwidth{#1.}\leftmargin\labelwidth
   463     \advance\leftmargin\labelsep
   464     \usecounter{enumi}}
   465     \def\newblock{\hskip .11em plus .33em minus -.07em}
   466     \sloppy
   467     \sfcode`\.=1000\relax}
   468 \let\endthebibliography=\endlist
   469 
   470 
   471 \newenvironment{references}[1]{\refchapter
   472                                \settowidth\labelwidth{#1\enspace}
   473                                \begingroup}{\endgraf\endgroup}
   474 %
   475 % The following macros are from REFER.TEX.
   476 % \refindent is replaced by the predefined dimension \labelwidth
   477 % that is also used by \thebibliography; \ref is replaced by \refer
   478 % since \ref is already used for referencing lables!
   479 
   480 %%%\newlinechar=`\|
   481 
   482 % \refer produces ordinary entries, successive line are indented 1em
   483 \def\refer{\goodbreak\hangindent1em\hangafter=1\noindent\ignorespaces}
   484 
   485 % \refno produces entries with right-aligned marks in the margin
   486 \def\refno#1{\goodbreak
   487 \setbox0=\hbox{#1\enspace}\ifdim\labelwidth<\wd0\relax
   488 \message{|Your reference `#1' is wider than you pretended in using
   489 \string\begref.}\fi
   490 \hangindent\labelwidth\hangafter=1\noindent
   491 \kern\labelwidth\llap{#1\enspace}\ignorespaces}
   492 
   493 % \refmark produces entries with left-aligned marks in the margin
   494 \def\refmark#1{\goodbreak
   495 \setbox0=\hbox{#1\enspace}\ifdim\labelwidth<\wd0\relax
   496 \message{|Your reference `#1' is wider than you pretended in using
   497 \string\begref.}\fi
   498 \hangindent\labelwidth\hangafter=1\noindent
   499 \hbox to\labelwidth{#1\hss}\ignorespaces}
   500 
   501 
   502 
   503 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   504 %
   505 %  New environments
   506 %
   507 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   508 
   509 %
   510 %  The following lines define a new environment 'listing'
   511 %
   512 %         \begin{listing}
   513 %               ...
   514 %         \end{listing}
   515 %
   516 %  that prints listings using \footnotesize and takes care to reset
   517 %  the \baselineskip. The macro definition is based on ALLTT.STY that
   518 %  allows various TEX commands to be given within the environment
   519 %  (e.g. '\input', '\index' or '\it'). '%' has been retained as a special
   520 %  character within 'listing', however, to avoid unwanted line breaks.
   521 %
   522 %
   523 
   524 \def\docspecials{\do\ \do\$\do\&%
   525   \do\#\do\^\do\^^K\do\_\do\^^A\do\~}
   526 
   527 \newdimen\oldbaselineskip
   528 \def\listing{\par\noindent\oldbaselineskip=\baselineskip \footnotesize%
   529 \trivlist \item[]\if@minipage\else\vskip\parskip\fi
   530 \leftskip\@totalleftmargin\rightskip\z@
   531 \parindent\z@\parfillskip\@flushglue\parskip\z@
   532 \@tempswafalse \def\par{\if@tempswa\hbox{}\fi\@tempswatrue\@@par}
   533 \obeylines \tt \catcode``=13 \@noligs \let\do\@makeother \docspecials
   534  \frenchspacing\@vobeyspaces}
   535 
   536 \def\endlisting{\endtrivlist\baselineskip=\oldbaselineskip}
   537 
   538 %Add ttbox to Springer's macros!!  - LCP
   539 \newenvironment{ttbox}{\par\nobreak\vskip-2pt%
   540            \vbox\bgroup\begin{listing}\leftskip\leftmargini}%
   541         {\end{listing}\egroup\vskip-7pt\@endparenv}
   542 \newcommand\ttbreak{\end{ttbox}\goodbreak\vskip-8pt plus 3pt\begin{ttbox}}
   543 
   544 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   545 %
   546 % Acknowledgements ( = acknow.tex)
   547 %
   548 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   549 
   550 \def\ack#1{\vskip11pt\begingroup\noindent{\it Acknowledgements\/}.
   551 \ignorespaces#1\vskip6pt\endgroup}
   552 
   553 
   554 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   555 %
   556 % Definition of versal greek letters ( = ucgreek.tex)
   557 %
   558 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   559 
   560 \mathchardef\Gamma="0100
   561 \mathchardef\Delta="0101
   562 \mathchardef\Theta="0102
   563 \mathchardef\Lambda="0103
   564 \mathchardef\Xi="0104
   565 \mathchardef\Pi="0105
   566 \mathchardef\Sigma="0106
   567 \mathchardef\Upsilon="0107
   568 \mathchardef\Phi="0108
   569 \mathchardef\Psi="0109
   570 \mathchardef\Omega="010A
   571 
   572 
   573 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   574 %
   575 % Vectors ( = vector.tex)
   576 %
   577 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   578 
   579 % This is vector.tex
   580 % it redefines the plain TeX \vec command
   581 % to produce bold characters
   582 %
   583 \def\vec#1{\ifmmode
   584 \mathchoice{\mbox{\boldmath$\displaystyle\bf#1$}}
   585 {\mbox{\boldmath$\textstyle\bf#1$}}
   586 {\mbox{\boldmath$\scriptstyle\bf#1$}}
   587 {\mbox{\boldmath$\scriptscriptstyle\bf#1$}}\else
   588 {\mbox{\boldmath$\bf#1$}}\fi}
   589 %
   590 %\def\vec#1{{\textfont0=\tenbf\scriptfont0=\sevenbf
   591 %\scriptscriptfont0=\fivebf
   592 %\textfont1=\tenbf\scriptfont1=\sevenbf
   593 %\scriptscriptfont1=\fivebf
   594 %\ifmmode % supply all varieties of math sizes
   595 %   \mathchoice{\hbox{$\displaystyle#1$}}{\hbox{$\textstyle#1$}}
   596 %   {\hbox{$\scriptstyle#1$}}{\hbox{$\scriptscriptstyle#1$}}
   597 %\else\hbox{$#1$}\fi}}
   598 
   599 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   600 %
   601 % Symbols ( = symbols.tex )
   602 %
   603 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   604 
   605 % This is symbols.tex
   606 % the symbols not available in plain TeX are constructed
   607 % by overprinting some characters
   608 
   609 \def\sun{{\hbox{$\odot$}}}
   610 \def\la{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   611 $\displaystyle##$\hfil\cr<\cr\noalign{\vskip1.5pt}\sim\cr}}}
   612 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr<\cr
   613 \noalign{\vskip1.0pt}\sim\cr}}}
   614 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr<\cr
   615 \noalign{\vskip0.5pt}\sim\cr}}}
   616 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil
   617 \cr<\cr\noalign{\vskip0.5pt}\sim\cr}}}}}
   618 \def\ga{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   619 $\displaystyle##$\hfil\cr>\cr\noalign{\vskip1.5pt}\sim\cr}}}
   620 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr>\cr
   621 \noalign{\vskip1.0pt}\sim\cr}}}
   622 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr>\cr
   623 \noalign{\vskip0.5pt}\sim\cr}}}
   624 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil
   625 \cr>\cr\noalign{\vskip0.5pt}\sim\cr}}}}}
   626 \def\sq{\hbox{\rlap{$\sqcap$}$\sqcup$}}
   627 \def\degr{\hbox{$^\circ$}}
   628 \def\arcmin{\hbox{$^\prime$}}
   629 \def\arcsec{\hbox{$^{\prime\prime}$}}
   630 \def\utw{\smash{\rlap{\lower5pt\hbox{$\sim$}}}}
   631 \def\udtw{\smash{\rlap{\lower6pt\hbox{$\approx$}}}}
   632 \def\fd{\hbox{$.\!\!^{\rm d}$}}
   633 \def\fh{\hbox{$.\!\!^{\rm h}$}}
   634 \def\fm{\hbox{$.\!\!^{\rm m}$}}
   635 \def\fs{\hbox{$.\!\!^{\rm s}$}}
   636 \def\fdg{\hbox{$.\!\!^\circ$}}
   637 \def\farcm{\hbox{$.\mkern-4mu^\prime$}}
   638 \def\farcs{\hbox{$.\!\!^{\prime\prime}$}}
   639 \def\fp{\hbox{$.\!\!^{\scriptscriptstyle\rm p}$}}
   640 \def\getsto{\mathrel{\mathchoice {\vcenter{\offinterlineskip
   641 \halign{\hfil$\displaystyle##$\hfil\cr\gets\cr\to\cr}}}
   642 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr
   643 \gets\cr\to\cr}}}
   644 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr
   645 \gets\cr\to\cr}}}
   646 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   647 \gets\cr\to\cr}}}}}
   648 \def\cor{\mathrel{\mathchoice {\hbox{$\widehat=$}}{\hbox{$\widehat=$}}
   649 {\hbox{$\scriptstyle\hat=$}}
   650 {\hbox{$\scriptscriptstyle\hat=$}}}}
   651 \def\grole{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   652 $\displaystyle##$\hfil\cr>\cr\noalign{\vskip-1.5pt}<\cr}}}
   653 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr
   654 >\cr\noalign{\vskip-1.5pt}<\cr}}}
   655 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr
   656 >\cr\noalign{\vskip-1pt}<\cr}}}
   657 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   658 >\cr\noalign{\vskip-0.5pt}<\cr}}}}}
   659 \def\lid{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   660 $\displaystyle##$\hfil\cr<\cr\noalign{\vskip1.5pt}=\cr}}}
   661 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr<\cr
   662 \noalign{\vskip1pt}=\cr}}}
   663 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr<\cr
   664 \noalign{\vskip0.5pt}=\cr}}}
   665 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   666 <\cr\noalign{\vskip0.5pt}=\cr}}}}}
   667 \def\gid{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   668 $\displaystyle##$\hfil\cr>\cr\noalign{\vskip1.5pt}=\cr}}}
   669 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr>\cr
   670 \noalign{\vskip1pt}=\cr}}}
   671 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr>\cr
   672 \noalign{\vskip0.5pt}=\cr}}}
   673 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   674 >\cr\noalign{\vskip0.5pt}=\cr}}}}}
   675 \def\sol{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   676 $\displaystyle##$\hfil\cr\sim\cr\noalign{\vskip-0.2mm}<\cr}}}
   677 {\vcenter{\offinterlineskip
   678 \halign{\hfil$\textstyle##$\hfil\cr\sim\cr<\cr}}}
   679 {\vcenter{\offinterlineskip
   680 \halign{\hfil$\scriptstyle##$\hfil\cr\sim\cr<\cr}}}
   681 {\vcenter{\offinterlineskip
   682 \halign{\hfil$\scriptscriptstyle##$\hfil\cr\sim\cr<\cr}}}}}
   683 \def\sog{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   684 $\displaystyle##$\hfil\cr\sim\cr\noalign{\vskip-0.2mm}>\cr}}}
   685 {\vcenter{\offinterlineskip
   686 \halign{\hfil$\textstyle##$\hfil\cr\sim\cr>\cr}}}
   687 {\vcenter{\offinterlineskip
   688 \halign{\hfil$\scriptstyle##$\hfil\cr\sim\cr>\cr}}}
   689 {\vcenter{\offinterlineskip
   690 \halign{\hfil$\scriptscriptstyle##$\hfil\cr\sim\cr>\cr}}}}}
   691 \def\lse{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   692 $\displaystyle##$\hfil\cr<\cr\noalign{\vskip1.5pt}\simeq\cr}}}
   693 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr<\cr
   694 \noalign{\vskip1pt}\simeq\cr}}}
   695 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr<\cr
   696 \noalign{\vskip0.5pt}\simeq\cr}}}
   697 {\vcenter{\offinterlineskip
   698 \halign{\hfil$\scriptscriptstyle##$\hfil\cr<\cr
   699 \noalign{\vskip0.5pt}\simeq\cr}}}}}
   700 \def\gse{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   701 $\displaystyle##$\hfil\cr>\cr\noalign{\vskip1.5pt}\simeq\cr}}}
   702 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr>\cr
   703 \noalign{\vskip1.0pt}\simeq\cr}}}
   704 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr>\cr
   705 \noalign{\vskip0.5pt}\simeq\cr}}}
   706 {\vcenter{\offinterlineskip
   707 \halign{\hfil$\scriptscriptstyle##$\hfil\cr>\cr
   708 \noalign{\vskip0.5pt}\simeq\cr}}}}}
   709 \def\grole{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   710 $\displaystyle##$\hfil\cr>\cr\noalign{\vskip-1.5pt}<\cr}}}
   711 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr
   712 >\cr\noalign{\vskip-1.5pt}<\cr}}}
   713 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr
   714 >\cr\noalign{\vskip-1pt}<\cr}}}
   715 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   716 >\cr\noalign{\vskip-0.5pt}<\cr}}}}}
   717 \def\leogr{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   718 $\displaystyle##$\hfil\cr<\cr\noalign{\vskip-1.5pt}>\cr}}}
   719 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr
   720 <\cr\noalign{\vskip-1.5pt}>\cr}}}
   721 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr
   722 <\cr\noalign{\vskip-1pt}>\cr}}}
   723 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   724 <\cr\noalign{\vskip-0.5pt}>\cr}}}}}
   725 \def\loa{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   726 $\displaystyle##$\hfil\cr<\cr\noalign{\vskip1.5pt}\approx\cr}}}
   727 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr<\cr
   728 \noalign{\vskip1.0pt}\approx\cr}}}
   729 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr<\cr
   730 \noalign{\vskip0.5pt}\approx\cr}}}
   731 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   732 <\cr\noalign{\vskip0.5pt}\approx\cr}}}}}
   733 \def\goa{\mathrel{\mathchoice {\vcenter{\offinterlineskip\halign{\hfil
   734 $\displaystyle##$\hfil\cr>\cr\noalign{\vskip1.5pt}\approx\cr}}}
   735 {\vcenter{\offinterlineskip\halign{\hfil$\textstyle##$\hfil\cr>\cr
   736 \noalign{\vskip1.0pt}\approx\cr}}}
   737 {\vcenter{\offinterlineskip\halign{\hfil$\scriptstyle##$\hfil\cr>\cr
   738 \noalign{\vskip0.5pt}\approx\cr}}}
   739 {\vcenter{\offinterlineskip\halign{\hfil$\scriptscriptstyle##$\hfil\cr
   740 >\cr\noalign{\vskip0.5pt}\approx\cr}}}}}
   741 \def\bbbr{{\rm I\!R}} %reelle Zahlen
   742 \def\bbbn{{\rm I\!N}} %natuerliche Zahlen
   743 \def\bbbm{{\rm I\!M}}
   744 \def\bbbh{{\rm I\!H}}
   745 \def\bbbf{{\rm I\!F}}
   746 \def\bbbk{{\rm I\!K}}
   747 \def\bbbp{{\rm I\!P}}
   748 \def\bbbone{{\mathchoice {\rm 1\mskip-4mu l} {\rm 1\mskip-4mu l}
   749 {\rm 1\mskip-4.5mu l} {\rm 1\mskip-5mu l}}}
   750 \def\bbbc{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm C$}\hbox{\hbox
   751 to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}
   752 {\setbox0=\hbox{$\textstyle\rm C$}\hbox{\hbox
   753 to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}
   754 {\setbox0=\hbox{$\scriptstyle\rm C$}\hbox{\hbox
   755 to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}
   756 {\setbox0=\hbox{$\scriptscriptstyle\rm C$}\hbox{\hbox
   757 to0pt{\kern0.4\wd0\vrule height0.9\ht0\hss}\box0}}}}
   758 \def\bbbe{{\mathchoice {\setbox0=\hbox{\smalletextfont e}\hbox{\raise
   759 0.1\ht0\hbox to0pt{\kern0.4\wd0\vrule width0.3pt
   760 height0.7\ht0\hss}\box0}}
   761 {\setbox0=\hbox{\smalletextfont e}\hbox{\raise
   762 0.1\ht0\hbox to0pt{\kern0.4\wd0\vrule width0.3pt
   763 height0.7\ht0\hss}\box0}}
   764 {\setbox0=\hbox{\smallescriptfont e}\hbox{\raise
   765 0.1\ht0\hbox to0pt{\kern0.5\wd0\vrule width0.2pt
   766 height0.7\ht0\hss}\box0}}
   767 {\setbox0=\hbox{\smallescriptscriptfont e}\hbox{\raise
   768 0.1\ht0\hbox to0pt{\kern0.4\wd0\vrule width0.2pt
   769 height0.7\ht0\hss}\box0}}}}
   770 \def\bbbq{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm Q$}\hbox{\raise
   771 0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.8\ht0\hss}\box0}}
   772 {\setbox0=\hbox{$\textstyle\rm Q$}\hbox{\raise
   773 0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.8\ht0\hss}\box0}}
   774 {\setbox0=\hbox{$\scriptstyle\rm Q$}\hbox{\raise
   775 0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.7\ht0\hss}\box0}}
   776 {\setbox0=\hbox{$\scriptscriptstyle\rm Q$}\hbox{\raise
   777 0.15\ht0\hbox to0pt{\kern0.4\wd0\vrule height0.7\ht0\hss}\box0}}}}
   778 \def\bbbt{{\mathchoice {\setbox0=\hbox{$\displaystyle\rm
   779 T$}\hbox{\hbox to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}}
   780 {\setbox0=\hbox{$\textstyle\rm T$}\hbox{\hbox
   781 to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}}
   782 {\setbox0=\hbox{$\scriptstyle\rm T$}\hbox{\hbox
   783 to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}}
   784 {\setbox0=\hbox{$\scriptscriptstyle\rm T$}\hbox{\hbox
   785 to0pt{\kern0.3\wd0\vrule height0.9\ht0\hss}\box0}}}}
   786 \def\bbbs{{\mathchoice
   787 {\setbox0=\hbox{$\displaystyle     \rm S$}\hbox{\raise0.5\ht0\hbox
   788 to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\hbox
   789 to0pt{\kern0.55\wd0\vrule height0.5\ht0\hss}\box0}}
   790 {\setbox0=\hbox{$\textstyle        \rm S$}\hbox{\raise0.5\ht0\hbox
   791 to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\hbox
   792 to0pt{\kern0.55\wd0\vrule height0.5\ht0\hss}\box0}}
   793 {\setbox0=\hbox{$\scriptstyle      \rm S$}\hbox{\raise0.5\ht0\hbox
   794 to0pt{\kern0.35\wd0\vrule height0.45\ht0\hss}\raise0.05\ht0\hbox
   795 to0pt{\kern0.5\wd0\vrule height0.45\ht0\hss}\box0}}
   796 {\setbox0=\hbox{$\scriptscriptstyle\rm S$}\hbox{\raise0.5\ht0\hbox
   797 to0pt{\kern0.4\wd0\vrule height0.45\ht0\hss}\raise0.05\ht0\hbox
   798 to0pt{\kern0.55\wd0\vrule height0.45\ht0\hss}\box0}}}}
   799 
   800 %
   801 % note: changed \sans to \sf for LaTeX
   802 %
   803 
   804 \def\bbbz{{\mathchoice {\hbox{$\sf\textstyle Z\kern-0.4em Z$}}
   805 {\hbox{$\sf\textstyle Z\kern-0.4em Z$}}
   806 {\hbox{$\sf\scriptstyle Z\kern-0.3em Z$}}
   807 {\hbox{$\sf\scriptscriptstyle Z\kern-0.2em Z$}}}}
   808 
   809 \def\diameter{{\ifmmode\oslash\else$\oslash$\fi}}
   810 
   811 
   812 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   813 %
   814 % petit  (substitute for petit.tex)
   815 %
   816 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   817 
   818 
   819 \newenvironment{petit}{\vskip6pt\begingroup\small}{\endgroup\vskip6pt}
   820 
   821 
   822 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   823 %
   824 % New environments
   825 %
   826 %   lemma, proposition, theorem, corollary  (\bf,\it)  (numbered)
   827 %   exercise, problem, solution, definition (\bf,\rm)
   828 % 27.3.91 binding: example, note and question changed to (\bf, \rm)
   829 %
   830 %   lemma*, proposition*, theorem*, corollary*  (\bf,\it)   (unnumbered)
   831 %   exercise*, problem*, solution*, definition* (\bf,\rm)
   832 %   example*, note*, question* (\it,\rm)
   833 %
   834 %   remark, proof (\it,\rm)  (unnumbered)
   835 %
   836 %   usage:   \begin{lemma}  or  \begin{lemma}[COMMENT]
   837 %              ...                ...
   838 %            \end{lemma}        \end{lemma}
   839 %
   840 %
   841 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   842 
   843 % currently one counter is used for all theorem like environments
   844 
   845 \newcounter{lemmacount}[chapter]
   846 \renewcommand{\thelemmacount}{\thechapter.\arabic{lemmacount}}
   847 
   848 
   849 %
   850 % short form for defininng new theorem like environments:
   851 % \newthe{NAME}{NAME*}{TITLE}{COUNTER}{FONT1}{FONT2}
   852 %
   853 \def\@@begthe#1{\@ifnextchar[{\@optbegthe#1}{\@begthe#1}}
   854 %27.3.91 binding: dot deleted
   855 %def\@begthe#1{. #1}   old
   856 \def\@begthe#1{ #1}
   857 \def\@optbegthe#1[#2]{ {#2} #1}
   858 \newcommand{\newthe}[6]{
   859  \def\nlni{\par\ifvmode\removelastskip\fi\vskip\baselineskip\noindent}
   860  \def\xxxend{\endgroup\vskip\baselineskip}
   861  \newenvironment{#1}{\nlni\begingroup\refstepcounter{#4}#5#3
   862 %changed 91/10/7 fuh:\arabic{chapter}.\arabic{#4}\@@begthe{#6}}{\xxxend}
   863                      \thechapter.\arabic{#4}\@@begthe{#6}}{\xxxend}
   864  \newenvironment{#2}{\nlni\begingroup#5#3\@@begthe{#6}}{\xxxend}}
   865 
   866 
   867 % Lemma, Proposition, Theorem, Corollary  (\bf,\it)
   868 
   869 \newthe{lemma}{lemma*}{Lemma}{lemmacount}{\bf}{\it}
   870 \newthe{proposition}{proposition*}{Proposition}{lemmacount}{\bf}{\it}
   871 \newthe{theorem}{theorem*}{Theorem}{lemmacount}{\bf}{\it}
   872 \newthe{corollary}{corollary*}{Corollary}{lemmacount}{\bf}{\it}
   873 
   874 
   875 % Exercise, Problem, Solution, Definition (\bf,\rm)
   876 
   877 \newthe{exercise}{exercise*}{exercise}{lemmacount}{\bf}{\it}
   878 \newthe{problem}{problem*}{Problem}{lemmacount}{\bf}{\it}
   879 \newthe{solution}{solution*}{Solution}{lemmacount}{\bf}{\it}
   880 \newthe{definition}{definition*}{Definition}{lemmacount}{\bf}{\it}
   881 
   882 
   883 % Example, Note, Question (\bf,\rm)
   884 
   885 \newthe{example}{example*}{Example}{lemmacount}{\bf}{\rm}
   886 \newthe{note}{note*}{Note}{lemmacount}{\bf}{\rm}
   887 \newthe{question}{question*}{Question}{lemmacount}{\bf}{\rm}
   888 
   889 
   890 % Remark, Proof
   891 
   892 \newenvironment{remark}{\nlni\begingroup\it Remark. \rm}{
   893                         \endgroup\vskip\baselineskip}
   894 \newenvironment{proof}{\nlni\begingroup\it Proof. \rm}{
   895                        \endgroup\vskip\baselineskip}
   896 
   897 
   898 
   899 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   900 %
   901 % qed
   902 %
   903 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   904 
   905 \def\qed{\ifmmode\sq\else{\unskip\nobreak\hfil
   906 \penalty50\hskip1em\null\nobreak\hfil\sq
   907 \parfillskip=0pt\finalhyphendemerits=0\endgraf}\fi}
   908 
   909 
   910 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   911 %
   912 %  \eqnarticle    simple equation numbers without chapter number
   913 %  \eqnbook       structured equation numbers (default)
   914 %   changed by binding 5.2.91: changed to \numberlikearticle and
   915 %                                \numberlikebook, changing numbering of
   916 %                              figures and tables also.
   917 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   918 
   919 \def\numberlikearticle{\global\def\theequation{\arabic{equation}}
   920 \global\def\thetable{\arabic{table}}
   921 \global\def\thefigure{\arabic{figure}}}
   922 \def\numberlikebook{\global\def\theequation{\thechapter.\arabic{equation}}
   923 \global\def\thetable{\thechapter.\arabic{table}}
   924 \global\def\thefigure{\thechapter.\arabic{figure}}}
   925 
   926 
   927 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   928 %
   929 %  Redeclaration of \makeatletter; no @-expressions may be used from now on
   930 %
   931 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   932 
   933 \makeatother
   934 
   935 
   936 
   937 
   938 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   939 %
   940 %   End of MATHSING.STY
   941 %
   942 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
   943 
   944 
   945