| 1 | %%%%%%%%%% espcrc2.sty %%%%%%%%%% | 
|---|
| 2 | % C(amera) R(eady) C(opy) document-style option. (two-column format). | 
|---|
| 3 | % $Revision: 2.8$, $Date: 2000/07/24 09:12:51$ | 
|---|
| 4 | % To be used with LaTeX version 2.09 (14 January 1992 or later), or LaTeX2e. | 
|---|
| 5 | % | 
|---|
| 6 | % Copyright (C) 1992 by Elsevier Science Publishers. All rights reserved. | 
|---|
| 7 | % | 
|---|
| 8 | % IMPORTANT NOTICE: | 
|---|
| 9 | % | 
|---|
| 10 | % You are not allowed to change this file. You may however copy this file | 
|---|
| 11 | % to a file with a different name and then change the copy. | 
|---|
| 12 | % | 
|---|
| 13 | % You are NOT ALLOWED to distribute this file alone. You are NOT ALLOWED | 
|---|
| 14 | % to take money for the distribution or use of this file (or a changed | 
|---|
| 15 | % version) except for a nominal charge for copying etc. | 
|---|
| 16 | % | 
|---|
| 17 | % You are allowed to distribute this file under the condition that it is | 
|---|
| 18 | % distributed together with espcrc2.tex. | 
|---|
| 19 | % | 
|---|
| 20 | % If you receive only this file from someone, complain! | 
|---|
| 21 | % | 
|---|
| 22 | % | 
|---|
| 23 | % | 
|---|
| 24 | % Usage: \documentclass[fleqn,twoside]{article} | 
|---|
| 25 | % \usepackage{espcrc2} | 
|---|
| 26 | % | 
|---|
| 27 | \def\readRCS$#1: #2 #3 #4 #5${% | 
|---|
| 28 | \def\filename{#2}% | 
|---|
| 29 | \def\fileversion{#3}% | 
|---|
| 30 | \def\filedate{#4}% | 
|---|
| 31 | } | 
|---|
| 32 | \readRCS | 
|---|
| 33 | $Id: espcrc2.sty 2.8 2000/07/24 09:12:51 spepping Exp spepping $ | 
|---|
| 34 |  | 
|---|
| 35 | \typeout{Document-style option `espcrc2' v\fileversion \space\space | 
|---|
| 36 | <\filedate>} | 
|---|
| 37 |  | 
|---|
| 38 | % SIDE MARGINS: | 
|---|
| 39 | \oddsidemargin  -4mm              % Left margin on odd-numbered pages. | 
|---|
| 40 | \evensidemargin  4mm              % Left margin on even-numbered pages. | 
|---|
| 41 |  | 
|---|
| 42 | % VERTICAL SPACING: | 
|---|
| 43 | \topmargin      16mm              % Nominal distance from top of page to top | 
|---|
| 44 | % of box containing running head. | 
|---|
| 45 | \headheight     13mm              % No running headline, and no | 
|---|
| 46 | \headsep        21pt              % space between running headline and text. | 
|---|
| 47 | \footskip       30pt              % Baseline-baseline distance between | 
|---|
| 48 | % running footline and last line of text. | 
|---|
| 49 |  | 
|---|
| 50 | % DIMENSION OF TEXT: | 
|---|
| 51 | \textheight 202mm                 % Height of text part of page | 
|---|
| 52 | \textwidth 160mm                  % Width of text part of page, i.e of line | 
|---|
| 53 |  | 
|---|
| 54 | \columnsep 10mm                   % Horizontal space between columns | 
|---|
| 55 | \columnseprule 0pt                % No vertical rule between columns | 
|---|
| 56 |  | 
|---|
| 57 | % PARAGRAPHING | 
|---|
| 58 | \parskip 0pt                      % No extra vertical space between paragraphs. | 
|---|
| 59 | \parindent 1em                    % Width of paragraph indentation. | 
|---|
| 60 |  | 
|---|
| 61 | % SECTIONAL UNITS: | 
|---|
| 62 | \newdimen\@bls                    % \@b(ase)l(ine)s(kip) | 
|---|
| 63 | \@bls=\baselineskip               % \@bls ~= \baselineskip for \normalsize | 
|---|
| 64 | \advance\@bls -1ex                % (fudge term) | 
|---|
| 65 | \newdimen\@eps                    % | 
|---|
| 66 | \@eps=0.0001pt                    % \eps = very small positive quantity | 
|---|
| 67 |  | 
|---|
| 68 | \def\section{\@startsection{section}{1}{\z@} | 
|---|
| 69 | {1.5\@bls plus 0.5\@bls}{1\@bls}{\normalsize\bf}} | 
|---|
| 70 | \def\subsection{\@startsection{subsection}{2}{\z@} | 
|---|
| 71 | {1\@bls plus 0.25\@bls}{\@eps}{\normalsize\bf}} | 
|---|
| 72 | \def\subsubsection{\@startsection{subsubsection}{3}{\z@} | 
|---|
| 73 | {1\@bls plus 0.25\@bls}{\@eps}{\normalsize\bf}} | 
|---|
| 74 | \def\paragraph{\@startsection{paragraph}{4}{\parindent} | 
|---|
| 75 | {1\@bls plus 0.25\@bls}{0.5em}{\normalsize\bf}} | 
|---|
| 76 | \def\subparagraph{\@startsection{subparagraph}{4}{\parindent} | 
|---|
| 77 | {1\@bls plus 0.25\@bls}{0.5em}{\normalsize\bf}} | 
|---|
| 78 |  | 
|---|
| 79 | \def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth | 
|---|
| 80 | \def\@svsec{}\else | 
|---|
| 81 | \refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname.\hskip0.5em}\fi | 
|---|
| 82 | \@tempskipa #5\relax | 
|---|
| 83 | \ifdim \@tempskipa>\z@ | 
|---|
| 84 | \begingroup | 
|---|
| 85 | #6\relax | 
|---|
| 86 | \@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M #8\par}% | 
|---|
| 87 | \endgroup | 
|---|
| 88 | \csname #1mark\endcsname{#7}\addcontentsline | 
|---|
| 89 | {toc}{#1}{\ifnum #2>\c@secnumdepth \else | 
|---|
| 90 | \protect\numberline{\csname the#1\endcsname}\fi #7}% | 
|---|
| 91 | \else | 
|---|
| 92 | \def\@svsechd{#6\hskip #3\@svsec #8\csname #1mark\endcsname | 
|---|
| 93 | {#7}\addcontentsline{toc}{#1}{\ifnum #2>\c@secnumdepth \else | 
|---|
| 94 | \protect\numberline{\csname the#1\endcsname}\fi #7}}% | 
|---|
| 95 | \fi \@xsect{#5}} | 
|---|
| 96 |  | 
|---|
| 97 | % FIGURES AND TABLES | 
|---|
| 98 | \long\def\@makefigurecaption#1#2{\vskip 2mm #1. #2\par} | 
|---|
| 99 |  | 
|---|
| 100 | \long\def\@maketablecaption#1#2{\hbox to \hsize{\parbox[t]{\hsize} | 
|---|
| 101 | {#1 \\ #2}}\vskip 0.3ex} | 
|---|
| 102 |  | 
|---|
| 103 | \def\fnum@figure{Figure \thefigure} | 
|---|
| 104 | \def\figure{\let\@makecaption\@makefigurecaption \@float{figure}} | 
|---|
| 105 | \@namedef{figure*}{\let\@makecaption\@makefigurecaption \@dblfloat{figure}} | 
|---|
| 106 |  | 
|---|
| 107 | % \def\fnum@table{Table \thetable} | 
|---|
| 108 | \def\table{\let\@makecaption\@maketablecaption \@float{table}} | 
|---|
| 109 | \@namedef{table*}{\let\@makecaption\@maketablecaption \@dblfloat{table}} | 
|---|
| 110 |  | 
|---|
| 111 | \floatsep 10mm plus 4pt minus 4pt % Space between adjacent floats moved | 
|---|
| 112 | % to top or bottom of text page. | 
|---|
| 113 | \textfloatsep=\floatsep           % Space between main text and floats | 
|---|
| 114 | % at top or bottom of page. | 
|---|
| 115 | \intextsep=\floatsep              % Space between in-text figures and | 
|---|
| 116 | % text. | 
|---|
| 117 |  | 
|---|
| 118 | % FOOTNOTE | 
|---|
| 119 | \long\def\@makefntext#1{\parindent 1em\noindent\hbox{${}^{\@thefnmark}$}#1} | 
|---|
| 120 |  | 
|---|
| 121 | % EQUATION | 
|---|
| 122 | \mathindent=0em | 
|---|
| 123 |  | 
|---|
| 124 | % TITLE | 
|---|
| 125 | \def\maketitle{\begingroup        % Initialize generation of front-matter | 
|---|
| 126 | %   \let\thanks\@gobble | 
|---|
| 127 | \def\thefootnote{\fnsymbol{footnote}}% | 
|---|
| 128 | \newpage \global\@topnum\z@ | 
|---|
| 129 | \@maketitle \@thanks | 
|---|
| 130 | \endgroup | 
|---|
| 131 | \let\maketitle\relax \let\@maketitle\relax | 
|---|
| 132 | \gdef\@thanks{}\let\thanks\relax | 
|---|
| 133 | \gdef\@address{}\gdef\@author{}\gdef\@title{}\let\address\relax} | 
|---|
| 134 |  | 
|---|
| 135 | \def\justify@on{\let\\=\@normalcr | 
|---|
| 136 | \leftskip\z@ \@rightskip\z@ \rightskip\@rightskip} | 
|---|
| 137 |  | 
|---|
| 138 | \newbox\fm@box                    % Box to capture front-matter in | 
|---|
| 139 |  | 
|---|
| 140 | \def\@maketitle{%                 % Actual formatting of \maketitle | 
|---|
| 141 | \global\setbox\fm@box=\vbox\bgroup | 
|---|
| 142 | \vskip 8mm                    % 930715: 8mm white space above title | 
|---|
| 143 | \raggedright                  % Front-matter text is ragged right | 
|---|
| 144 | \hyphenpenalty\@M             % and is not hyphenated. | 
|---|
| 145 | {\Large \@title \par}         % Title set in larger font. | 
|---|
| 146 | \vskip\@bls                   % One line of vertical space after title. | 
|---|
| 147 | {\normalsize                  % each author set in the normal | 
|---|
| 148 | \@author \par}               % typeface size | 
|---|
| 149 | \vskip\@bls                   % One line of vertical space after author(s). | 
|---|
| 150 | \@address                     % all addresses | 
|---|
| 151 | \egroup | 
|---|
| 152 | \twocolumn[%                    % Front-matter text is over 2 columns. | 
|---|
| 153 | \unvbox\fm@box                % Unwrap contents of front-matter box | 
|---|
| 154 | \vskip\@bls                   % add 1 line of vertical space, | 
|---|
| 155 | \unvbox\abstract@box          % unwrap contents of abstract boxes, | 
|---|
| 156 | \vskip 2pc]}                  % and add 2pc of vertical space | 
|---|
| 157 |  | 
|---|
| 158 | \newcounter{address} | 
|---|
| 159 | \def\theaddress{\alph{address}} | 
|---|
| 160 | \def\@makeadmark#1{\hbox{$^{\rm #1}$}} | 
|---|
| 161 |  | 
|---|
| 162 | \def\address{\stepcounter{address}\addressmark | 
|---|
| 163 | \@ifnextchar[\@markaddress\@addtoaddress} | 
|---|
| 164 | \def\@markaddress[#1]{% | 
|---|
| 165 | \expandafter\xdef\csname mkad@#1\endcsname{\theaddress}% | 
|---|
| 166 | \@addtoaddress} | 
|---|
| 167 | \def\@addtoaddress#1{\begingroup | 
|---|
| 168 | \xdef\@tempa{\theaddress}\let\\=\relax | 
|---|
| 169 | \def\protect{\noexpand\protect\noexpand}\xdef\@address{\@address | 
|---|
| 170 | \protect\addresstext{\@tempa}{#1}}\endgroup} | 
|---|
| 171 | \def\@address{} | 
|---|
| 172 |  | 
|---|
| 173 | \def\addressmark{\@ifnextchar[\@markedaddressmark | 
|---|
| 174 | {\xdef\@tempb{\theaddress}\@makeadmark{\@tempb}}} | 
|---|
| 175 | \def\@markedaddressmark[#1]{\xdef\@tempb{\csname mkad@#1\endcsname}% | 
|---|
| 176 | \@makeadmark{\@tempb}} | 
|---|
| 177 |  | 
|---|
| 178 | \def\addresstext#1#2{\leavevmode \begingroup | 
|---|
| 179 | \raggedright \hyphenpenalty\@M \@makeadmark{#1}#2\par \endgroup | 
|---|
| 180 | \vskip\@bls} | 
|---|
| 181 |  | 
|---|
| 182 | % ABSTRACT: | 
|---|
| 183 | \newbox\abstract@box              % Box to capture abstract in | 
|---|
| 184 |  | 
|---|
| 185 | \def\abstract{% | 
|---|
| 186 | \global\setbox\abstract@box=\vbox\bgroup | 
|---|
| 187 | \small\rm | 
|---|
| 188 | \ignorespaces} | 
|---|
| 189 | \def\endabstract{\par \egroup} | 
|---|
| 190 |  | 
|---|
| 191 | % BIBLIOGRAPHY | 
|---|
| 192 | \def\thebibliography#1{\section*{REFERENCES}\list{\arabic{enumi}.} | 
|---|
| 193 | {\settowidth\labelwidth{#1.}\leftmargin=1.67em | 
|---|
| 194 | \labelsep\leftmargin \advance\labelsep-\labelwidth | 
|---|
| 195 | \itemsep\z@ \parsep\z@ | 
|---|
| 196 | \usecounter{enumi}}\def\makelabel##1{\rlap{##1}\hss}% | 
|---|
| 197 | \def\newblock{\hskip 0.11em plus 0.33em minus -0.07em} | 
|---|
| 198 | \sloppy \clubpenalty=4000 \widowpenalty=4000 \sfcode`\.=1000\relax} | 
|---|
| 199 |  | 
|---|
| 200 | % Collapse citation numbers to ranges. | 
|---|
| 201 | \newcount\@tempcntc | 
|---|
| 202 | \def\@citex[#1]#2{\if@filesw\immediate\write\@auxout{\string\citation{#2}}\fi | 
|---|
| 203 | \@tempcnta\z@\@tempcntb\m@ne\def\@citea{}\@cite{\@for\@citeb:=#2\do | 
|---|
| 204 | {\@ifundefined | 
|---|
| 205 | {b@\@citeb}{\@citeo\@tempcntb\m@ne\@citea | 
|---|
| 206 | \def\@citea{,\penalty\@m\ }{\bf ?}\@warning | 
|---|
| 207 | {Citation `\@citeb' on page \thepage \space undefined}}% | 
|---|
| 208 | {\setbox\z@\hbox{\global\@tempcntc0\csname b@\@citeb\endcsname\relax}% | 
|---|
| 209 | \ifnum\@tempcntc=\z@ \@citeo\@tempcntb\m@ne | 
|---|
| 210 | \@citea\def\@citea{,\penalty\@m} | 
|---|
| 211 | \hbox{\csname b@\@citeb\endcsname}% | 
|---|
| 212 | \else | 
|---|
| 213 | \advance\@tempcntb\@ne | 
|---|
| 214 | \ifnum\@tempcntb=\@tempcntc | 
|---|
| 215 | \else\advance\@tempcntb\m@ne\@citeo | 
|---|
| 216 | \@tempcnta\@tempcntc\@tempcntb\@tempcntc\fi\fi}}\@citeo}{#1}} | 
|---|
| 217 |  | 
|---|
| 218 | \def\@citeo{\ifnum\@tempcnta>\@tempcntb\else\@citea | 
|---|
| 219 | \def\@citea{,\penalty\@m}% | 
|---|
| 220 | \ifnum\@tempcnta=\@tempcntb\the\@tempcnta\else | 
|---|
| 221 | {\advance\@tempcnta\@ne\ifnum\@tempcnta=\@tempcntb \else | 
|---|
| 222 | \def\@citea{--}\fi | 
|---|
| 223 | \advance\@tempcnta\m@ne\the\@tempcnta\@citea\the\@tempcntb}\fi\fi} | 
|---|
| 224 |  | 
|---|
| 225 | % PAGE STYLES | 
|---|
| 226 | \def\ps@crcplain{\let\@mkboth\@gobbletwo | 
|---|
| 227 | \def\@oddhead{\reset@font{\sl\rightmark}\hfil \rm\thepage}% | 
|---|
| 228 | \def\@evenhead{\reset@font\rm \thepage\hfil\sl\leftmark}% | 
|---|
| 229 | \let\@oddfoot\@empty | 
|---|
| 230 | \let\@evenfoot\@oddfoot} | 
|---|
| 231 |  | 
|---|
| 232 | % INITIALIZATION | 
|---|
| 233 | % \twocolumn                    % Formatting is in 2 columns, with | 
|---|
| 234 | \sloppy                         % paragraphs that can be loosely set, | 
|---|
| 235 | \emergencystretch=1pc           % (with 1 pc extra for emergencies), | 
|---|
| 236 | \flushbottom                    % and pages of equal length | 
|---|
| 237 | \ps@crcplain                    % modified 'plain' page style | 
|---|