]> AND Private Git Repository - rce2015.git/blob - cpeauth.cls
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Modification de la partie SimGrid
[rce2015.git] / cpeauth.cls
1 %---------------------------------------------------------------------------\r
2 %Please  be  aware that the use of this LaTeX class file is governed by the\r
3 %following conditions:\r
4 %\r
5 % based on the original LaTeX ARTICLE DOCUMENT STYLE\r
6 % Copyright (C) 1988, 1989 by Leslie Lamport\r
7 %\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
10 %\r
11 %Rules of Use\r
12 %\r
13 %% You are NOT ALLOWED to change this file.\r
14 %\r
15 %\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
21 %\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
30 %\r
31 % Created by Alistair Smith, Sunrise Setting Ltd, 27 March 2010\r
32 %\r
33 % cpeauth.cls --- For Concurrency Computat.: Pract. Exper.\r
34 \r
35 \def\update{2010/05/13 v3.00}\r
36 \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
43 \r
44 \NeedsTeXFormat{LaTeX2e}\r
45 \ProvidesClass{cpeauth}[\update\ \journalclass]\r
46 \r
47 %\newcommand\hmmax{0}\r
48 \r
49 \newif\if@timesfont\r
50 \DeclareOption{times}{%\r
51 \@timesfonttrue}\r
52 \r
53 \newif\if@doublespace\r
54 \DeclareOption{doublespace}{%\r
55 \@doublespacetrue}\r
56 \r
57 \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}\r
58 \ProcessOptions\r
59 \LoadClass{article}\r
60 \if@timesfont\r
61 \RequirePackage{times}\r
62 \fi\r
63 \if@doublespace\r
64 \RequirePackage[onehalfspacing]{setspace}\r
65 \fi\r
66 \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
72 \r
73 \@twosidetrue\r
74 \flushbottom\r
75 \frenchspacing\r
76 \r
77 \textwidth 34pc\r
78 \textheight 645pt\r
79 %\setlength\columnsep{24pt}\r
80 \r
81 %Trim sizes\r
82 \setlength\voffset{-1in}\r
83 \setlength\hoffset{-1in}\r
84 \topmargin -1mm\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
91 \r
92 \parskip \z@\r
93 \parindent 1em\r
94 \headheight 50pt\r
95 \headsep    20pt \r
96 \footskip 24pt \r
97 \r
98 \hyphenpenalty=1000\r
99 \pretolerance=8000\r
100 \tolerance=9500\r
101 \hbadness=8000\r
102 \vbadness=9000\r
103 \displaywidowpenalty=0\r
104 \clubpenalty=10000\r
105 \widowpenalty=10000\r
106 \lefthyphenmin=3%\r
107 \righthyphenmin=3%\r
108 \brokenpenalty=10000%\r
109 \r
110 \thinmuskip = 3mu\r
111 \medmuskip = 4mu\r
112 \thickmuskip = 5mu\r
113 \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
124 \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
135 \r
136 \newcommand{\titlesize}{\fontsize{15.3}{16pt}\selectfont}\r
137 \newcommand{\tabsize}{\fontsize{9}{9.5pt}\selectfont}\r
138 \r
139 \newbox\absbox\r
140 \def\abstract{\lrbox\absbox\minipage{\textwidth}%\r
141   \small\normalfont%\r
142   \centerline{{SUMMARY}}\par\vspace{8pt}%\r
143   }\r
144 \def\endabstract{\copyrightline\endminipage\endlrbox}\r
145 \r
146 \def\keywords#1{%\r
147   \gdef\@keywords{\small{KEY WORDS:}\hspace{0.75em}\parbox[t]{28pc}{#1}}}\r
148 \let\@keywords\@empty\r
149 \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
154 \r
155 \renewcommand{\thefootnote}{\fnsymbol{footnote}}\r
156 \long\def\@makefntext#1{\parindent 1em%\r
157 \noindent{$\m@th^{\@thefnmark}$}#1}\r
158 \r
159 \def\corraddr#1{%\r
160   \gdef\@corraddr{%\r
161     \footnotetext[1]{Correspondence to: #1\stepcounter{footnote}}}}\r
162 \let\@corraddr\@empty\r
163 \def\corrauth{\footnotemark[1]}\r
164 \r
165 \def\address#1{%\r
166   \gdef\@address{{\footnotesize\itshape #1}}}\r
167 \let\@address\@empty\r
168 \r
169 \def\cgsn#1#2{%\r
170 \gdef\@cgsn{%\r
171 \footnotetext[0]{\\\r
172 Contract/grant sponsor: #1; contract/grant\r
173 number: #2}}}\r
174 \r
175 \def\cgs#1{%\r
176 \gdef\@cgs{%\r
177 \footnotetext[0]{\\\r
178 Contract/grant sponsor: #1}}}\r
179 \r
180 \let\@cgsn\@empty\r
181 \let\@cgs\@empty\r
182 \r
183 \def\affilnum#1{${}^{#1}$}\r
184 \def\affil#1{${}^{#1}$}\r
185 \def\comma{${}^{\text{,}}$}\r
186 \r
187 \renewcommand\maketitle{\par\r
188   \begingroup\r
189      \if@twocolumn\r
190       \ifnum \col@number=\@ne\r
191         \@maketitle\r
192       \else\r
193         \twocolumn[\@maketitle]%\r
194        \fi\r
195     \else\r
196       \newpage\r
197       \global\@topnum\z@   % Prevents figures from going at top of page.\r
198       \@maketitle\r
199     \fi\r
200     \thispagestyle{title}\label{FirstPage}\@corraddr\@cgs\@cgsn\r
201   \endgroup\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
217 }\r
218 \def\@maketitle{\vspace*{6pt}%\r
219 \null%\r
220 \begin{center}\r
221     {\titlesize\@title \par}%\r
222     \vskip 1.5em %\r
223     \vskip 5pt\r
224     {\large\r
225       \lineskip .5em%\r
226       \@author\r
227       \par}%\r
228       \vskip 11pt\r
229 {\footnotesize\r
230       \lineskip .5em%\r
231       %\r
232         {\raggedright\emph\@address}\r
233       \par}%\r
234 \end{center}    \r
235     \vskip 31pt%\r
236     {\noindent\usebox\absbox\par}\r
237     {\lineskip 1.5em%\r
238       %\r
239       {\noindent\footnotesize Received \dots}\par}\r
240     {\vspace{11pt}%\r
241       %\r
242       {\noindent\@keywords}\par}\r
243       \vspace{12pt}\r
244         \par%\r
245   }\r
246  \r
247 \def\startpage{\pageref{FirstPage}}\r
248 \def\endpage{\pageref{LastPage}}\r
249 \def\volumeyear{0000}\r
250 \def\volumenumber{00}\r
251 \r
252 \gdef\copyrightline{Copyright \copyright\ \volumeyear\ John Wiley \& Sons, Ltd.}\r
253 \def\runningheads#1#2{\markboth{\uppercase{#1}}{\uppercase{#2}}}\r
254 \r
255 \def\ps@title{%\r
256 \def\@oddhead{%\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
262 \end{tabular}}}%\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
267 }}}\r
268 \let\@evenfoot\@oddfoot}\r
269 \r
270 \def\ps@wpage{\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
278 }\r
279 \r
280 \renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname.}\hspace{0.5em}}\r
281 \r
282 \newdimen\@bls                              \r
283 \@bls=\baselineskip\r
284 \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
295                                      {-5pt}%\r
296                                      {\normalfont\normalsize\itshape}}\r
297 \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
304 \r
305 \let\endenumerate =\endlist\r
306 \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
311 \r
312 \let\enditemize =\endlist\r
313 \r
314 \renewcommand{\thetable}{\Roman{table}}\r
315 \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
320 \r
321 \def\thmhead@plain#1#2#3{%\r
322   \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }{#2}}%\r
323   \thmnote{ {\the\thm@notefont(#3)}}}\r
324 \r
325 \newtheoremstyle{wiley}\r
326 {6pt plus 2pt minus 2pt}% space above\r
327 {6pt plus 2pt minus 2pt}% space below\r
328 {}% Body font\r
329 {}% Indent amount\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
334 \r
335 \renewenvironment{proof}[1][\proofname]{\par\r
336   \pushQED{\qed}%\r
337   \normalfont \topsep6\p@\@plus6\p@\relax\r
338   \trivlist\r
339   \item[\hskip\labelsep\r
340         \itshape\r
341     #1\@addpunct{}]\mbox{}\newline\ignorespaces\r
342 }{%\r
343   \popQED\endtrivlist\@endpefalse\r
344 }\r
345 \r
346 \theoremstyle{wiley}\r
347 \r
348 \def\ack{\vspace{2\@bls plus .3\@bls minus .1\@bls}\r
349 \noindent{\footnotesize\centerline{ACKNOWLEDGEMENT}}\\[6pt]\small\noindent}%\r
350 \r
351 \def\acks{\vspace{2\@bls plus .3\@bls minus .1\@bls}\r
352 \noindent{\footnotesize\centerline{ACKNOWLEDGEMENTS}}\\[6pt]\small\noindent}%\r
353 \r
354 \renewcommand\refname{REFERENCES}\r
355 \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
367 \def\newblock{\ }\r
368 \sloppy\clubpenalty4000\widowpenalty4000\r
369 \sfcode`\.=1000\relax}{\endlist}\r
370 \r
371 %\def\biog{\section*{Author's Biography}\small}\r
372 %\def\biogs{\section*{Authors' Biographies}\small}\r
373 \r
374 \AtEndDocument{%\r
375 \label{LastPage}}\r
376 \r
377 \hyphenation{com-mu-ni-ca-tions}\r
378 \r
379 \pagestyle{wpage}\r
380 \normalsize\r
381 \sloppy\r