statsoc.cls 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  2. \ProvidesClass{statsoc}
  3. \DeclareOption{draft }{\setlength\overfullrule{5pt}}
  4. \DeclareOption{proofs}{\setlength\overfullrule{5pt}}
  5. \DeclareOption{crc }{\setlength\overfullrule{0pt}}
  6. \DeclareOption{final }{\setlength\overfullrule{0pt}}
  7. \DeclareOption{leqno}{\input{leqno.clo}}
  8. \DeclareOption{fleqn}{\input{fleqn.clo}}
  9. \DeclareOption{mathptm}{%
  10. \def\JOURNAL@fonts{\RequirePackage{times,mathptm}}%
  11. \renewcommand{\ttdefault}{cmtt}}
  12. \renewcommand{\sfdefault}{phv}
  13. \DeclareOption{mathtime}{%
  14. \def\JOURNAL@fonts{\RequirePackage{times}\RequirePackage%
  15. {mathtime}}%
  16. \renewcommand{\sfdefault}{phv}
  17. \renewcommand{\ttdefault}{cmtt}}
  18. \DeclareOption{cmfonts}{%
  19. \renewcommand{\sfdefault}{phv}
  20. \let\JOURNAL@fonts\relax}
  21. \ExecuteOptions{cmfonts,final}
  22. \setlength\paperheight {58.5pc}
  23. \setlength\paperwidth {41pc}
  24. \@twosidetrue\@mparswitchtrue
  25. \ProcessOptions
  26. \JOURNAL@fonts
  27. \RequirePackage{graphics}
  28. \RequirePackage{latexsym}
  29. \DeclareMathAlphabet\mathbi
  30. \encodingdefault\rmdefault\bfdefault\itdefault
  31. \DeclareMathAlphabet\mathsc
  32. \encodingdefault{cmr}\mddefault\scdefault
  33. \renewcommand\normalsize{%
  34. \@setfontsize\normalsize\@xpt\@xiipt
  35. \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  36. \abovedisplayshortskip \z@ \@plus3\p@
  37. \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  38. \belowdisplayskip \abovedisplayskip
  39. \let\@listi\@listI}
  40. \normalsize
  41. \newcommand\small{%
  42. \@setfontsize\small\@ixpt{11}%
  43. \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
  44. \abovedisplayshortskip \z@ \@plus2\p@
  45. \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
  46. \def\@listi{\leftmargin\leftmargini
  47. \topsep 4\p@ \@plus2\p@ \@minus2\p@
  48. \parsep 2\p@ \@plus\p@ \@minus\p@
  49. \itemsep \parsep}%
  50. \belowdisplayskip \abovedisplayskip
  51. }
  52. \newcommand\footnotesize{%
  53. \@setfontsize\footnotesize\@viiipt{9.5}%
  54. \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
  55. \abovedisplayshortskip \z@ \@plus\p@
  56. \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
  57. \def\@listi{\leftmargin\leftmargini
  58. \topsep 3\p@ \@plus\p@ \@minus\p@
  59. \parsep 2\p@ \@plus\p@ \@minus\p@
  60. \itemsep \parsep}%
  61. \belowdisplayskip \abovedisplayskip
  62. }
  63. \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
  64. \newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
  65. \newcommand\large{\@setfontsize\large\@xiipt{14}}
  66. \newcommand\Large{\@setfontsize\Large\@xivpt{18}}
  67. \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
  68. \newcommand\huge{\@setfontsize\huge\@xxpt{25}}
  69. \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
  70. \setlength\lineskip{1\p@}
  71. \setlength\normallineskip{1\p@}
  72. \renewcommand\baselinestretch{}
  73. \setlength\parskip{0\p@ \@plus \p@}
  74. \setlength\parindent{15\p@}
  75. \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
  76. \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
  77. \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
  78. \@lowpenalty 51
  79. \@medpenalty 151
  80. \@highpenalty 301
  81. \setlength\headheight{9\p@}
  82. \setlength\headsep {9\p@}
  83. \setlength\topskip {10\p@}
  84. \setlength\footskip{30\p@}
  85. \setlength\maxdepth{0.5\topskip}
  86. %%%%%%Updation
  87. \setlength\textwidth{33pc}
  88. %%\setlength\textwidth{40pc}
  89. %%%%%%%
  90. \@settopoint\textwidth
  91. %%%%%%Updation
  92. \setlength\textheight{48\baselineskip}
  93. %%\setlength\textheight{58\baselineskip}
  94. %%%%%%
  95. \addtolength\textheight{\topskip}
  96. \@settopoint\textheight
  97. \setlength\marginparsep{11\p@}
  98. \setlength\marginparpush{5\p@}
  99. %%%%%%Updation
  100. \setlength\oddsidemargin {4pc}
  101. %%\setlength\oddsidemargin {0pc}
  102. %%%%%%
  103. \@settopoint\oddsidemargin
  104. %%%%%%Updation
  105. \setlength\evensidemargin {3.5pc}
  106. %%\setlength\evensidemargin {0pc}
  107. %%%%%%
  108. \@settopoint\evensidemargin
  109. \setlength\marginparwidth {107\p@}
  110. \@settopoint\marginparwidth
  111. %%%%%%Updation
  112. \setlength\topmargin{3pc}
  113. %%\setlength\topmargin{0pc}
  114. %%%%%%
  115. \@settopoint\topmargin
  116. \setlength\footnotesep{6.65\p@}
  117. \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
  118. \setcounter{topnumber}{2}
  119. \renewcommand\topfraction{0.7}
  120. \setcounter{bottomnumber}{1}
  121. \renewcommand\bottomfraction{0.3}
  122. \setcounter{totalnumber}{3}
  123. \renewcommand\textfraction{0.2}
  124. \renewcommand\floatpagefraction{0.5}
  125. \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
  126. \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
  127. \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
  128. \setlength\@fptop{0\p@ \@plus 1fil}
  129. \setlength\@fpsep{8\p@ \@plus 2fil}
  130. \setlength\@fpbot{0\p@ \@plus 1fil}
  131. \def\artid#1{\gdef\@artid{#1}}
  132. \def\volume#1{\setcounter{@volumenumber}{#1}}
  133. \newcounter{@volumenumber}
  134. \setcounter{@volumenumber}{1}
  135. \def\issue#1{\setcounter{@issuenumber}{#1}}
  136. \newcounter{@issuenumber}
  137. \setcounter{@issuenumber}{1}
  138. \def\four@digits#1{\ifnum#1<1000 0\fi\ifnum#1<100 0\fi\ifnum#1<10
  139. 0\fi\number#1}
  140. \def\startpage{\@ifundefined{r@firstpage}{????}%
  141. {\expandafter\four@digits{\expandafter\@secondoftwo\r@firstpage}}}
  142. \def\pages{\@ifundefined{r@lastpage}{??}%
  143. {\addtocounter{@pages}{ \expandafter\@secondoftwo\r@lastpage}%
  144. \addtocounter{@pages}{-\expandafter\@secondoftwo\r@firstpage}%
  145. \two@digits{\value{@pages}}}}
  146. \newcounter{@pages}
  147. \setcounter{@pages}{1}
  148. \def\journalname#1{\gdef\@journalname{#1}}
  149. \def\journalnumber#1{\gdef\@journalnumber{#1}}
  150. \def\copyrightname#1{\gdef\@copyrightname{#1}}
  151. \def\price#1{\gdef\@price{#1}}
  152. \artid{??????}
  153. \volume{1}
  154. \issue{1}
  155. \journalname{Appl.\ Statist.}
  156. \journalnumber{0035-9254}
  157. \copyrightname{Royal Statistical Society}
  158. \price{\$141.00}
  159. \def\label@firstpage{%
  160. \immediate\write\@auxout{\string
  161. \newlabel{firstpage}{{}{\thepage}}}%
  162. }
  163. \def\label@lastpage{%
  164. \advance\c@page\m@ne
  165. \immediate\write\@auxout{\string
  166. \newlabel{lastpage}{{}{\thepage}}}%
  167. \advance\c@page\@ne}
  168. \def\ps@title{%
  169. \let\@oddfoot\@empty\let\@evenfoot\@empty
  170. \let\@evenhead\@empty\let\@oddhead\@empty}
  171. \def\ps@statsoc{%
  172. \let\@oddfoot\@empty\let\@evenfoot\@empty
  173. \def\@evenhead{{\sffamily\small\thepage\qquad\slshape\@shortauthor\hfil}}%
  174. \def\@oddhead{\hfil{\sffamily\small{\slshape\@shorttitle}\qquad\thepage}}%
  175. \let\@mkboth\markboth
  176. \def\sectionmark##1{%
  177. \markboth {\MakeUppercase{%
  178. \ifnum \c@secnumdepth >\z@
  179. \thesection\quad
  180. \fi
  181. ##1}}{}}%
  182. \def\subsectionmark##1{%
  183. \markright {%
  184. \ifnum \c@secnumdepth >\@ne
  185. \thesubsection\quad
  186. \fi
  187. ##1}}}
  188. \def\ps@empty{%
  189. \let\@oddfoot\@empty\let\@evenfoot\@empty
  190. \let\@evenhead\@empty\let\@oddhead\@empty
  191. }
  192. \def\affiliation#1{#1}
  193. \def\@email{}
  194. %%\def\email#1{\gdef\@email{{\sffamily E-mail: #1}}}
  195. \def\email#1{\g@addto@macro\@correspondence{{{\sffamily E-mail: #1}}}}%
  196. \let\@coaddress\@empty
  197. \newcommand{\address}[1]{\g@addto@macro\@correspondence{\item[]{\small\itshape #1}\vskip 4\p@}}\let\@accepted\@empty
  198. \def\coaddress#1{\g@addto@macro\@correspondence{\thanks{\textit{Address for correspondence:} #1\\\@email}}}
  199. \def\accepted#1{\gdef\@accepted{#1}}
  200. \let\@received\@empty
  201. \def\received#1{\gdef\@received{#1}}
  202. \let\@revised\@empty
  203. \def\revised#1{\gdef\@revised{#1}}
  204. \def\title{\@dblarg\statsoc@title}
  205. \def\statsoc@title[#1]#2{%
  206. \def\@title{#2}%
  207. \def\@shorttitle{#1}}
  208. \def\author{\@dblarg\statsoc@author}
  209. \def\statsoc@author[#1]#2{%
  210. \g@addto@macro\@correspondence{\item[]{\normalsize #2}}%
  211. \def\@shortauthor{#1}}
  212. \let\@correspondence\@empty
  213. \newcommand\maketitle{%
  214. \let\footnotesize\small
  215. \let\footnoterule\relax
  216. {\let \footnote \thanks
  217. \global\@topnum\z@
  218. \null
  219. {\list{}{\leftmargin=2pc\parsep\z@\itemsep 3\p@}
  220. \item[]\relax
  221. {\sffamily\bfseries\Large \@title \par}%
  222. \vskip 2pc%
  223. {\sffamily
  224. {\@correspondence}}%
  225. {\sffamily\footnotesize
  226. \ifx\@received\@empty
  227. \ifx\@revised\@empty
  228. \ifx\@accepted\@empty
  229. \else
  230. \item[] [Final revision \@accepted]%
  231. \fi
  232. \else
  233. \item[] [Revised \@revised%
  234. \ifx\@accepted\@empty
  235. ]
  236. \else
  237. . Final revision \@accepted]%
  238. \fi
  239. \fi
  240. \else
  241. \item[] [Received \@received%
  242. \ifx\@revised\@empty
  243. \ifx\@accepted\@empty
  244. ]
  245. \else
  246. . Final revision \@accepted]%
  247. \fi
  248. \else
  249. . Revised \@revised%
  250. \ifx\@accepted\@empty
  251. ]
  252. \else
  253. . Final revision \@accepted]%
  254. \fi
  255. \fi
  256. \fi}%
  257. \endlist}
  258. \thispagestyle{title}\label@firstpage\@thanks}
  259. \global\let\thanks\relax
  260. \global\let\maketitle\relax
  261. \global\let\@thanks\@empty
  262. \global\let\@author\@empty
  263. \global\let\@date\@empty
  264. \global\let\@title\@empty
  265. \global\let\@coaddress\@empty
  266. \global\let\title\relax
  267. \global\let\author\relax
  268. \global\let\date\relax
  269. \global\let\and\relax
  270. }
  271. \AtBeginDocument{\maketitle}
  272. \AtEndDocument{\par%
  273. \clearpage\label@lastpage}
  274. \setcounter{secnumdepth}{3}
  275. \newcounter {section}
  276. \newcounter {subsection}[section]
  277. \newcounter {subsubsection}[subsection]
  278. \newcounter {paragraph}[subsubsection]
  279. \renewcommand\thesection {\@arabic\c@section}
  280. \renewcommand\thesubsection {\thesection.\@arabic\c@subsection}
  281. \renewcommand\thesubsubsection{\thesubsection .\@arabic\c@subsubsection}
  282. \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
  283. \newcommand\section{\@startsection {section}{1}{\z@}%
  284. {-1.5pc \@plus -1ex \@minus -0.2ex}%
  285. { 0.675pc \@plus0.2ex}%
  286. {\normalfont\normalsize\sffamily\bfseries}}
  287. \newcommand\subsection{\@startsection{subsection}{2}{\z@}%
  288. {-1.75pc\@plus -1ex \@minus -0.2ex}%
  289. { 0.025\p@\@plus 0.2ex}%
  290. {\normalfont\normalsize\sffamily\slshape}}
  291. \newcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  292. {-2pc\@plus -1ex \@minus -0.2ex}%
  293. { 0.025\p@\@plus 0.2ex}%
  294. {\normalfont\normalsize\slshape}}
  295. \def\@seccntformat#1{\csname the#1\endcsname.\quad}
  296. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  297. {3.25ex \@plus1ex \@minus.2ex}%
  298. {-1em}%
  299. {\normalfont\normalsize\itshape}}
  300. \setlength\leftmargini {2.5em}
  301. \leftmargin \leftmargini
  302. \setlength\leftmarginii {2.2em}
  303. \setlength\leftmarginiii {1.87em}
  304. \setlength\leftmarginiv {1.7em}
  305. \setlength\leftmarginv {1em}
  306. \setlength\leftmarginvi {1em}
  307. \setlength \labelsep {0.5em}
  308. \setlength \labelwidth{\leftmargini}
  309. \addtolength\labelwidth{-\labelsep}
  310. \setlength\partopsep{2\p@ \@plus 1\p@ \@minus 1\p@}
  311. \@beginparpenalty -\@lowpenalty
  312. \@endparpenalty -\@lowpenalty
  313. \@itempenalty -\@lowpenalty
  314. \def\@listi{\leftmargin\leftmargini
  315. \parsep 4\p@ \@plus2\p@ \@minus\p@
  316. \topsep 8\p@ \@plus2\p@ \@minus4\p@
  317. \itemsep4\p@ \@plus2\p@ \@minus\p@}
  318. \let\@listI\@listi
  319. \@listi
  320. \def\@listii {\leftmargin\leftmarginii
  321. \labelwidth\leftmarginii
  322. \advance\labelwidth-\labelsep
  323. \topsep 4\p@ \@plus2\p@ \@minus\p@
  324. \parsep 2\p@ \@plus\p@ \@minus\p@
  325. \itemsep \parsep}
  326. \def\@listiii{\leftmargin\leftmarginiii
  327. \labelwidth\leftmarginiii
  328. \advance\labelwidth-\labelsep
  329. \topsep 2\p@ \@plus\p@\@minus\p@
  330. \parsep \z@
  331. \partopsep \p@ \@plus\z@ \@minus\p@
  332. \itemsep \topsep}
  333. \def\@listiv {\leftmargin\leftmarginiv
  334. \labelwidth\leftmarginiv
  335. \advance\labelwidth-\labelsep}
  336. \def\@listv {\leftmargin\leftmarginv
  337. \labelwidth\leftmarginv
  338. \advance\labelwidth-\labelsep}
  339. \def\@listvi {\leftmargin\leftmarginvi
  340. \labelwidth\leftmarginvi
  341. \advance\labelwidth-\labelsep}
  342. \renewcommand\theenumi{\@alph\c@enumi}
  343. \renewcommand\theenumii{\@roman\c@enumii}
  344. \renewcommand\theenumiii{\@Alph\c@enumiii}
  345. \renewcommand\theenumiv{\@Alph\c@enumiv}
  346. \newcommand\labelenumi{(\theenumi)}
  347. \newcommand\labelenumii{(\theenumii)}
  348. \newcommand\labelenumiii{\theenumiii.}
  349. \newcommand\labelenumiv{\theenumiv.}
  350. \renewcommand\p@enumii{\theenumi}
  351. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  352. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  353. \def\enumerate{%
  354. \ifnum \@enumdepth >\thr@@\@toodeep\else
  355. \advance\@enumdepth\@ne
  356. \edef\@enumctr{enum\romannumeral\the\@enumdepth}%
  357. \expandafter
  358. \list
  359. \csname label\@enumctr\endcsname
  360. {\topsep6pt\itemsep\z@\parsep\z@
  361. \topsep 10\p@ \@plus2\p@ \@minus4\p@
  362. \usecounter\@enumctr\def\makelabel##1{\hss\llap{##1}}}%
  363. \fi}
  364. \newcommand\labelitemi{$\m@th\bullet$}
  365. \newcommand\labelitemii{\normalfont\bfseries --}
  366. \newcommand\labelitemiii{$\m@th\ast$}
  367. \newcommand\labelitemiv{$\m@th\cdot$}
  368. \newenvironment{description}
  369. {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  370. \let\makelabel\descriptionlabel}}
  371. {\endlist}
  372. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  373. \normalfont\bfseries #1}
  374. \newenvironment{abstract}{\list{}{\leftmargin=2pc\parsep\z@\itemsep 3\p@}%
  375. \item[]\relax
  376. \sffamily\footnotesize{\bfseries\abstractname}.}%
  377. {\ifx\@keywords\@empty
  378. \else
  379. \medskip
  380. \par\noindent\textsl{Keywords}: \@keywords
  381. \fi
  382. \endlist\normalsize}
  383. \let\@keywords\@empty
  384. \def\keyword#1{%
  385. \ifx\@keywords\@empty
  386. \def\@keywords{#1}
  387. \else
  388. \g@addto@macro\@keywords{; #1}
  389. \fi}
  390. \def\keywords#1{%
  391. \ifx\@keywords\@empty
  392. \def\@keywords{#1}
  393. \else
  394. \g@addto@macro\@keywords{#1}
  395. \fi}
  396. \newenvironment{verse}
  397. {\let\\\@centercr
  398. \list{}{\itemsep \z@
  399. \itemindent -1.5em%
  400. \listparindent\itemindent
  401. \rightmargin \leftmargin
  402. \advance\leftmargin 1.5em}%
  403. \item\relax}
  404. {\endlist}
  405. \newenvironment{quotation}
  406. {\list{}{\listparindent 1.5em%
  407. \itemindent \listparindent
  408. \rightmargin \leftmargin
  409. \parsep \z@ \@plus\p@}%
  410. \item\relax}
  411. {\endlist}
  412. \newenvironment{quote}
  413. {\list{}{\rightmargin\leftmargin}%
  414. \item\relax}
  415. {\endlist}
  416. \def\newdefinition#1{%
  417. \@ifnextchar[{\@odef{#1}}{\@ndef{#1}}}
  418. \def\@ndef#1#2{%
  419. \@ifnextchar[{\@xndef{#1}{#2}}{\@yndef{#1}{#2}}}
  420. \def\@xndef#1#2[#3]{%
  421. \expandafter\@ifdefinable\csname #1\endcsname
  422. {\@definecounter{#1}\@newctr{#1}[#3]%
  423. \expandafter\xdef\csname the#1\endcsname{%
  424. \expandafter\noexpand\csname the#3\endcsname \@defcountersep
  425. \@defcounter{#1}}%
  426. \global\@namedef{#1}{\@prf{#1}{#2}}%
  427. \global\@namedef{end#1}{\@enddefinition}}}
  428. \def\@yndef#1#2{%
  429. \expandafter\@ifdefinable\csname #1\endcsname
  430. {\@definecounter{#1}%
  431. \expandafter\xdef\csname the#1\endcsname{\@defcounter{#1}}%
  432. \global\@namedef{#1}{\@def{#1}{#2}}%
  433. \global\@namedef{end#1}{\@enddefinition}}}
  434. \def\@odef#1[#2]#3{%
  435. \@ifundefined{c@#2}{\@nocounterr{#2}}%
  436. {\expandafter\@ifdefinable\csname #1\endcsname
  437. {\global\@namedef{the#1}{\@nameuse{the#2}}%
  438. \global\@namedef{#1}{\@def{#2}{#3}}%
  439. \global\@namedef{end#1}{\@enddefinition}}}}
  440. \def\@def#1#2{%
  441. \refstepcounter{#1}%
  442. \@ifnextchar[{\@ydef{#1}{#2}}{\@xdef{#1}{#2}}}
  443. \def\@xdef#1#2{%
  444. \@begindefinition{#2}{\csname the#1\endcsname}\ignorespaces}
  445. \def\@ydef#1#2[#3]{%
  446. \@opargbegindefinition{#2}{\csname the#1\endcsname}{#3}\ignorespaces}
  447. \def\@defcounter#1{\noexpand\arabic{#1}}
  448. \def\@defcountersep{.}
  449. \def\@begindefinition#1#2{\trivlist
  450. \item[\hskip \labelsep{\indent\scshape #1\ #2.}]\rmfamily}
  451. \def\@opargbegindefinition#1#2#3{\trivlist
  452. \item[\hskip \labelsep{\indent\scshape #1\ #2\ (#3).}]\rmfamily}
  453. \def\@enddefinition{\endtrivlist}
  454. \def\@begintheorem#1#2{\trivlist
  455. \item[\hskip \labelsep{\indent\scshape #1\ #2.}]\itshape}
  456. \def\@opargbegintheorem#1#2#3{\trivlist
  457. \item[\hskip \labelsep{\indent\scshape #1\ #2\ (#3).}]\itshape}
  458. \def\newproof#1{%
  459. \@ifnextchar[{\@oprf{#1}}{\@nprf{#1}}}
  460. \def\@nprf#1#2{%
  461. \@ifnextchar[{\@xnprf{#1}{#2}}{\@ynprf{#1}{#2}}}
  462. \def\@xnprf#1#2[#3]{%
  463. \expandafter\@ifdefinable\csname #1\endcsname
  464. {\@definecounter{#1}\@newctr{#1}[#3]%
  465. \expandafter\xdef\csname the#1\endcsname{%
  466. \expandafter\noexpand\csname the#3\endcsname \@prfcountersep
  467. \@prfcounter{#1}}%
  468. \global\@namedef{#1}{\@prf{#1}{#2}}%
  469. \global\@namedef{end#1}{\@endproof}}}
  470. \def\@ynprf#1#2{%
  471. \expandafter\@ifdefinable\csname #1\endcsname
  472. {\@definecounter{#1}%
  473. \expandafter\xdef\csname the#1\endcsname{\@prfcounter{#1}}%
  474. \global\@namedef{#1}{\@prf{#1}{#2}}%
  475. \global\@namedef{end#1}{\@endproof}}}
  476. \def\@oprf#1[#2]#3{%
  477. \@ifundefined{c@#2}{\@nocounterr{#2}}%
  478. {\expandafter\@ifdefinable\csname #1\endcsname
  479. {\global\@namedef{the#1}{\@nameuse{the#2}}%
  480. \global\@namedef{#1}{\@prf{#2}{#3}}%
  481. \global\@namedef{end#1}{\@endproof}}}}
  482. \def\@prf#1#2{%
  483. \refstepcounter{#1}%
  484. \@ifnextchar[{\@yprf{#1}{#2}}{\@xprf{#1}{#2}}}
  485. \def\@xprf#1#2{%
  486. \@beginproof{#2}{\csname the#1\endcsname}\ignorespaces}
  487. \def\@yprf#1#2[#3]{%
  488. \@opargbeginproof{#2}{\csname the#1\endcsname}{#3}\ignorespaces}
  489. \def\@prfcounter#1{\noexpand\arabic{#1}}
  490. \def\@prfcountersep{.}
  491. \def\@beginproof#1#2{\trivlist
  492. \item[\hskip \labelsep{\indent\scshape #1.}]\rmfamily}
  493. \def\@opargbeginproof#1#2#3{\trivlist
  494. \item[\hskip \labelsep{\indent\scshape #1\ (#3).}]\rmfamily}
  495. \def\@endproof{\endtrivlist}
  496. \newcommand*{\qed}{\hbox{}\hfill$\Box$}
  497. \newproof{proof}{Proof}
  498. \newcommand\appendix{\par
  499. \setcounter{section}{0}%
  500. \setcounter{subsection}{0}%
  501. \renewcommand\thesection{\@Alph\c@section}}
  502. \setlength\arraycolsep{5\p@}
  503. \setlength\tabcolsep{6\p@}
  504. \setlength\arrayrulewidth{0.4\p@}
  505. \setlength\doublerulesep{0.4\p@}
  506. \setlength\tabbingsep{\labelsep}
  507. \skip\@mpfootins = \skip\footins
  508. \setlength\fboxsep{3\p@}
  509. \setlength\fboxrule{0.4\p@}
  510. \renewcommand\theequation{\@arabic\c@equation}
  511. \newcounter{figure}
  512. \renewcommand\thefigure{\@arabic\c@figure}
  513. \def\fps@figure{tbp}
  514. \def\ftype@figure{1}
  515. \def\ext@figure{lof}
  516. \def\fnum@figure{\figurename~\thefigure}
  517. \newenvironment{figure}
  518. {\@float{figure}}
  519. {\end@float}
  520. \newcounter{table}
  521. \renewcommand\thetable{\@arabic\c@table}
  522. \def\fps@table{tbp}
  523. \def\ext@table{lot}
  524. \def\ftype@table{2}
  525. \def\fnum@table{\tablename~\thetable}
  526. {\catcode`\#11\relax
  527. \gdef\hash{#}
  528. \catcode`\#6\relax}
  529. \def\statsocrulewidth#1#2{\@bsphack
  530. \protected@write\@auxout{}%
  531. {\string\newdimen\string\statsocwidth@#1\string\global\string\statsocwidth@#1=#2
  532. \string\gdef\string\statsoc@gobble\hash\string1{}}%
  533. \@esphack}
  534. \gdef\statsoc@gobble#1{#1}
  535. \newbox\statsoc@width
  536. \newenvironment{table}
  537. {\@float{table}\centering%
  538. \footnotesize
  539. \addtocounter{table}{1}%
  540. \statsoc@gobble{%
  541. \expandafter\newdimen\csname statsocwidth@\alph{table}\endcsname
  542. \expandafter\global\csname statsocwidth@\alph{table}\endcsname0.33333\textwidth}%
  543. \expandafter\@tempdima\csname statsocwidth@\alph{table}\endcsname
  544. \addtocounter{table}{-1}
  545. \setlength\fboxsep{\z@}
  546. \setlength\fboxrule{0.8\p@}
  547. \setbox\statsoc@width\hbox\bgroup%
  548. \begin{tabular}{@{}c@{}}}
  549. {\end{tabular}\egroup
  550. \setlength\fboxsep{3\p@}
  551. \setlength\fboxrule{0.4\p@}
  552. \statsocrulewidth{\alph{table}}{\the\wd\statsoc@width}
  553. \hskip0pt\hfill\box\statsoc@width\hfill\hskip0pt\end@float}
  554. \newlength\abovecaptionskip
  555. \newlength\belowcaptionskip
  556. \setlength\abovecaptionskip{10\p@}
  557. \setlength\belowcaptionskip{0\p@}
  558. \xdef\statsoc@figure{figure}
  559. \long\def\@makecaption#1#2{%
  560. \ifx\statsoc@figure\@captype%
  561. \vskip\abovecaptionskip
  562. \sbox\@tempboxa{\sffamily\footnotesize \textbf{#1.} #2\strut}%
  563. \ifdim \wd\@tempboxa >\hsize
  564. \sffamily\footnotesize \textbf{#1.} #2\strut\par
  565. \else
  566. \global \@minipagefalse
  567. \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  568. \fi
  569. \vskip\belowcaptionskip
  570. \else
  571. \statsoc@gobble{%
  572. \expandafter\newdimen\csname statsocwidth@\alph{table}\endcsname
  573. \expandafter\global\csname
  574. statsocwidth@\alph{table}\endcsname0.33333\textwidth}%
  575. \expandafter\@tempdima\csname statsocwidth@\alph{table}\endcsname
  576. \parbox{\@tempdima}{\sffamily\footnotesize\textbf{#1.}
  577. #2\strut}\aftergroup\\
  578. \fi}
  579. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  580. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  581. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  582. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  583. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  584. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  585. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  586. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  587. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  588. \newcommand\@pnumwidth{1.55em}
  589. \newcommand\@tocrmarg{2.55em}
  590. \newcommand\@dotsep{4.5}
  591. \setcounter{tocdepth}{3}
  592. \newenvironment{thebibliography}[1]
  593. {\section*{\refname
  594. \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
  595. \list{\@biblabel{\@arabic\c@enumiv}}%
  596. {\settowidth\labelwidth{\@biblabel{#1}}%
  597. \leftmargin\labelwidth
  598. \advance\leftmargin\labelsep
  599. \@openbib@code
  600. \usecounter{enumiv}%
  601. \let\p@enumiv\@empty
  602. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  603. \sloppy\clubpenalty4000\widowpenalty4000%
  604. \sfcode`\.\@m}
  605. {\def\@noitemerr
  606. {\@latex@warning{Empty `thebibliography' environment}}%
  607. \endlist}
  608. \newcommand\newblock{\hskip0.11em\@plus0.33em\@minus0.07em}
  609. \let\@openbib@code\@empty
  610. \IfFileExists{natbib.sty}%
  611. {\RequirePackage[authoryear]{natbib}}%
  612. {\newcommand\rename{References}}
  613. \renewcommand\footnoterule{%
  614. \kern-3\p@
  615. \hrule\@width.4\columnwidth
  616. \kern2.6\p@}
  617. \def\@fnsymbol#1{\ensuremath{\ifcase#1\or \dagger\or \ddagger\or
  618. \mathsection\or \mathparagraph\or \|\or **\or \dagger\dagger
  619. \or \ddagger\ddagger\or \mathsection\mathsection
  620. \or \mathparagraph\mathparagraph \else\@ctrerr\fi}}
  621. \def\fnsymbol#1{\expandafter\@fnsymbol\csname #1\endcsname}
  622. \def\thefootnote{\@fnsymbol\c@footnote}
  623. \newlength\fnsymbolwidth
  624. \setlength{\fnsymbolwidth}{1.3em}
  625. \newcommand\@makefntext[1]{%
  626. \parindent 1em%
  627. \noindent
  628. \hb@xt@\fnsymbolwidth{\hss\@makefnmark}#1}
  629. \renewcommand\@makefnmark{\hbox{{\normalfont\@thefnmark}}}
  630. \renewcommand\refname{References}
  631. \newcommand\figurename{Fig.}
  632. \newcommand\tablename{Table}
  633. \newcommand\appendixname{Appendix}
  634. \newcommand\abstractname{Summary}
  635. \newcommand\today{}
  636. \edef\today{\ifcase\month\or
  637. January\or February\or March\or April\or May\or June\or
  638. July\or August\or September\or October\or November\or December\fi
  639. \space\number\day, \number\year}
  640. \pagestyle{statsoc}
  641. \pagenumbering{arabic}
  642. %%%%
  643. \def\keywords#1{\noindent\begin{quote}\sffamily\small\textsl{Keywords}: #1\end{quote}}
  644. %%
  645. \renewcommand\normalsize{%
  646. \@setfontsize\normalsize{11}{13}
  647. \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
  648. \abovedisplayshortskip \z@ \@plus3\p@
  649. \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  650. \belowdisplayskip \abovedisplayskip
  651. \let\@listi\@listI}
  652. \renewcommand\small{%
  653. \@setfontsize\small{10}{12}%
  654. \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
  655. \abovedisplayshortskip \z@ \@plus2\p@
  656. \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
  657. \def\@listi{\leftmargin\leftmargini
  658. \topsep 4\p@ \@plus2\p@ \@minus2\p@
  659. \parsep 2\p@ \@plus\p@ \@minus\p@
  660. \itemsep \parsep}%
  661. \belowdisplayskip \abovedisplayskip
  662. }
  663. \renewcommand\footnotesize{%
  664. \@setfontsize\footnotesize{9}{11}%
  665. \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
  666. \abovedisplayshortskip \z@ \@plus\p@
  667. \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
  668. \def\@listi{\leftmargin\leftmargini
  669. \topsep 3\p@ \@plus\p@ \@minus\p@
  670. \parsep 2\p@ \@plus\p@ \@minus\p@
  671. \itemsep \parsep}%
  672. \belowdisplayskip \abovedisplayskip
  673. }
  674. %%%%