webofc.cls (23666B)
1 %% This is file 'webofc.cls' 2 %% 3 %% 4 %% \CharacterTable 5 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 6 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z 7 %% Digits \0\1\2\3\4\5\6\7\8\9 8 %% Exclamation \! Double quote \" Hash (number) \# 9 %% Dollar \$ Percent \% Ampersand \& 10 %% Acute accent \' Left paren \( Right paren \) 11 %% Asterisk \* Plus \+ Comma \, 12 %% Minus \- Point \. Solidus \/ 13 %% Colon \: Semicolon \; Less than \< 14 %% Equals \= Greater than \> Question mark \? 15 %% Commercial at \@ Left bracket \[ Backslash \\ 16 %% Right bracket \] Circumflex \^ Underscore \_ 17 %% Grave accent \` Left brace \{ Vertical bar \| 18 %% Right brace \} Tilde \~} 19 \def\filedate{2016/07/20} 20 \def\fileversion{2.01} 21 \NeedsTeXFormat{LaTeX2e}[1995/12/01] 22 \ProvidesClass{webofc} 23 [\filedate\space v\fileversion\space 24 ^^JLaTeX Class for the Web of Conference Journal 25 (EDP Sciences)] 26 % 27 \LoadClass[fleqn]{article} 28 % 29 %%%%%%%%%%%%%%%%%%%% 30 %%% Class option %%% 31 %%%%%%%%%%%%%%%%%%%% 32 % 33 \newlength\woc@textwidth 34 \newlength\woc@textheight 35 \newlength\woc@left 36 \newlength\woc@top 37 \newlength\woc@bottom 38 % 39 \newif\if@online 40 \@onlinefalse 41 \DeclareOption{online}{\@onlinetrue} 42 % 43 \DeclareOption{bio}{% 44 \def\woc@name{BIO Web of Conferences}% 45 } 46 \DeclareOption{mat}{% 47 \def\woc@name{MATEC Web of Conferences}% 48 } 49 \DeclareOption{itm}{% 50 \def\woc@name{ITM Web of Conferences}% 51 } 52 \DeclareOption{e3s}{% 53 \def\woc@name{E3S Web of Conferences}% 54 } 55 \DeclareOption{shs}{% 56 \def\woc@name{SHS Web of Conferences}% 57 } 58 \DeclareOption{epj}{% 59 \def\woc@name{EPJ Web of Conferences}% 60 } 61 \def\wocname#1{\gdef\woc@name{#1}} 62 \newcommand*\woc@name{The Journal's name} 63 % 64 \newif\ifwoc@twocolumn 65 \DeclareOption{onecolumn}{% 66 \woc@twocolumnfalse 67 \renewcommand*\woc@column{onecolumn}% 68 \renewcommand*\woc@paper{papersize={170mm,250mm}}% 69 \setlength\woc@textwidth{142mm}% 70 \setlength\woc@textheight{190mm}% 71 \setlength\woc@left{14mm}% 72 \setlength\woc@top{28mm}% 73 \setlength\woc@bottom{19mm}% 74 \def\woc@crop{\RequirePackage[cam,center]{crop}}% 75 } 76 \DeclareOption{twocolumn}{% 77 \woc@twocolumntrue 78 \renewcommand*\woc@column{twocolumn}% 79 \renewcommand*\woc@paper{a4paper}% 80 \setlength\woc@textwidth{170mm}% 81 \setlength\woc@textheight{240mm}% 82 \setlength\woc@left{20mm}% 83 \setlength\woc@top{28mm}% 84 \setlength\woc@bottom{16mm}% 85 \def\woc@crop{}% 86 } 87 \newcommand*\woc@column{} 88 \newcommand*\woc@paper{} 89 % 90 \DeclareOption{ascii}{% 91 \def\woc@input{\RequirePackage[ascci]{inputenc}}% 92 } 93 \DeclareOption{latin1}{% 94 \def\woc@input{\RequirePackage[latin1]{inputenc}}% 95 } 96 \DeclareOption{latin9}{% 97 \def\woc@input{\RequirePackage[latin9]{inputenc}}% 98 } 99 \DeclareOption{ansinews}{% 100 \def\woc@input{\RequirePackage[ansinews]{inputenc}}% 101 } 102 \DeclareOption{applemac}{% 103 \def\woc@input{\RequirePackage[applemac]{inputenc}}% 104 } 105 \DeclareOption{utf8}{% 106 \def\woc@input{\RequirePackage[utf8]{inputenc}}% 107 } 108 % 109 \DeclareOption{anglais}{% 110 \def\woc@language{\RequirePackage[english]{babel}}% 111 } 112 \DeclareOption{francais}{% 113 \def\woc@language{\RequirePackage[english,frenchb]{babel}}% 114 } 115 % 116 \DeclareOption{showoverfull}{\setlength\overfullrule{0pt}} 117 \DeclareOption{hideoverfull}{\setlength\overfullrule{5pt}} 118 % 119 \DeclareOption{bibnumber}{% 120 \def\woc@biblio{% 121 \bibpunct{[}{]}{,}{n}{}{}% 122 \def\@biblabel##1{[##1]}% 123 \bibliographystyle{woc}% 124 \def\bibfont{\@BibliographyFont}% 125 \setlength{\bibsep}{1pt}% 126 } 127 } 128 \DeclareOption{bibauthoryear}{% 129 \def\woc@biblio{% 130 \bibpunct{(}{)}{;}{a}{}{,}% 131 \bibliographystyle{woc}% 132 \def\bibfont{\@BibliographyFont}% 133 \setlength{\bibsep}{1pt}% 134 }% 135 } 136 % 137 \ExecuteOptions{anglais,onecolumn,online,utf8,showoverfull,bibnumber} 138 % 139 \ProcessOptions 140 % 141 \if@online\else 142 \woc@crop 143 \fi 144 % 145 \RequirePackage{calc} 146 \RequirePackage[T1]{fontenc} 147 \woc@input % input method (RequirePackage[<method>]{inputenc}) 148 \RequirePackage[official]{eurosym} 149 % one column = 81.5mm, columnsep = 6mm => textwidth = 84x2+7 = 170mm 150 \ifx\pdfoutput\undefined 151 \newcount\pdfoutput 152 \fi 153 \ifnum\pdfoutput=\z@ 154 \newcommand\woc@driver{dvips} 155 \else 156 \newcommand\woc@driver{pdftex} 157 \fi 158 \RequirePackage[\woc@driver, \woc@paper, \ifwoc@twocolumn\woc@column\fi, twoside, 159 top=\woc@top, bottom=\woc@bottom, heightrounded, 160 left=\woc@left, textwidth=\woc@textwidth, columnsep=7mm, 161 marginparwidth=0in, marginparsep=0in, 162 headheight=20.5pt,headsep=16.5pt, nofoot]{geometry} 163 \RequirePackage[tbtags]{amsmath} 164 \RequirePackage{amssymb} 165 \RequirePackage{fancyhdr} 166 \RequirePackage{cuted} 167 % 168 \let\@setmarks\relax 169 \RequirePackage{graphicx} 170 \RequirePackage{url, enumerate} 171 \RequirePackage[sort&compress]{natbib} 172 \woc@biblio 173 \RequirePackage{xspace} 174 \woc@language 175 % 176 %%%%%%%%%%%%%%%%% 177 %%% Registers %%% 178 %%%%%%%%%%%%%%%%% 179 % 180 \def\@fnsymbol#1{\ensuremath{\ifcase#1\or\star\or{\star}{\star}\or{\star}{\star}{\star}% 181 \or {\star}{\star}{\star}{\star}\or \dagger\or \ddagger\or 182 \mathchar "278\or \mathchar "27B\or \|\or **\or \dagger\dagger 183 \or \ddagger\ddagger \else\@ctrerr\fi}} 184 \newcommand\fnsep{\unskip$^,$} 185 % 186 \newcounter{@institutecpt} 187 % 188 \newlength{\@figgap} 189 \setlength{\@figgap}{10pt} 190 % 191 \newlength{\@floatheight} 192 % 193 \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} 194 \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@} 195 \setlength\@fptop{0\p@} 196 \setlength\@fpsep{12\p@ \@plus 2\p@ \@minus 2\p@} 197 \setlength\@dblfptop{0\p@} 198 \setlength\@dblfpsep{12\p@ \@plus 2\p@ \@minus 2\p@} 199 \setcounter{topnumber}{4} 200 \renewcommand\topfraction{.9} 201 \setcounter{bottomnumber}{2} 202 \renewcommand\bottomfraction{.7} 203 \setcounter{totalnumber}{6} 204 \renewcommand\textfraction{.1} 205 \renewcommand\floatpagefraction{.85} 206 \setcounter{dbltopnumber}{3} 207 \renewcommand\dbltopfraction{.85} 208 \renewcommand\dblfloatpagefraction{.85} 209 %%%%%%%%%%%%%%%%%%%%%%%% 210 %%% Predefined names %%% 211 %%%%%%%%%%%%%%%%%%%%%%%% 212 % 213 \addto\captionsfrench{% 214 \def\proofname{Preuve}% 215 \def\andname{\unskip, }% 216 \def\andlastname{\unskip, et }% 217 \def\andtwoname{\unskip{} et }% 218 \def\acknowledgementname{Remerciements}% 219 \def\tablename{Tableau}% 220 \def\correspondingauthorname{Auteur à contacter}% 221 \def\@datereceiptname{Les dates de réception et d'acceptation}% 222 \def\@dateacceptancename{seront indiquées par l'éditeur.}% 223 \let\listFB\listORI \def\itemize{% 224 \ifnum \@itemdepth >\thr@@\@toodeep \else \advance\@itemdepth\@ne 225 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% 226 \expandafter \list \csname\@itemitem\endcsname {% 227 \setlength{\topsep}{4\p@ \@plus2\p@ \@minus\p@}% 228 \setlength{\partopsep}{0pt}% 229 \setlength{\itemsep}{0pt}% 230 \setlength{\labelwidth}{9pt}% 231 \setlength{\labelsep}{0pt}% 232 \setlength{\itemindent}{0pt}% 233 \setlength{\leftmargin}{9pt}% 234 \def\makelabel##1{\rlap{##1}\hss}% 235 }% 236 \fi }% 237 } \addto\captionsenglish{% 238 \def\proofname{Proof}% 239 \def\andname{\unskip, }% 240 \def\andlastname{\unskip, and }% was {, and } 241 \def\andtwoname{\unskip{} and }% 242 \def\acknowledgementname{Acknowledgements}% 243 \def\tablename{Table}% 244 \def\correspondingauthorname{Corresponding author}% 245 \def\@datereceiptname{The date of receipt and acceptance}% 246 \def\@dateacceptancename{will be inserted by the editor.}% 247 \renewcommand\labelitemi{\textbullet}% 248 \renewcommand\labelitemii{--}% 249 \renewcommand\labelitemiii{--}% 250 \renewcommand\labelitemiv{--}% 251 \def\itemize{% 252 \ifnum \@itemdepth >\thr@@\@toodeep \else \advance\@itemdepth\@ne 253 \edef\@itemitem{labelitem\romannumeral\the\@itemdepth}% 254 \expandafter \list \csname\@itemitem\endcsname {% 255 \setlength{\topsep}{4\p@ \@plus2\p@ \@minus\p@}% 256 \setlength{\partopsep}{0pt}% 257 \setlength{\itemsep}{0pt}% 258 \setlength{\labelwidth}{9pt}% 259 \setlength{\labelsep}{0pt}% 260 \setlength{\itemindent}{0pt}% 261 \setlength{\leftmargin}{9pt}% 262 \def\makelabel##1{\rlap{##1}\hss}% 263 }% 264 \fi }% 265 } 266 \newcommand\CopyrightTitlename{% 267 \copyright{} Owned by the authors, published by EDP Sciences, \number\year % 268 } 269 % 270 %%%%%%%%%%%%%%%%%%%%%%%%% 271 %%%% Font definitions %%% 272 %%%%%%%%%%%%%%%%%%%%%%%%% 273 % 274 \newcommand\@HeadFont{\normalfont\small} 275 \newcommand\@HeadPageFont{\normalfont\normalsize} 276 \newcommand\@TitleFont{\normalfont\fontsize{14pt}{16pt}\sffamily\bfseries} 277 \newcommand\@SubtitleFont{\normalfont\fontsize{12pt}{14pt}\sffamily\bfseries} 278 \newcommand\@AuthorFont{\normalfont\normalsize\sffamily} 279 \newcommand\@FirstNameAuthorFont{\itshape} 280 \newcommand\@LastNameAuthorFont{\bfseries} 281 \newcommand\@InstituteFont{\normalfont\small\sffamily\slshape} 282 \newcommand\@ThanksFont{\normalfont\fontsize{8pt}{9.6pt}\selectfont} 283 \newcommand\@ThanksEmail{\normalfont\fontsize{8pt}{9.6pt}\selectfont} 284 \newcommand\@FootnoteFont{\normalfont\small} 285 \newcommand\@EmailFont{\normalfont\fontsize{8pt}{9.6pt}\sffamily\slshape} 286 \newcommand\@ResumeTitleFont{\normalfont\small\bfseries} 287 \newcommand\@ResumeFont{\normalfont\small} 288 \newcommand\@AbstractTitleFont{\normalfont\small\bfseries} 289 \newcommand\@AbstractFont{\normalfont\small} 290 \newcommand\@SectionFont{\normalfont\fontsize{12pt}{14pt}\sffamily\bfseries} 291 \newcommand\@SubsectionFont{\normalfont\normalsize\sffamily\bfseries} 292 \newcommand\@SubsubsectionFont{% 293 \normalfont\normalsize\sffamily\slshape} 294 \newcommand\@ParagraphFont{\normalfont\normalsize\itshape} 295 \newcommand\@BibliographyFont{\normalfont\normalsize} 296 \newcommand\@TitleTheoremFont{\normalfont\normalsize\bfseries} 297 \newcommand\@TitleAcknowledgementFont{\fontsize{9pt}{10.8pt}\itshape} 298 \newcommand\@TextAcknowledgementFont{% 299 \normalfont\fontsize{9pt}{10.8pt}\selectfont} 300 \newcommand\@CaptionFont{\normalfont\small} 301 \newcommand\@CaptionTitleFont{\bfseries} 302 \newcommand\@DatesFont{% 303 \normalfont\fontsize{9pt}{10.8pt}\itshape 304 \raggedleft 305 } 306 \newcommand\@CopyrightFont{\fontsize{8pt}{9.6pt}\itshape} 307 % 308 %%%%%%%%%%%%%%%%%%%%%%%%%% 309 %%% Length definitions %%% 310 %%%%%%%%%%%%%%%%%%%%%%%%%% 311 % 312 \newlength{\betweenumberspace} 313 \setlength{\betweenumberspace}{6pt} 314 % 315 \setlength{\parskip}{0pt plus1pt} 316 \newlength{\@VSpaceBeforeTitle} 317 \setlength{\@VSpaceBeforeTitle}{2cm} 318 \newlength{\@VSpaceAfterTitle} 319 \setlength{\@VSpaceAfterTitle}{10pt} 320 \newlength{\@VSpaceBeforeInstitute} 321 \setlength{\@VSpaceBeforeInstitute}{5pt} 322 \newlength{\@VSpaceAfterAbstract} 323 \setlength{\@VSpaceAfterAbstract}{9pt} 324 \newlength{\@VSpaceBeforeAbstract} 325 \setlength{\@VSpaceBeforeAbstract}{3pt} 326 \newlength{\@VSpaceBeforeThanks} 327 \setlength{\@VSpaceBeforeThanks}{10pt} 328 \newlength{\@VSpaceBeforeEmail} 329 \setlength{\@VSpaceBeforeEmail}{10pt} 330 % 331 %%%%%%%%%%%%%%%%%%% 332 %%% header page %%% 333 %%%%%%%%%%%%%%%%%%% 334 % 335 \newcommand*\idline[1]{\renewcommand*\woc@idline{\woc@name~#1}} 336 %\newcommand*\woc@idline{\woc@name~will be set by the publisher} 337 \newcommand*\woc@idline{} 338 % 339 \newcommand*\doi[1]{% 340 \renewcommand*\woc@doi{DOI: #1}% 341 } 342 \newcommand*\woc@doi{DOI: will be set by the publisher} 343 % 344 \def\woctitle#1{\gdef\@woctitle{#1}} 345 \def\@woctitle{Give the exact title of the conference} 346 % 347 \fancypagestyle{firstpage}{% 348 \fancyhf{} % clear all 349 \renewcommand{\headrulewidth}{0pt}% 350 \renewcommand{\footrulewidth}{0pt}% 351 \fancyhead[L]{% 352 \minipage[t][\baselineskip]{\linewidth} 353 \@HeadFont 354 \ifx\woc@idline\empty 355 \else 356 \woc@idline\\ 357 \woc@doi\\ 358 \CopyrightTitlename 359 \fi 360 \endminipage 361 }% 362 } 363 \fancypagestyle{otherpage}{% 364 \fancyhf{} % clear all 365 \renewcommand{\headrulewidth}{0pt}% 366 \renewcommand{\footrulewidth}{0pt}% 367 \fancyhead[CE]{% 368 \@HeadFont 369 \ifx\woc@idline\empty 370 \else 371 \woc@name 372 \fi 373 }% 374 \fancyhead[CO]{% 375 \@HeadFont 376 \ifx\woc@idline\empty 377 \else 378 \@woctitle 379 \fi 380 }% 381 } 382 \pagestyle{otherpage} 383 % 384 \clubpenalty=10000 385 \widowpenalty=10000 386 % 387 \flushbottom 388 \sloppy 389 % 390 % 391 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 392 %%% One column introduction %%% 393 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 394 % 395 \newcommand\headnote[1]{\def\@headnote{#1}} 396 \renewcommand\title[1]{\def\@title{#1}} 397 \newcommand\titlerunning[1]{\def\@titlerunning{#1}} 398 \newcommand\subtitle[1]{\def\@subtitle{#1}} 399 \newcommand\authorrunning[1]{\def\@authorrunning{#1}} 400 \newcommand\offprints[1]{\def\@offprints{#1}} 401 \newcommand\institute[1]{\def\@institute{#1}} 402 \renewcommand\abstract[1]{\def\@abstract{#1}} 403 \newcommand\resume[1]{\def\@resume{#1}} 404 \def\UrlFont{} 405 \newcommand\inst[1]{\unskip$^{\sf #1}$\ignorespaces} 406 \DeclareUrlCommand\@email{\urlstyle{same}} % \@e-mail: \@email 407 \newcommand\email[1]{% 408 e-mail: \protect\@email{#1}% 409 } 410 \renewcommand\date[2]{ 411 \def\@datereceipt{#1}% 412 \def\@dateacceptance{#2}% 413 } 414 % 415 \def\@headnote{} 416 \def\@title{% 417 \ClassError{webofc} 418 {No title given} 419 {You have to define a title with \noexpand\title{your title}.} 420 } 421 \def\@titlerunning{} 422 \def\@subtitle{} 423 \def\@author{% 424 \ClassError{webofc} 425 {No author given} 426 {You have to indicate author(s) with 427 \noexpand\author{author name \noexpand\and\space author 428 name ...}.} 429 } 430 \def\@authorrunning{} 431 \def\@offprints{} 432 \def\@institute{} 433 \def\@abstract{% 434 \ClassError{webofc} 435 {No abstract given} 436 {You have to define an abstract with 437 \noexpand\abstract{your abstract (in english)}.}% 438 } 439 \def\@datereceipt{\@datereceiptname} 440 \def\@dateacceptance{\@dateacceptancename} 441 % 442 % Parse authors, institutes, thanks, and email 443 % 444 \def\firstname#1{{\@FirstNameAuthorFont#1\protect}} 445 \def\lastname#1{{#1}} 446 \def\@parseauthor{% 447 \count@ \z@ 448 \expandafter\@countand\@author\and\@nil\and 449 \gdef\@headerauthor{}% 450 \def\@typeauthor{0}% 451 \ifnum\count@=1\relax 452 % no \and to process 453 % one author in header 454 \def\@typeauthor{1}% 455 \else\ifnum\count@=2\relax 456 % juste one \and 457 \let\@andlastauthor\andtwoname 458 % two author in header 459 \def\@typeauthor{2}% 460 \else % > 2 461 % real list 462 \let\@andauthor\andname 463 \let\@andlastauthor\andlastname 464 % one author et al. in header 465 \def\@typeauthor{3}% 466 \fi\fi 467 \@AuthorFont 468 \expandafter\@typesetauthor\@author\and\@nil\and 469 } 470 \def\@countand#1\and{% 471 \def\@rg{#1}% 472 \ifx\@rg\@nnil\else 473 \advance\count@ \@ne 474 \expandafter\@countand 475 \fi 476 } 477 \def\@typesetauthor#1\and{% 478 \def\@rg{#1}% 479 \advance\count@ \m@ne 480 \ifnum\count@>-1\relax 481 % for header 482 \ifnum\@typeauthor>0 483 \@extractauthor 484 \gdef\@headerauthor{\@currentheaderauthor}% 485 \ifcase\@typeauthor 486 % 0 impossible 487 \or 488 % 1 -> nothing to do 489 % no more author 490 \def\@typeauthor{0}% 491 \or 492 % 2 -> and 493 \protected@xdef\@headerauthor{% 494 \@headerauthor\space and 495 } 496 % add the next author 497 \def\@typeauthor{-1}% 498 \or 499 % 3 -> et al. 500 \protected@xdef\@headerauthor{% 501 \@headerauthor\space et al.% 502 } 503 % no more author 504 \def\@typeauthor{0}% 505 \fi 506 \else\ifnum\@typeauthor<0 507 \@extractauthor 508 \protected@xdef\@headerauthor{% 509 \@headerauthor \@currentheaderauthor 510 } 511 \fi\fi 512 % for first page 513 \ifnum\count@=0\relax 514 #1 515 \else\ifnum\count@=1\relax 516 #1\@andlastauthor 517 \else 518 #1\@andauthor 519 \fi\fi 520 \expandafter\@typesetauthor 521 \fi 522 } 523 \def\@extractauthor{% 524 % examine \@rg = <first name> <name> 525 % exctract first letter of <first name> 526 % and add <name>. Result in \@currentheaderauthor 527 \def\@currentheaderauthor{}% 528 \expandafter\@@extractauthor\@rg\inst\thanks\@nil 529 } 530 \def\@@extractauthor#1#2 #3\inst#4\thanks#5\@nil{% 531 \def\@currentheaderauthor{#1 #3}% 532 } 533 % 534 \newcount\woc@nbinstitutes 535 \def\@parseinstitute{\par% 536 \count@ \z@ 537 \expandafter\@countand\@institute\and\@nil\and 538 \setcounter{@institutecpt}{0}% 539 \@InstituteFont 540 \global\woc@nbinstitutes \z@ 541 \expandafter\@typesetinstitute\@institute\and\@nil\and 542 } 543 \def\@typesetinstitute#1\and{% 544 \def\@rg{#1}% 545 \advance\count@ \m@ne 546 \global\advance\woc@nbinstitutes \@ne 547 \refstepcounter{@institutecpt}% 548 \ifnum\count@>-1\relax 549 \@textsuperscript{\normalfont\sffamily\the@institutecpt}% 550 \ignorespaces#1\\ 551 \expandafter\@typesetinstitute 552 \fi 553 } 554 % 555 \newenvironment{abstract@margin} 556 {\vspace*{\@VSpaceBeforeAbstract}% 557 \list{}{% 558 \listparindent 0em 559 \itemindent \listparindent 560 \leftmargin 1.5cm 561 \rightmargin \leftmargin 562 \parsep \z@ \@plus\p@ 563 }% 564 \item\relax 565 } 566 {\endlist\vspace*{\@VSpaceAfterAbstract}} 567 % 568 % real command to typeset introduction 569 % 570 \renewcommand*\maketitle{% 571 \thispagestyle{firstpage} 572 \ifwoc@twocolumn 573 \begingroup 574 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% 575 \def\switch@fnmark{\def\thefootnote{\text{\alph{footnote}}}} 576 \def\@makefnmark{\@textsuperscript{\scriptsize\@thefnmark}} 577 \begin{strip} 578 \woc@maketitle 579 \end{strip} 580 \@thanks 581 \endgroup 582 \else 583 \begingroup 584 \parindent=0pt 585 \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% 586 \def\switch@fnmark{\def\thefootnote{\text{\alph{footnote}}}} 587 \def\@makefnmark{\@textsuperscript{\scriptsize\@thefnmark}} 588 \let\thanks\footnote 589 \woc@maketitle 590 \endgroup \fi 591 \setcounter{footnote}{0}% 592 } 593 \newcommand\woc@maketitle{% 594 \par\vspace*{\@VSpaceBeforeTitle} 595 % title 596 {\@TitleFont \@title\par} 597 \vspace*{\@VSpaceAfterTitle} 598 % subtitle 599 \ifx\relax\@subtitle\relax\else 600 {\@SubtitleFont \@subtitle\par} 601 \vspace*{\@VSpaceAfterTitle} 602 \fi 603 %author 604 % process \and display author(s) and build header 605 %\switch@fnmark 606 %\protected@xdef\@thanks{\@thanks\protect\switch@fnmark} 607 \protected@xdef\@thanks{\@thanks} 608 %\setcounter{footnote}{0} 609 \@parseauthor 610 % display institute(s) 611 \ifx\@institute\empty 612 \else 613 \par\vspace*{\@VSpaceBeforeInstitute} 614 \@FootnoteFont 615 \@parseinstitute 616 \fi 617 % abstract 618 \begin{abstract@margin} 619 \@AbstractTitleFont 620 \abstractname.\ 621 \@AbstractFont 622 \@abstract 623 \end{abstract@margin} 624 } 625 % 626 %%%%%%%%%%%%%%%%%%%%%%%%%%% 627 %%% Automatic Balancing %%% 628 %%%%%%%%%%%%%%%%%%%%%%%%%%% 629 % 630 \AtEndDocument{% 631 \ifwoc@twocolumn 632 \begin{strip} 633 \null \par 634 \end{strip} 635 \par\vspace*{\stretch{1}} 636 \fi 637 } 638 % 639 %%%%%%%%%%%%%%%%%%%%%% 640 %%% section macros %%% 641 %%%%%%%%%%%%%%%%%%%%%% 642 % 643 \def\sectcounterend{} 644 \def\@seccntformat#1{\csname the#1\endcsname\sectcounterend 645 \hskip\betweenumberspace} 646 \def\Special@bs{\let\\\newline} 647 \renewcommand\part{% 648 \ClassError{webofc} 649 {Macro \noexpand\part\space isn't allowed} 650 {You can use only macros from \noexpand\section\space to 651 \noexpand\paragraph}% 652 } 653 \renewcommand\section{% 654 \@startsection {section}{1}{\z@}% 655 {-16dd plus-4pt minus-4pt}% 656 {8dd plus4pt minus4pt}% 657 {\@SectionFont\raggedright}% 658 } 659 \renewcommand\subsection{% 660 \@startsection{subsection}{2}{\z@}% 661 {-16dd plus-4pt minus-4pt}% 662 {8dd plus4pt minus4pt}% 663 {\@SubsectionFont\raggedright}% 664 } 665 \renewcommand\subsubsection{% 666 \@startsection{subsubsection}{3}{\z@}% 667 {-16dd plus-4pt minus-4pt}% 668 {8dd plus4pt minus4pt}% 669 {\@SubsubsectionFont\raggedright}% 670 } 671 \renewcommand\paragraph{% 672 \@startsection{paragraph}{4}{\z@}% 673 {-13dd plus-4pt minus-4pt}% 674 {5.5pt}% 675 {\@ParagraphFont\raggedright}% 676 } 677 \renewcommand\subparagraph{% 678 \ClassError{webofc} 679 {Macro \noexpand\subparagraph\space isn't allowed} 680 {You can use only macros from \noexpand\section\space to 681 \noexpand\paragraph} 682 } 683 % 684 %%%%%%%%%%%%%%%%%%%%%% 685 %%% Aknowledgement %%% 686 %%%%%%%%%%%%%%%%%%%%%% 687 % 688 \newenvironment{acknowledgement} 689 {%\section*{\acknowledgementname}% 690 \noindent\ignorespaces\@TextAcknowledgementFont}{} 691 % 692 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 693 %%% modified standard description environment %%% 694 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 695 % 696 \renewenvironment{description}[1][] 697 {% 698 \list{} 699 {% 700 \setlength{\leftmargin}{0pt}% 701 \setlength{\labelsep}{0pt}% 702 \ifnum\@listdepth<2 703 \setlength{\labelwidth} 704 {\widthof{\descriptionlabel{#1}}}% 705 \else 706 \labelwidth\z@ 707 \fi 708 \setlength{\itemindent}{\labelwidth}% 709 \let\makelabel\descriptionlabel 710 }% 711 } 712 {\endlist} 713 \renewcommand*\descriptionlabel[1]{% 714 \normalfont\bfseries #1 715 \hss % add 716 } 717 % 718 %%%%%%%%%%%%%% 719 %%% Floats %%% 720 %%%%%%%%%%%%%% 721 % 722 % Float placement 723 % 724 \def\fps@figure{tbp} 725 \def\fps@table{tbp} 726 % 727 % Float Body 728 % 729 % figure 730 \renewenvironment{figure} 731 {\@float{figure}} 732 {\end@float} 733 \renewenvironment{figure*} 734 {\@dblfloat{figure}} 735 {\end@dblfloat} 736 % table 737 \renewenvironment{table} 738 {\@float{table}} 739 {\end@float} 740 \renewenvironment{table*} 741 {\@dblfloat{table}} 742 {\end@dblfloat} 743 % 744 \setlength\abovecaptionskip{10\p@} 745 \setlength\belowcaptionskip{10\p@} 746 \def\string@table{table} 747 % 748 % Captions 749 % 750 \newcommand\@FloatCounterEnd{} 751 \newcommand\@FloatCounterSep{. } 752 % 753 \renewcommand\@makecaption[2]{% 754 \par\addvspace\abovecaptionskip 755 \ifx\@captype\string@table 756 % Table: centering caption 757 \begingroup 758 \centering 759 \@CaptionFont{% 760 \@CaptionTitleFont #1% 761 \@FloatCounterEnd\@FloatCounterSep 762 }\ignorespaces#2% 763 \par 764 \endgroup 765 \else 766 % Figure (and others?): justified 767 \begingroup 768 \@CaptionFont{% 769 \@CaptionTitleFont #1% 770 \@FloatCounterEnd\@FloatCounterSep 771 }\ignorespaces#2% 772 \par 773 \endgroup 774 % 775 \fi 776 \par\addvspace\belowcaptionskip 777 } 778 \newcommand\@makesidecaption[2]{% 779 \raisebox{0.5\@floatheight}{% 780 \parbox{\@tempdima}{% 781 \raggedright 782 \@CaptionFont{% 783 \@CaptionTitleFont #1% 784 \@FloatCounterEnd\@FloatCounterSep 785 }\ignorespaces#2% 786 }% 787 }% 788 } 789 \long\def\sidecaption#1\caption{% 790 \setbox\@tempboxa=\hbox{\unskip#1\unskip\ignorespaces}% 791 \setlength{\@floatheight}{\ht\@tempboxa+\dp\@tempboxa}% 792 \setlength{\@tempdima}{\columnwidth-\@figgap-\wd\@tempboxa}% 793 \ifdim\@tempdima<3cm 794 \ClassWarning{webofc}{% 795 \string\sidecaption: No sufficient room for the legend; 796 using normal \string\caption. 797 }% 798 \leavevmode 799 \box\@tempboxa 800 \let\@capcommand=\@caption 801 \else 802 \let\@capcommand=\@sidecaption 803 \leavevmode 804 \box\@tempboxa\hspace*{\@figgap}% 805 \fi 806 \refstepcounter\@captype 807 \@dblarg{\@capcommand\@captype}% 808 } 809 810 \long\def\@sidecaption#1[#2]#3{% 811 \addcontentsline{\csname ext@#1\endcsname} 812 {#1} 813 {% 814 \protect\numberline{\csname the#1\endcsname}% 815 {\ignorespaces #2}% 816 }% 817 \begingroup 818 \@parboxrestore 819 \@makesidecaption{\csname fnum@#1\endcsname} 820 {\ignorespaces #3}% 821 \par 822 \endgroup 823 } 824 % 825 \endinput 826 %% 827 %% End of file `webofc.cls' 828