Statistiques
| Branche: | Révision :

xlcloud / papers / 2014 / reservation / speauth.cls @ c3cc6a4e

Historique | Voir | Annoter | Télécharger (11,46 ko)

1
%---------------------------------------------------------------------------
2
%Please  be  aware that the use of this LaTeX class file is governed by the
3
%following conditions:
4
%
5
% based on the original LaTeX ARTICLE DOCUMENT STYLE
6
% Copyright (C) 1988, 1989 by Leslie Lamport
7
%
8
% Copyright (c) 2010 John Wiley & Sons, Ltd, The Atrium, Southern Gate, Chichester,
9
% West Sussex, PO19 8SQ UK.   All rights reserved.
10
%
11
%Rules of Use
12
%
13
%% You are NOT ALLOWED to change this file.
14
%
15
%
16
%This class file is made available for use by authors who wish to prepare an
17
%article for publication in
18
%SOFTWARE---PRACTICE AND EXPERIENCE
19
%published by John Wiley & Sons Ltd. The user may not exploit any part of
20
%the class file commercially.
21
%
22
%This class file is provided on an `as is'  basis, without warranties of any
23
%kind, either expressed or implied, including but not limited to warranties of
24
%title, or  implied warranties of merchantablility or fitness for  a
25
%particular purpose. There will be no duty on the author[s] of the software
26
%or John Wiley & Sons Ltd to correct any errors or defects in the software.
27
%Any statutory rights you may have remain unaffected by your acceptance of
28
%these rules of use.
29
%---------------------------------------------------------------------------
30
%
31
% Created by Alistair Smith, Sunrise Setting Ltd, 13 May 2010
32
%
33
% speauth.cls --- For Softw. Pract. Exper.
34

    
35
\def\update{2010/05/13 v3.00}
36

    
37
\newcommand{\journalname}{SOFTWARE---PRACTICE AND EXPERIENCE}
38
\newcommand{\journalnamelc}{Software---Practice and Experience}
39
\newcommand{\journalabb}{Softw. Pract. Exper.}
40
\newcommand{\journalclass}{speauth.cls}
41
\newcommand{\journalclassshort}{speauth}
42
\newcommand{\DOI}{spe}
43

    
44
\NeedsTeXFormat{LaTeX2e}
45
\ProvidesClass{speauth}[\update\ \journalclass]
46

    
47
%\newcommand\hmmax{0}
48

    
49
\newif\if@timesfont
50
\DeclareOption{times}{%
51
\@timesfonttrue}
52

    
53
%\newif\if@doublespace
54
%\DeclareOption{doublespace}{%
55
%\@doublespacetrue}
56

    
57
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
58
\ProcessOptions
59
\LoadClass{article}
60
\if@timesfont
61
\RequirePackage{times}
62
\fi
63
%\if@doublespace
64
%\RequirePackage[onehalfspacing]{setspace}
65
%\fi
66

    
67
\RequirePackage{graphicx}
68
\RequirePackage{pifont,latexsym,ifthen,rotating,calc,textcase,booktabs,color}
69
\RequirePackage{amsfonts,amssymb,amsbsy,amsmath,amsthm}
70
%\RequirePackage{bm}
71
\RequirePackage[errorshow]{tracefnt}
72

    
73
\@twosidetrue
74
\flushbottom
75
\frenchspacing
76

    
77
\textwidth 34pc
78
\textheight 645pt
79
%\setlength\columnsep{24pt}
80

    
81
%Trim sizes
82
\setlength\voffset{-1in}
83
\setlength\hoffset{-1in}
84
\topmargin -1mm
85
\setlength\oddsidemargin{33mm}%back margin on odd pages
86
\setlength\evensidemargin{33mm}%fore margin on even pages
87
\setlength\paperwidth{210mm}
88
\setlength\paperheight{276mm}
89
%Needed to set PDF page size
90
\special{papersize=210mm,276mm}
91

    
92
\parskip \z@
93
\parindent 1em
94
\headheight 50pt
95
\headsep    20pt 
96
\footskip 24pt 
97

    
98
\hyphenpenalty=1000
99
\pretolerance=8000
100
\tolerance=9500
101
\hbadness=8000
102
\vbadness=9000
103
\displaywidowpenalty=0
104
\clubpenalty=10000
105
\widowpenalty=10000
106
\lefthyphenmin=3%
107
\righthyphenmin=3%
108
\brokenpenalty=10000%
109

    
110
\thinmuskip = 3mu
111
\medmuskip = 4mu
112
\thickmuskip = 5mu
113

    
114
\setcounter{topnumber}{10}
115
\def\topfraction{1}
116
\setcounter{bottomnumber}{10}
117
\def\bottomfraction{0.8}
118
\setcounter{totalnumber}{10}
119
\def\textfraction{0}
120
\renewcommand{\floatpagefraction}{0.95}
121
\setcounter{dbltopnumber}{10}
122
\renewcommand{\dblfloatpagefraction}{0.95}
123
\renewcommand{\dbltopfraction}{1}
124

    
125
\renewcommand{\normalsize}{\fontsize{10.3}{12pt}\selectfont}
126
\renewcommand{\small}{\fontsize{9.5}{10pt}\selectfont}
127
\renewcommand{\footnotesize}{\fontsize{8.5}{9pt}\selectfont}
128
\renewcommand{\scriptsize}{\fontsize{8.5}{9.5pt}\selectfont}
129
\renewcommand{\tiny}{\fontsize{6.5}{7pt}\selectfont}
130
\renewcommand{\large}{\fontsize{11.5}{12pt}\selectfont}
131
\renewcommand{\Large}{\fontsize{14}{18pt}\selectfont}
132
\renewcommand{\LARGE}{\fontsize{17}{22pt}\selectfont}
133
\renewcommand{\huge}{\fontsize{20}{25pt}\selectfont}
134
\renewcommand{\Huge}{\fontsize{25}{30pt}\selectfont}
135

    
136
\newcommand{\titlesize}{\fontsize{15.3}{16pt}\selectfont}
137
\newcommand{\tabsize}{\fontsize{9}{9.5pt}\selectfont}
138

    
139
\newbox\absbox
140
\def\abstract{\lrbox\absbox\minipage{\textwidth}%
141
  \small\normalfont%
142
  \centerline{{SUMMARY}}\par\vspace{8pt}%
143
  }
144
\def\endabstract{\copyrightline\endminipage\endlrbox}
145

    
146
\def\keywords#1{%
147
  \gdef\@keywords{\small{KEY WORDS:}\hspace{0.75em}\parbox[t]{28pc}{#1}}}
148
\let\@keywords\@empty
149

    
150
\skip\footins 22pt plus  8pt
151
%\gdef\footnoterule{}
152
\def\footnoterule{\kern-3\p@
153
  \hrule \@width 60pt \kern 2.6\p@}
154

    
155
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
156
\long\def\@makefntext#1{\parindent 1em%
157
\noindent{$\m@th^{\@thefnmark}$}#1}
158

    
159
\def\corraddr#1{%
160
  \gdef\@corraddr{%
161
    \footnotetext[1]{Correspondence to: #1\stepcounter{footnote}}}}
162
\let\@corraddr\@empty
163
\def\corrauth{\footnotemark[1]}
164

    
165
\def\address#1{%
166
  \gdef\@address{{\footnotesize\itshape #1}}}
167
\let\@address\@empty
168

    
169
\def\cgsn#1#2{%
170
\gdef\@cgsn{%
171
\footnotetext[0]{\\
172
Contract/grant sponsor: #1; contract/grant
173
number: #2}}}
174

    
175
\def\cgs#1{%
176
\gdef\@cgs{%
177
\footnotetext[0]{\\
178
Contract/grant sponsor: #1}}}
179

    
180
\let\@cgsn\@empty
181
\let\@cgs\@empty
182

    
183
\def\affilnum#1{${}^{#1}$}
184
\def\affil#1{${}^{#1}$}
185
\def\comma{${}^{\text{,}}$}
186

    
187
\renewcommand\maketitle{\par
188
  \begingroup
189
     \if@twocolumn
190
      \ifnum \col@number=\@ne
191
        \@maketitle
192
      \else
193
        \twocolumn[\@maketitle]%
194
       \fi
195
    \else
196
      \newpage
197
      \global\@topnum\z@   % Prevents figures from going at top of page.
198
      \@maketitle
199
    \fi
200
    \thispagestyle{title}\label{FirstPage}\@corraddr\@cgs\@cgsn
201
  \endgroup
202
  %\setcounter{footnote}{0}%
203
  \global\let\address\relax
204
  \global\let\thanks\relax
205
  \global\let\maketitle\relax
206
  \global\let\@maketitle\relax
207
  \global\let\@thanks\@empty
208
  \global\let\@author\@empty
209
  \global\let\@date\@empty
210
  \global\let\@title\@empty
211
  \global\let\@address\@empty
212
  \global\let\corraddr\relax
213
  \global\let\title\relax
214
  \global\let\author\relax
215
  \global\let\date\relax
216
  \global\let\and\relax
217
}
218
\def\@maketitle{\vspace*{6pt}%
219
\null%
220
\begin{center}
221
    {\titlesize\@title \par}%
222
    \vskip 1.5em %
223
    \vskip 5pt
224
    {\large
225
      \lineskip .5em%
226
      \@author
227
      \par}%
228
      \vskip 11pt
229
{\footnotesize
230
      \lineskip .5em%
231
      %
232
        {\raggedright\emph\@address}
233
      \par}%
234
\end{center}    
235
    \vskip 31pt%
236
    {\noindent\usebox\absbox\par}
237
    {\lineskip 1.5em%
238
      %
239
      {\noindent\footnotesize Received \dots}\par}
240
    {\vspace{11pt}%
241
      %
242
      {\noindent\@keywords}\par}
243
      \vspace{12pt}
244
        \par%
245
  }
246
 
247
\def\startpage{\pageref{FirstPage}}
248
\def\endpage{\pageref{LastPage}}
249
\def\volumeyear{0000}
250
\def\volumenumber{00}
251

    
252
\gdef\copyrightline{Copyright \copyright\ \volumeyear\ John Wiley \& Sons, Ltd.}
253
\def\runningheads#1#2{\markboth{\uppercase{#1}}{\uppercase{#2}}}
254

    
255
\def\ps@title{%
256
\def\@oddhead{%
257
\parbox[t]{\textwidth}{%
258
\begin{tabular}[t]{@{}l@{}}%
259
{\footnotesize\journalname}\\[-3pt]
260
{\footnotesize\emph{\journalabb} \volumeyear; \textbf{\volumenumber}:\startpage--\endpage}\\[-3pt]
261
{\footnotesize Published online in Wiley InterScience (www.interscience.wiley.com). DOI: 10.1002/\DOI}
262
\end{tabular}}}%
263
\let\@evenhead\@oddhead
264
\def\@oddfoot{\parbox[t]{\textwidth}{%
265
{\footnotesize\copyrightline\hfill\\
266
\textit{Prepared using \textsf{\journalclass} [Version: \update]\hfill}%
267
}}}
268
\let\@evenfoot\@oddfoot}
269

    
270
\def\ps@wpage{
271
\let\@mkboth\@gobbletwo
272
\def\@evenhead{\normalsize \thepage\hfill\footnotesize{\leftmark}\hfill\normalsize\phantom{\thepage}}
273
\def\@oddhead{\normalsize \phantom{\thepage}\hfill\footnotesize{\rightmark}\hfill\normalsize\thepage}
274
\def\@evenfoot{\parbox[t]{\textwidth}{{\footnotesize \copyrightline}%
275
\hfill\footnotesize{\it \journalabb\ }(\volumeyear)\\ %
276
\footnotesize\textit{Prepared using \textsf{\journalclass}}\hfill DOI: 10.1002/\DOI}}
277
\def\@oddfoot{\@evenfoot}
278
}
279

    
280
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname.}\hspace{0.5em}}
281

    
282
\newdimen\@bls                              
283
\@bls=\baselineskip
284

    
285
\renewcommand\section{\@startsection {section}{1}{\z@}%
286
                                   {2\@bls  plus .3\@bls minus .1\@bls}%
287
                                   {1\@bls\@afterindentfalse}%
288
                                   {\centering\normalfont\normalsize\protect\MakeTextUppercase}}
289
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
290
                                     {\@bls plus .3\@bls minus .1\@bls}%
291
                                     {6pt\@afterindentfalse}%
292
                                     {\normalfont\normalsize\raggedright\itshape}}
293
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
294
                                     {\@bls plus .2\@bls}%
295
                                     {-5pt}%
296
                                     {\normalfont\normalsize\itshape}}
297

    
298
\def\enumerate{\ifnum \@enumdepth >3 \@toodeep\else
299
      \advance\@enumdepth \@ne
300
      \edef\@enumctr{enum\romannumeral\the\@enumdepth}\list
301
      {\csname label\@enumctr\endcsname}{\usecounter
302
        {\@enumctr}\itemsep 0pt\parsep 0pt
303
         \def\makelabel##1{\hss\llap{##1}}}\fi}
304

    
305
\let\endenumerate =\endlist
306

    
307
\def\itemize{\ifnum \@itemdepth >3 \@toodeep\else \advance\@itemdepth \@ne
308
\edef\@itemitem{labelitem\romannumeral\the\@itemdepth}%
309
\list{\csname\@itemitem\endcsname}{\itemsep 0pt\parsep 0pt
310
\def\makelabel##1{\hss\llap{##1}}}\fi}
311

    
312
\let\enditemize =\endlist
313

    
314
\renewcommand{\thetable}{\Roman{table}}
315

    
316
\usepackage{caption}
317
\DeclareCaptionLabelSeparator{jwperiod}{.\hspace*{0.5ex}}
318
\captionsetup[figure]{font=small,labelfont=rm,labelsep=jwperiod,justification=centerlast,singlelinecheck=true}
319
\captionsetup[table]{position=top,font=small,labelfont=rm,labelsep=jwperiod,justification=centerlast,singlelinecheck=true}
320

    
321
\def\thmhead@plain#1#2#3{%
322
  \thmname{#1}\thmnumber{\@ifnotempty{#1}{ }{#2}}%
323
  \thmnote{ {\the\thm@notefont(#3)}}}
324

    
325
\newtheoremstyle{wiley}
326
{6pt plus 2pt minus 2pt}% space above
327
{6pt plus 2pt minus 2pt}% space below
328
{}% Body font
329
{}% Indent amount
330
{\itshape}% Theorem head font
331
{}% Punctuation after theorem head
332
{\newline}% Space after theorem head
333
{}% Theorem head spec
334

    
335
\renewenvironment{proof}[1][\proofname]{\par
336
  \pushQED{\qed}%
337
  \normalfont \topsep6\p@\@plus6\p@\relax
338
  \trivlist
339
  \item[\hskip\labelsep
340
        \itshape
341
    #1\@addpunct{}]\mbox{}\newline\ignorespaces
342
}{%
343
  \popQED\endtrivlist\@endpefalse
344
}
345

    
346
\theoremstyle{wiley}
347

    
348
\def\ack{\vspace{2\@bls plus .3\@bls minus .1\@bls}
349
\noindent{\footnotesize\centerline{ACKNOWLEDGEMENT}}\\[6pt]\small\noindent}%
350

    
351
\def\acks{\vspace{2\@bls plus .3\@bls minus .1\@bls}
352
\noindent{\footnotesize\centerline{ACKNOWLEDGEMENTS}}\\[6pt]\small\noindent}%
353

    
354
\renewcommand\refname{REFERENCES}
355

    
356
\renewenvironment{thebibliography}[1]{%
357
\vspace{2\@bls plus .3\@bls minus .1\@bls}
358
\noindent{\footnotesize\centerline{\refname}}\\[-3pt]
359
\list{{\arabic{enumi}}}{\def\makelabel##1{\hss{##1.}}\topsep=0\p@\parsep=0\p@
360
\partopsep=0\p@\itemsep=0\p@
361
\labelsep=1ex\itemindent=0\p@
362
\settowidth\labelwidth{\footnotesize[#1]}%
363
\leftmargin\labelwidth
364
\advance\leftmargin\labelsep
365
\advance\leftmargin -\itemindent
366
\usecounter{enumi}}\footnotesize
367
\def\newblock{\ }
368
\sloppy\clubpenalty4000\widowpenalty4000
369
\sfcode`\.=1000\relax}{\endlist}
370

    
371
%\def\biog{\section*{Author's Biography}\small}
372
%\def\biogs{\section*{Authors' Biographies}\small}
373

    
374
\AtEndDocument{%
375
\label{LastPage}}
376

    
377
\hyphenation{com-mu-ni-ca-tions}
378

    
379
\pagestyle{wpage}
380
\normalsize
381
\sloppy