1 %---------------------------------------------------------------------------
\r
2 %Please be aware that the use of this LaTeX class file is governed by the
\r
3 %following conditions:
\r
5 % based on the original LaTeX ARTICLE DOCUMENT STYLE
\r
6 % Copyright (C) 1988, 1989 by Leslie Lamport
\r
8 % Copyright (c) 2010 John Wiley & Sons, Ltd, The Atrium, Southern Gate, Chichester,
\r
9 % West Sussex, PO19 8SQ UK. All rights reserved.
\r
13 %% You are NOT ALLOWED to change this file.
\r
16 %This class file is made available for use by authors who wish to prepare an
\r
17 %article for publication in
\r
18 %CONCURRENCY AND COMPUTATION: PRACTICE AND EXPERIENCE
\r
19 %published by John Wiley & Sons Ltd. The user may not exploit any part of
\r
20 %the class file commercially.
\r
22 %This class file is provided on an `as is' basis, without warranties of any
\r
23 %kind, either expressed or implied, including but not limited to warranties of
\r
24 %title, or implied warranties of merchantablility or fitness for a
\r
25 %particular purpose. There will be no duty on the author[s] of the software
\r
26 %or John Wiley & Sons Ltd to correct any errors or defects in the software.
\r
27 %Any statutory rights you may have remain unaffected by your acceptance of
\r
28 %these rules of use.
\r
29 %---------------------------------------------------------------------------
\r
31 % Created by Alistair Smith, Sunrise Setting Ltd, 27 March 2010
\r
33 % cpeauth.cls --- For Concurrency Computat.: Pract. Exper.
\r
35 \def\update{2010/05/13 v3.00}
\r
37 \newcommand{\journalname}{CONCURRENCY AND COMPUTATION: PRACTICE AND EXPERIENCE}
\r
38 \newcommand{\journalnamelc}{Concurrency and Computation: Practice and Experience}
\r
39 \newcommand{\journalabb}{Concurrency Computat.: Pract. Exper.}
\r
40 \newcommand{\journalclass}{cpeauth.cls}
\r
41 \newcommand{\journalclassshort}{cpeauth}
\r
42 \newcommand{\DOI}{cpe}
\r
44 \NeedsTeXFormat{LaTeX2e}
\r
45 \ProvidesClass{cpeauth}[\update\ \journalclass]
\r
47 %\newcommand\hmmax{0}
\r
50 \DeclareOption{times}{%
\r
53 \newif\if@doublespace
\r
54 \DeclareOption{doublespace}{%
\r
57 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
\r
61 \RequirePackage{times}
\r
64 \RequirePackage[onehalfspacing]{setspace}
\r
67 \RequirePackage{graphicx}
\r
68 \RequirePackage{pifont,latexsym,ifthen,rotating,calc,textcase,booktabs,color}
\r
69 \RequirePackage{amsfonts,amssymb,amsbsy,amsmath,amsthm}
\r
70 %\RequirePackage{bm}
\r
71 \RequirePackage[errorshow]{tracefnt}
\r
79 %\setlength\columnsep{24pt}
\r
82 \setlength\voffset{-1in}
\r
83 \setlength\hoffset{-1in}
\r
85 \setlength\oddsidemargin{33mm}%back margin on odd pages
\r
86 \setlength\evensidemargin{33mm}%fore margin on even pages
\r
87 \setlength\paperwidth{210mm}
\r
88 \setlength\paperheight{276mm}
\r
89 %Needed to set PDF page size
\r
90 \special{papersize=210mm,276mm}
\r
103 \displaywidowpenalty=0
\r
105 \widowpenalty=10000
\r
108 \brokenpenalty=10000%
\r
114 \setcounter{topnumber}{10}
\r
115 \def\topfraction{1}
\r
116 \setcounter{bottomnumber}{10}
\r
117 \def\bottomfraction{0.8}
\r
118 \setcounter{totalnumber}{10}
\r
119 \def\textfraction{0}
\r
120 \renewcommand{\floatpagefraction}{0.95}
\r
121 \setcounter{dbltopnumber}{10}
\r
122 \renewcommand{\dblfloatpagefraction}{0.95}
\r
123 \renewcommand{\dbltopfraction}{1}
\r
125 \renewcommand{\normalsize}{\fontsize{10.3}{12pt}\selectfont}
\r
126 \renewcommand{\small}{\fontsize{9.5}{10pt}\selectfont}
\r
127 \renewcommand{\footnotesize}{\fontsize{8.5}{9pt}\selectfont}
\r
128 \renewcommand{\scriptsize}{\fontsize{8.5}{9.5pt}\selectfont}
\r
129 \renewcommand{\tiny}{\fontsize{6.5}{7pt}\selectfont}
\r
130 \renewcommand{\large}{\fontsize{11.5}{12pt}\selectfont}
\r
131 \renewcommand{\Large}{\fontsize{14}{18pt}\selectfont}
\r
132 \renewcommand{\LARGE}{\fontsize{17}{22pt}\selectfont}
\r
133 \renewcommand{\huge}{\fontsize{20}{25pt}\selectfont}
\r
134 \renewcommand{\Huge}{\fontsize{25}{30pt}\selectfont}
\r
136 \newcommand{\titlesize}{\fontsize{15.3}{16pt}\selectfont}
\r
137 \newcommand{\tabsize}{\fontsize{9}{9.5pt}\selectfont}
\r
140 \def\abstract{\lrbox\absbox\minipage{\textwidth}%
\r
142 \centerline{{SUMMARY}}\par\vspace{8pt}%
\r
144 \def\endabstract{\copyrightline\endminipage\endlrbox}
\r
147 \gdef\@keywords{\small{KEY WORDS:}\hspace{0.75em}\parbox[t]{28pc}{#1}}}
\r
148 \let\@keywords\@empty
\r
150 \skip\footins 22pt plus 8pt
\r
151 %\gdef\footnoterule{}
\r
152 \def\footnoterule{\kern-3\p@
\r
153 \hrule \@width 60pt \kern 2.6\p@}
\r
155 \renewcommand{\thefootnote}{\fnsymbol{footnote}}
\r
156 \long\def\@makefntext#1{\parindent 1em%
\r
157 \noindent{$\m@th^{\@thefnmark}$}#1}
\r
161 \footnotetext[1]{Correspondence to: #1\stepcounter{footnote}}}}
\r
162 \let\@corraddr\@empty
\r
163 \def\corrauth{\footnotemark[1]}
\r
166 \gdef\@address{{\footnotesize\itshape #1}}}
\r
167 \let\@address\@empty
\r
171 \footnotetext[0]{\\
\r
172 Contract/grant sponsor: #1; contract/grant
\r
177 \footnotetext[0]{\\
\r
178 Contract/grant sponsor: #1}}}
\r
183 \def\affilnum#1{${}^{#1}$}
\r
184 \def\affil#1{${}^{#1}$}
\r
185 \def\comma{${}^{\text{,}}$}
\r
187 \renewcommand\maketitle{\par
\r
190 \ifnum \col@number=\@ne
\r
193 \twocolumn[\@maketitle]%
\r
197 \global\@topnum\z@ % Prevents figures from going at top of page.
\r
200 \thispagestyle{title}\label{FirstPage}\@corraddr\@cgs\@cgsn
\r
202 %\setcounter{footnote}{0}%
\r
203 \global\let\address\relax
\r
204 \global\let\thanks\relax
\r
205 \global\let\maketitle\relax
\r
206 \global\let\@maketitle\relax
\r
207 \global\let\@thanks\@empty
\r
208 \global\let\@author\@empty
\r
209 \global\let\@date\@empty
\r
210 \global\let\@title\@empty
\r
211 \global\let\@address\@empty
\r
212 \global\let\corraddr\relax
\r
213 \global\let\title\relax
\r
214 \global\let\author\relax
\r
215 \global\let\date\relax
\r
216 \global\let\and\relax
\r
218 \def\@maketitle{\vspace*{6pt}%
\r
221 {\titlesize\@title \par}%
\r
232 {\raggedright\emph\@address}
\r
236 {\noindent\usebox\absbox\par}
\r
239 {\noindent\footnotesize Received \dots}\par}
\r
242 {\noindent\@keywords}\par}
\r
247 \def\startpage{\pageref{FirstPage}}
\r
248 \def\endpage{\pageref{LastPage}}
\r
249 \def\volumeyear{0000}
\r
250 \def\volumenumber{00}
\r
252 \gdef\copyrightline{Copyright \copyright\ \volumeyear\ John Wiley \& Sons, Ltd.}
\r
253 \def\runningheads#1#2{\markboth{\uppercase{#1}}{\uppercase{#2}}}
\r
257 \parbox[t]{\textwidth}{%
\r
258 \begin{tabular}[t]{@{}l@{}}%
\r
259 {\footnotesize\journalname}\\[-3pt]
\r
260 {\footnotesize\emph{\journalabb} \volumeyear; \textbf{\volumenumber}:\startpage--\endpage}\\[-3pt]
\r
261 {\footnotesize Published online in Wiley InterScience (www.interscience.wiley.com). DOI: 10.1002/\DOI}
\r
263 \let\@evenhead\@oddhead
\r
264 \def\@oddfoot{\parbox[t]{\textwidth}{%
\r
265 {\footnotesize\copyrightline\hfill\\
\r
266 \textit{Prepared using \textsf{\journalclass} [Version: \update]\hfill}%
\r
268 \let\@evenfoot\@oddfoot}
\r
271 \let\@mkboth\@gobbletwo
\r
272 \def\@evenhead{\normalsize \thepage\hfill\footnotesize{\leftmark}\hfill\normalsize\phantom{\thepage}}
\r
273 \def\@oddhead{\normalsize \phantom{\thepage}\hfill\footnotesize{\rightmark}\hfill\normalsize\thepage}
\r
274 \def\@evenfoot{\parbox[t]{\textwidth}{{\footnotesize \copyrightline}%
\r
275 \hfill\footnotesize{\it \journalabb\ }(\volumeyear)\\ %
\r
276 \footnotesize\textit{Prepared using \textsf{\journalclass}}\hfill DOI: 10.1002/\DOI}}
\r
277 \def\@oddfoot{\@evenfoot}
\r
280 \renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname.}\hspace{0.5em}}
\r
283 \@bls=\baselineskip
\r
285 \renewcommand\section{\@startsection {section}{1}{\z@}%
\r
286 {2\@bls plus .3\@bls minus .1\@bls}%
\r
287 {1\@bls\@afterindentfalse}%
\r
288 {\centering\normalfont\normalsize\protect\MakeTextUppercase}}
\r
289 \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
\r
290 {\@bls plus .3\@bls minus .1\@bls}%
\r
291 {6pt\@afterindentfalse}%
\r
292 {\normalfont\normalsize\raggedright\itshape}}
\r
293 \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
\r
294 {\@bls plus .2\@bls}%
\r
296 {\normalfont\normalsize\itshape}}
\r
298 \def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
\r
299 \advance\@enumdepth \@ne
\r
300 \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
\r
301 {\csname label\@enumctr\endcsname}{\usecounter
\r
302 {\@enumctr}\itemsep 0pt\parsep 0pt
\r
303 \def\makelabel##1{\hss\llap{##1}}}\fi}
\r
305 \let\endenumerate =\endlist
\r
307 \def\itemize{\ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne
\r
308 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
\r
309 \list{\csname\@itemitem\endcsname}{\itemsep 0pt\parsep 0pt
\r
310 \def\makelabel##1{\hss\llap{##1}}}\fi}
\r
312 \let\enditemize =\endlist
\r
314 \renewcommand{\thetable}{\Roman{table}}
\r
316 \usepackage{caption}
\r
317 \DeclareCaptionLabelSeparator{jwperiod}{.\hspace*{0.5ex}}
\r
318 \captionsetup[figure]{font=small,labelfont=rm,labelsep=jwperiod,justification=centerlast,singlelinecheck=true}
\r
319 \captionsetup[table]{position=top,font=small,labelfont=rm,labelsep=jwperiod,justification=centerlast,singlelinecheck=true}
\r
321 \def\thmhead@plain#1#2#3{%
\r
322 \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }{#2}}%
\r
323 \thmnote{ {\the\thm@notefont(#3)}}}
\r
325 \newtheoremstyle{wiley}
\r
326 {6pt plus 2pt minus 2pt}% space above
\r
327 {6pt plus 2pt minus 2pt}% space below
\r
330 {\itshape}% Theorem head font
\r
331 {}% Punctuation after theorem head
\r
332 {\newline}% Space after theorem head
\r
333 {}% Theorem head spec
\r
335 \renewenvironment{proof}[1][\proofname]{\par
\r
337 \normalfont \topsep6\p@\@plus6\p@\relax
\r
339 \item[\hskip\labelsep
\r
341 #1\@addpunct{}]\mbox{}\newline\ignorespaces
\r
343 \popQED\endtrivlist\@endpefalse
\r
346 \theoremstyle{wiley}
\r
348 \def\ack{\vspace{2\@bls plus .3\@bls minus .1\@bls}
\r
349 \noindent{\footnotesize\centerline{ACKNOWLEDGEMENT}}\\[6pt]\small\noindent}%
\r
351 \def\acks{\vspace{2\@bls plus .3\@bls minus .1\@bls}
\r
352 \noindent{\footnotesize\centerline{ACKNOWLEDGEMENTS}}\\[6pt]\small\noindent}%
\r
354 \renewcommand\refname{REFERENCES}
\r
356 \renewenvironment{thebibliography}[1]{%
\r
357 \vspace{2\@bls plus .3\@bls minus .1\@bls}
\r
358 \noindent{\footnotesize\centerline{\refname}}\\[-3pt]
\r
359 \list{{\arabic{enumi}}}{\def\makelabel##1{\hss{##1.}}\topsep=0\p@\parsep=0\p@
\r
360 \partopsep=0\p@\itemsep=0\p@
\r
361 \labelsep=1ex\itemindent=0\p@
\r
362 \settowidth\labelwidth{\footnotesize[#1]}%
\r
363 \leftmargin\labelwidth
\r
364 \advance\leftmargin\labelsep
\r
365 \advance\leftmargin -\itemindent
\r
366 \usecounter{enumi}}\footnotesize
\r
368 \sloppy\clubpenalty4000\widowpenalty4000
\r
369 \sfcode`\.=1000\relax}{\endlist}
\r
371 %\def\biog{\section*{Author's Biography}\small}
\r
372 %\def\biogs{\section*{Authors' Biographies}\small}
\r
377 \hyphenation{com-mu-ni-ca-tions}
\r