source: doc/papers/llheap/WileyNJD-v2.cls @ f5dbc8d

Last change on this file since f5dbc8d was 7bef8cf, checked in by Peter A. Buhr <pabuhr@…>, 19 months ago

start paper on llheap

  • Property mode set to 100644
File size: 107.2 KB
Line 
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3%%
4%% This file is copyright by SPi Technologies Ltd. All rights reserved.
5%%
6%% Author:       SPi, LaTeX Development Team, Chennai (India)
7%% Created On:
8%% Last Modified By:
9%% Last Modified On:
10%% Description:  Class file to support authoring template in LaTeX typesetting
11%%               for Wiley Journals
12%%
13%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15
16\NeedsTeXFormat{LaTeX2e}[2009/09/24]
17\ProvidesClass{WileyNJD-v2}
18              [2017/06/23 v0.2 Standard LaTeX document class for Journal]
19
20\newif\if@cropmarkson\@cropmarksonfalse
21\newif\if@croppage\@croppagefalse
22\newif\if@draftruleson\@draftrulesonfalse
23\newif\if@exactptsize\@exactptsizefalse
24\newif\if@pagenum   \@pagenumfalse%
25\newif\if@purexml\global\@purexmlfalse
26\newif\if@xml\global\@xmlfalse
27\newif\if@hyperrefon  \@hyperrefonfalse%
28\newif\ifbibunnumbered\global\bibunnumberedtrue%
29\newif\ifproof\global\prooffalse%
30\newif\ifEqnSpan\global\EqnSpantrue%
31\newif\if@dblspace\global\@dblspacefalse%
32
33\newif\if@font@stix\global\@font@stixfalse%
34\newif\if@large@design\global\@large@designtrue%
35\newif\if@small@design\global\@small@designfalse%
36
37
38\newif\if@APArefstyle\global\@APArefstylefalse%
39\newif\if@AMSrefstyle\global\@AMSrefstylefalse%
40\newif\if@AMArefstyle\global\@AMArefstylefalse%
41\newif\if@Vancouverrefstyle\global\@Vancouverrefstylefalse%
42\newif\if@Chemistryrefstyle\global\@Chemistryrefstylefalse%
43\newif\if@Harvardstyle\global\@Harvardstylefalse%
44
45\newif\if@STIXLargeOneCol\global\@STIXLargeOneColfalse%
46\newif\if@STIXSmall\global\@STIXSmallfalse%
47\newif\if@STIXLargeTwoCol\global\@STIXLargeTwoColfalse%
48
49\newif\if@LATOLargeOneCol\global\@LATOLargeOneColfalse%
50\newif\if@LATOSmall\global\@LATOSmallfalse%
51\newif\if@LATOLargeTwoCol\global\@LATOLargeTwoColfalse%
52
53\def\dummyalphabet{\vphantom{abcdefghijklmnopqrstuvwxyz0123456789}}
54
55\DeclareOption{STIX1COL}{\global\@STIXLargeOneColtrue\global\@font@stixtrue}
56\DeclareOption{STIX2COL}{\global\@STIXLargeTwoColtrue\global\@font@stixtrue}
57\DeclareOption{STIXSMALL}{\global\@STIXSmalltrue \global\@font@stixtrue}
58\DeclareOption{LATO1COL}{\global\@LATOLargeOneColtrue\global\@font@stixfalse}
59\DeclareOption{LATO2COL}{\global\@LATOLargeTwoColtrue\global\@font@stixfalse}
60\DeclareOption{LATOSMALL}{\global\@LATOSmalltrue\global\@font@stixfalse}
61
62
63\DeclareOption{APA}{\global\@APArefstyletrue}
64\DeclareOption{AMS}{\global\@AMSrefstyletrue}
65\DeclareOption{ACS}{\global\@Chemistryrefstyletrue}
66\DeclareOption{AMA}{\global\@AMArefstyletrue}
67\DeclareOption{VANCOUVER}{\global\@Vancouverrefstyletrue}
68
69\DeclareOption{HARVARD}{\global\@Harvardstyletrue}
70
71\DeclareOption{doublespace}{\global\@dblspacetrue}
72
73\DeclareOption{draftrules}{\global\@draftrulesontrue}
74\DeclareOption{exactsize}{\global\@exactptsizetrue}%
75\DeclareOption{noexactsize}{\global\@exactptsizefalse}%
76\DeclareOption{croppage}{\global\@croppagetrue\global\@cropmarksontrue}%
77\DeclareOption{number}{\xdef\@biboptions{numbers}}
78\DeclareOption{numbers}{\xdef\@biboptions{numbers}}
79\DeclareOption{EqnSpan}{\global\EqnSpantrue}%%
80
81\DeclareRobustCommand{\foo}[1]{%
82  R\number\numexpr#1-1\relax% Print R<counter-1>
83}
84
85\DeclareOption{proof}{%
86\global\prooftrue%
87\global\@hyperrefontrue%
88}%
89
90\DeclareOption{final}{%
91\global\prooffalse%
92\global\@hyperrefontrue% links and bookmarks are removed through PDF action list post PDF creation
93}%
94
95\def\@JrnlID{}%
96\gdef\JrnlID#1{\gdef\@JrnlID{#1}}%
97
98\def\@YES{YES}%
99\def\@NO{NO}%
100
101%
102%%%%%%%%% From Boolean Package %%%%%%%%%
103%
104
105\newcommand {\TRUE}[2]{#1}
106\newcommand {\FALSE}[2]{#2}
107
108%% Public commands are also given inner hidden names
109
110\let \bln@true \TRUE
111\let \bln@false \FALSE
112
113\newcommand {\AND}[2]{#1{#2}{\bln@false}}
114\newcommand {\OR}[2]{#1{\bln@true}{#2}}
115\newcommand {\NOT}[1]{#1{\bln@false}{\bln@true}}
116\newcommand {\IF}[3]{#1{#2}{#3}}
117
118\let \bln@and \AND
119\let \bln@or  \OR
120\let \bln@not \NOT
121\let \bln@if  \IF
122
123
124%% To convert if.. macros into Booleans:
125
126\newcommand {\texbool}[1]
127    {#1\let \bln@do \bln@true \else \let \bln@do \bln@false\fi \bln@do}
128%% Does not work
129\let \bln@tex \texbool
130
131\newcommand {\ifxbool}[2]
132    {\ifx #1#2\let \bln@do \bln@true \else \let \bln@do \bln@false \fi \bln@do}
133\let \bln@ifx \ifxbool
134
135\newcommand {\ifybool}[2]
136    {\def \bln@testa{#1}\ifxbool{\bln@testa}{#2}}
137\let \bln@ify \ifybool
138
139\newcommand {\ifequalbool}[2]
140    {\def \bln@testa{#1}\def \bln@testb{#2}\ifxbool{\bln@testa}{\bln@testb}}
141\let \bln@ifequal \ifequalbool
142
143\def \bln@empty {}
144\newcommand {\ifemptybool}[1]
145    {\ifybool{#1}{\bln@empty}}
146\let \bln@ifempty \ifemptybool
147
148%% To force evaluation, e.g. if a blnlean expression is to be used several
149%% times. This takes a Boolean expression and returns a Boolean value, i.e.
150%% \True or \False.
151
152\newcommand* {\letboolval}[2]
153        {#2{\let #1\bln@true}{\let #1\bln@false}}
154\newcommand* {\newboolval}[2]
155        {\@ifdefinable #1{\letboolval{#1}{#2}}}
156
157%% We provide list versions of And and Or
158
159\def \bln@scan #1,#2\bln@to#3#4{%
160    \bln@ifempty{#2}{#3{#4}{#1}}
161          {\bln@scan #2\bln@to {#3}{#3{#4}{#1}}}%
162}
163\def \bln@eval #1#2#3{%
164    \bln@ifempty{#1}{#3}%
165          {\bln@scan #1,\bln@to {#2}{#3}}%
166}
167
168\newcommand*{\ANDL}[1]{\bln@eval {#1}{\bln@and}{\bln@true}}
169\newcommand*{\ORL} [1]{\bln@eval {#1}{\bln@or}{\bln@false}}
170
171%% In some contexts, shorter names may be more convenient
172
173\newcommand*{\ShorterBooleanNames}{%
174  \let \true  \bln@true
175  \let \false \bln@true
176  \let \or    \bln@or
177  \let \and   \bln@and
178  \let \not   \bln@not
179  \let \orl   \bln@orl
180  \let \andl  \bln@andl
181}
182
183%% Comparisson between strings
184
185\newcommand {\stringmatch}[3]{%
186   \def \@match ##1#2##2\str@sep ##3\str@sep ##4\str@end
187        {#1{##1}{##2}{\ifequalbool{#2}{##3}}}%
188   \@match #3\str@sep #2\str@sep \str@sep \str@end
189}
190\let \str@match \stringmatch
191
192%% The following commands takes in order Prefix Infix Suffix Left
193
194\def \str@infix  #1#2#3{#3}
195\def \str@prefix #1#2#3{\AND{#3}{\ifemptybool{#1}}}
196\def \str@suffix #1#2#3{\AND{#3}{\ifemptybool{#2}}}
197
198\newcommand {\ifstringinfix} {\str@match {\str@infix}}
199\newcommand {\ifstringsuffix}{\str@match {\str@suffix}}
200\newcommand {\ifstringprefix}{\str@match {\str@prefix}}
201
202%%%%%%%%%%% From ifjobname Package %%%%%%%%%%%%%
203
204\edef \@jobname {\jobname}
205
206%% Simple equality
207\def \job@eattwo #1#2{}
208\def \ifjobname #1{%
209   \edef \job@tmp {\expandafter \string \csname x#1\endcsname}%
210   \edef \job@name {\expandafter \job@eattwo \job@tmp}%
211   \ifxbool{\@jobname}{\job@name}%
212}
213
214%%
215
216\newtoks \job@temptoken
217
218\def \ifjob@iffix #1#2{%
219   \edef \@tmp {\expandafter \string \csname x#2\endcsname}%
220   \edef \job@name {\expandafter \job@eattwo \@tmp}%
221   \job@temptoken{\def \@match ##1}%
222   \@temptokena={##2\relax ##3\relax
223           {\def \tmp@prefix {##1}\def \tmp@suffix {##2}\def \tmp@left
224           {##3}}}%
225   \let \arg@one \job@name%
226   \edef \@tmp{\the \job@temptoken\job@name\the \@temptokena}\@tmp
227   \edef \@tmp{\noexpand\@match \@jobname \relax \job@name \relax \relax}\@tmp
228   #1}
229
230\def \job@infix {\ifxbool{\tmp@left}{\arg@one}}
231\def \job@suffix
232     {\AND{\ifxbool{\tmp@left}{\arg@one}}{\ifxbool{\empty}{\tmp@suffix}}}
233\def \job@prefix
234     {\AND{\ifxbool{\tmp@left}{\arg@one}}{\ifxbool{\empty}{\tmp@prefix}}}
235
236\newcommand {\ifjobinfix} {\ifjob@iffix {\job@infix}}
237\newcommand {\ifjobsuffix}{\ifjob@iffix {\job@suffix}}
238\newcommand {\ifjobprefix}{\ifjob@iffix {\job@prefix}}
239
240%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
241
242
243%\ExecuteOptions{twosidecrop,crop,centre,noinfo,a3paper,exactsize,croppage}%
244\ProcessOptions
245\LoadClass[twoside,fleqn,onecolumn]{article}%
246
247\usepackage{etex}%
248\reserveinserts{28}% included etex package and \reserveinserts{...} to avoid no room for \newinserts, \newcounts or \newskips etc.
249\RequirePackage{graphicx,multicol}%
250\RequirePackage{multirow}%
251\RequirePackage{cuted}%
252\RequirePackage{ifpdf}%
253\RequirePackage{url}\def\UrlFont{}%\urlstyle{sf}
254\RequirePackage[strict]{changepage}%
255\RequirePackage{calc}%
256\RequirePackage{xcolor}%
257\RequirePackage{float}%
258\RequirePackage{floatpag}%
259\floatpagestyle{headings}%
260\rotfloatpagestyle{headings}%modified from plain to headings to get header and footer for sidewaystable%
261\RequirePackage{dblfloatfix}%
262\RequirePackage[figuresright]{rotating}%
263%\RequirePackage{longtable}%
264%%\RequirePackage{threeparttable}%
265\RequirePackage{ulem}%
266\RequirePackage{enumerate}%
267\RequirePackage{soul}
268\usepackage{caption}
269\usepackage[english]{babel}
270%%
271%\if@hyperrefon%
272%  \if@xml%
273     \RequirePackage{hyperref}%
274%  \else%
275%     \RequirePackage{hyperref}%
276%  \fi%
277%  \RequirePackage{breakurl}%
278  \hypersetup{bookmarksopen=true,%
279              bookmarksdepth=3}%
280  \RequirePackage{bookmark}% if bookmark package is commented bookmarks are getting printed at the beginning of the file in the output
281%\else%
282%  \RequirePackage{hyperref}%
283%  \RequirePackage{breakurl}%
284%  \hypersetup{bookmarksopen=true,%
285%              bookmarksdepth=3}%
286%  \RequirePackage{bookmark}% if bookmark package is commented bookmarks are getting printed at the beginning of the file in the output
287%\fi%
288\IfFileExists{subfigure.sty}{}{\RequirePackage[labelformat=empty]{subfig}}%
289
290\RequirePackage{twoopt}%
291\RequirePackage[bottom]{footmisc}% to place footnotes below floats
292
293%\if@xml%
294%\else%
295%%%%%%% For pagenumbering automations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
296%\usepackage{alphalph}%
297%\usepackage[pagecontinue=true,alphMult=ab,AlphMulti=AB,fnsymbolmult=true,romanMult=true,RomanMulti=true]{pageslts}
298%\AtBeginDocument{\pagenumbering{arabic}}%% for pagesLTS package
299%%%%%%% end pagenumbering automations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
300%\fi%
301
302\AtBeginDocument{\if@dblspace\usepackage{setspace}\doublespacing\fi}%
303
304\RequirePackage{tabularx}%%  COMPULSARILY HAS TO BE INPUTTED TO USE \tabpara% XMT: Update
305
306
307%\newcounter{boxcnt}%
308%\newcommand\boxsection[1]{\begingroup\vskip2pt%
309%\refstepcounter{boxcnt}%
310%\vbox{{\textcolor{black!75}{\bfseries BOX \theboxcnt.}}\quad {\bfseries#1}}\par%
311%\removelastskip\vskip4pt%
312%\endgroup}
313
314
315%\usepackage{mdframed}
316%\mdfsetup{linewidth=1pt,topline=true,bottomline=true,skipabove=\topskip,skipbelow=\topskip}
317%\newenvironment{boxtext}{\begingroup\begin{fcolorbox}{black}{white}%
318%}{\par\end{fcolorbox}\endgroup}
319
320%%%%%%%%%%%%%%%%%%%%%boxtext%%%%%%%%%%%%%%%%%%%%%
321\def\ColorDefns{%
322\definecolor{boxrulecol}{cmyk}{0,0,0,0}%
323\definecolor{boxbodycol}{cmyk}{0,0,0,0}}%
324
325\newdimen\tfboxrule%
326\newdimen\bfboxrule%
327
328\def\@spframeb@x#1{%
329  \@tempdima\fboxrule
330  \advance\@tempdima\fboxsep
331  \advance\@tempdima\dp\@tempboxa
332  \leavevmode
333  \hbox{%
334    \lower\@tempdima\hbox{%
335      \vbox{%
336        \hrule\@height\tfboxrule
337        \hbox{%
338          \vrule\@width\fboxrule
339          #1%
340          \vbox{%
341            \vskip\fboxsep
342            \box\@tempboxa
343            \vskip\fboxsep}%
344          #1%
345          \vrule\@width\fboxrule}%
346        \hrule\@height\bfboxrule}%
347                          }%
348        }%
349}%
350
351
352
353\newdimen\BXRuleThickness%
354\BXRuleThickness=0.25pt%
355
356\newdimen\BXleftrightskipdimen%
357\BXleftrightskipdimen=8pt%
358
359\newdimen\BXhsize%
360
361\advance\BXhsize by -2\BXRuleThickness%(rule thickness)
362\advance\BXhsize by -2\BXleftrightskipdimen%(rule thickness)
363
364\newdimen\FreePageSpace%To find out the FreeSpace
365\newdimen\ovsize%
366
367\newskip\adjustskip%
368\adjustskip=0pt plus10pt minus1pt%
369
370\gdef\ComputeFreeSpaceOnPage{%
371\par%
372\ifdim\pagetotal=0pt%
373   \global\FreePageSpace=\vsize%
374   \global\advance\FreePageSpace by -\adjustskip%
375\else%
376   \FreePageSpace=\pagegoal%
377  \ifvoid\footins%
378     \global\advance\FreePageSpace by -\pagetotal%
379     \global\advance\FreePageSpace by -\adjustskip%
380  \else%
381    \setbox3=\vbox{\unvbox\footins}%
382    \htftbox=\ht3%
383    \advance\htftbox by \dp3%
384    \global\advance\FreePageSpace by -\pagetotal%
385    \global\advance\FreePageSpace by -\htftbox%
386    \global\advance\FreePageSpace by -\adjustskip%
387  \fi%
388\fi%
389}%
390
391\newbox\BXbox%
392
393\gdef\overprinton{\special{ps:gsave
394true setoverprint}}
395
396\gdef\overprintoff{\special{ps:grestore
397false setoverprint}}
398
399\long\def\BXboxfirst#1{\begingroup%\undefined%
400\fboxsep=\BXleftrightskipdimen%
401\fboxrule=\BXRuleThickness\tfboxrule=\BXRuleThickness\bfboxrule=\BXRuleThickness%
402\setbox\BXbox=\vbox{\hsize=\BXhsize\hsize=\BXhsize\fbox{\vbox{#1}}}%
403\box\BXbox%
404\endgroup}%
405
406\long\def\BXboxmid#1{\begingroup%\undefined%
407\fboxsep=\BXleftrightskipdimen%
408\fboxrule=\BXRuleThickness\tfboxrule=\BXRuleThickness\bfboxrule=\BXRuleThickness%
409\setbox\BXbox=\vbox{\hsize=\BXhsize\hsize=\BXhsize\fbox{\vbox{#1}}}%
410\box\BXbox%
411\endgroup}%
412
413\long\def\BXboxlast#1{\begingroup%\undefined%
414\fboxsep=\BXleftrightskipdimen%
415\fboxrule=\BXRuleThickness\tfboxrule=\BXRuleThickness\bfboxrule=\BXRuleThickness%
416\setbox\BXbox=\vbox{\hsize=\BXhsize\hsize=\BXhsize\fbox{\vbox{#1}}}%
417\box\BXbox%
418\endgroup}%
419       
420\long\def\BXboxfull#1{\begingroup%
421\fboxsep=\BXleftrightskipdimen%
422\fboxrule=\BXRuleThickness\tfboxrule=\BXRuleThickness\bfboxrule=\BXRuleThickness%
423\setbox\BXbox=\vbox{\hsize=\BXhsize\hsize=\BXhsize\fbox{\vbox{#1}}}%
424\box\BXbox%
425\endgroup}%
426
427\newskip\xxptspaceamount%
428\xxptspaceamount=20pt plus10pt minus5pt%
429
430\newskip\BXboxoutbnewskip%
431\BXboxoutbnewskip=\xxptspaceamount%
432
433\def\BXboxoutbskip{\removelastskip\vskip\BXboxoutbnewskip}%
434
435\newdimen\BXdim%
436
437\def\boxejectdefns{\vfill\eject}%
438
439\long\def\BX#1{\begingroup%
440\ComputeFreeSpaceOnPage%
441\BXdim=\ht#1\advance\BXdim by \dp#1%
442\ifdim\BXdim>\FreePageSpace%
443\advance\FreePageSpace by -\BXboxoutbnewskip%outside space before definition
444\advance\FreePageSpace by -\BXleftrightskipdimen%bottom space in the first box
445  \setbox8=\vbox{\unvbox#1}%
446  \setbox1=\vsplit8to\FreePageSpace%
447  \setbox1=\vbox{\unvbox1}%
448  \setbox2=\vbox{\unvbox8}%
449  \BXboxfirst{\unvbox1}\boxejectdefns%
450\loop\ifdim\ht2>\vsize%
451  \ovsize=\vsize%
452  \advance\ovsize by -2\BXleftrightskipdimen%
453  \setbox1=\vsplit2to\ovsize%
454  \setbox1=\vbox{\unvbox1}%
455  \BXboxmid{\unvbox1}\boxejectdefns%
456\repeat%
457  \BXboxlast{\unvbox2}%
458\else%
459\BXboxfull{\unvbox#1}%
460\fi%
461\endgroup}%
462
463
464
465
466\newbox\BXgraybox%
467\newenvironment{boxtext}{\begingroup\parskip=0pt\parindent=0pt%
468%\let\section=\boxhead%
469\let\@frameb@x\@spframeb@x%
470\fboxsep=5pt\hsize=\BXhsize\parindent=0pt%
471\setbox\BXgraybox=\vbox\bgroup%\leftskip=1pt%
472\nointerlineskip\vskip0pt%%
473%\reset@font\tabbodyfont%
474\removelastskip\noindent}%
475{\egroup\hsize=\hsize\BXboxoutbskip\BX{\BXgraybox}\endgroup}%
476
477%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
478
479
480
481%% ========================================================= %%
482%% If array package is included before dcolumn package,      %%
483%% array environment inside eqnarray throw errors            %%
484%% array package is included in dcolumn package; do not      %%
485%% include array.sty again in Wileyarticle.cls anywhere;     %%
486%% ========================================================= %%
487\RequirePackage{varwidth}%
488\RequirePackage{dcolumn}%
489%
490%% Fonts Used
491%
492\if@STIXLargeOneCol%
493\RequirePackage[not1,notextcomp,lcgreekalpha]{stix}%
494\usepackage[T1]{fontenc}
495\BXhsize=170mm%
496\else%
497\if@STIXLargeTwoCol%
498\RequirePackage[not1,notextcomp,lcgreekalpha]{stix}%
499\usepackage[T1]{fontenc}
500\BXhsize=19pc%
501\else%
502\if@STIXSmall%
503\RequirePackage[not1,notextcomp,lcgreekalpha]{stix}%
504\usepackage[T1]{fontenc}
505\BXhsize=170mm%
506\else%
507\if@LATOLargeTwoCol%
508\usepackage[default]{lato}
509\usepackage[T1]{fontenc}
510  \fontfamily{fla}%
511 \renewcommand{\rmdefault}{fla}%
512  \renewcommand{\sfdefault}{fla}%
513\BXhsize=19pc%
514\else%
515\if@LATOLargeOneCol%
516\usepackage[default]{lato}
517\usepackage[T1]{fontenc}
518  \fontfamily{fla}%
519 \renewcommand{\rmdefault}{fla}%
520 \renewcommand{\sfdefault}{fla}%
521%\everymath{\sf}%  \renewcommand*{\mathsf}{fla}%
522\BXhsize=170mm%
523\else%
524\if@LATOSmall%
525\usepackage[default]{lato}
526\usepackage[T1]{fontenc}
527  \fontfamily{fla}%
528 \renewcommand{\rmdefault}{fla}%
529  \renewcommand{\sfdefault}{fla}%
530\BXhsize=170mm%
531\else%
532\fi\fi\fi\fi\fi\fi%
533
534%\RequirePackage[not1,notextcomp,lcgreekalpha]{stix}%
535
536\captionsetup[figure]{labelformat=simple, labelsep=space, skip=10pt, labelfont=bf}
537\captionsetup[table]{labelformat=simple, labelsep=space, skip=10pt, labelfont=bf}
538\renewcommand{\thefigure}{\arabic{figure}}
539
540\renewcommand{\thetable}{\arabic{table}}
541
542\renewcommand\figurename{\textbf{FIGURE}}%%
543\renewcommand\tablename{\textbf{TABLE}} %%
544
545\def\fnum@figure{\figurenumfont{\figurename}\space\relax\textbf{\thefigure\hskip9pt}} %%LN
546
547%
548%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Layout Settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
549%
550\newlength\trimwidth
551\newlength\trimheight
552\newlength\typewidth
553\newlength\typeheight
554\newlength\normaltextheight
555\newlength\blindfoliodrop
556\newlength\figheight
557\newlength\figwidth
558\newlength\tabledim
559
560\if@STIXLargeOneCol%
561\setlength\paperwidth{210mm}%
562\setlength\paperheight{276mm}%
563
564\setlength\typeheight{62\baselineskip}
565\setlength\textheight{53\baselineskip}%
566\addtolength\textheight{-6.9\p@}%
567
568\setlength\typewidth{177.8mm}
569\setlength\textwidth{177.8mm}
570
571%%\addtolength\textwidth{1.8\p@}
572\setlength\normaltextheight{\textheight}
573%
574\setlength\headheight{12.5\p@}%
575\setlength\headsep   {15.2pt}%
576\setlength\topskip   {6\p@}%
577\setlength\splittopskip   {\topskip}
578%
579\setlength\columnsep{1pc}%
580\addtolength\columnsep{6\p@}%
581\setlength\columnseprule{0\p@}
582%
583\newdimen\columnhsizevalue%
584\columnhsizevalue=\textwidth%
585\advance\columnhsizevalue by -\columnsep%
586\divide\columnhsizevalue by 2%
587%
588\setlength\topmargin{2pc}%
589\addtolength\topmargin{5\p@}%
590\setlength\oddsidemargin{45\p@}%
591\setlength\evensidemargin{45\p@}%
592
593\setlength\footskip{51\p@}
594\setlength\maxdepth{4\p@}
595
596\setlength{\marginparsep}{18\p@}%
597\setlength{\marginparwidth}{5mm}%
598
599\setlength\footnotesep{5.75\p@}
600%\setlength{\skip\footins}{12pt plus2pt minus2pt}%
601\setlength{\skip\footins}{18pt plus2pt minus2pt}%
602
603\newskip\abs@coli@hsize\abs@coli@hsize12pc%
604\newskip\abs@colii@hsize\abs@colii@hsize29pc%
605
606\RequirePackage[paperwidth=210mm,
607    paperheight=276mm,
608%%  top={26pt+21pt+11pt},
609    top={25.5pt+21pt+11pt},
610    headheight={21pt},% incl. rule
611    headsep={11pt},
612    left={\oddsidemargin},
613    right={\evensidemargin},
614%    text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
615    marginparsep=0pt,
616    columnsep=0pt,
617    marginparwidth=0pc,
618    bindingoffset=0mm,
619    footskip=48.5pt,
620    bottom={10.5pt+48.5pt},
621    centering]{geometry}
622\else%
623\if@STIXLargeTwoCol%
624\setlength\paperwidth{210mm}%
625\setlength\paperheight{276mm}%
626
627\setlength\typeheight{62\baselineskip}
628\setlength\textheight{53\baselineskip}%
629\addtolength\textheight{-6.9\p@}%
630
631\setlength\typewidth{177.8mm}
632\setlength\textwidth{177.8mm}
633
634%%\addtolength\textwidth{1.8\p@}
635\setlength\normaltextheight{\textheight}
636%
637\setlength\headheight{12.5\p@}%
638\setlength\headsep   {15.2pt}%
639\setlength\topskip   {6\p@}%
640\setlength\splittopskip   {\topskip}
641%
642\setlength\columnsep{1pc}%
643\addtolength\columnsep{6\p@}%
644\setlength\columnseprule{0\p@}
645%
646\newdimen\columnhsizevalue%
647\columnhsizevalue=\textwidth%
648\advance\columnhsizevalue by -\columnsep%
649\divide\columnhsizevalue by 2%
650%
651\setlength\topmargin{2pc}%
652\addtolength\topmargin{5\p@}%
653\setlength\oddsidemargin{45\p@}%
654\setlength\evensidemargin{45\p@}%
655
656\setlength\footskip{51\p@}
657\setlength\maxdepth{4\p@}
658
659\setlength{\marginparsep}{18\p@}%
660\setlength{\marginparwidth}{5mm}%
661
662\setlength\footnotesep{5.75\p@}
663%\setlength{\skip\footins}{12pt plus2pt minus2pt}%
664\setlength{\skip\footins}{18pt plus2pt minus2pt}%
665
666\newskip\abs@coli@hsize\abs@coli@hsize12pc%
667\newskip\abs@colii@hsize\abs@colii@hsize29pc%
668
669\RequirePackage[paperwidth=210mm,
670    paperheight=276mm,
671%%  top={26pt+21pt+11pt},
672    top={25.5pt+21pt+11pt},
673    headheight={21pt},% incl. rule
674    headsep={11pt},
675    left={\oddsidemargin},
676    right={\evensidemargin},
677%    text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
678    marginparsep=0pt,
679    columnsep=0pt,
680    marginparwidth=0pc,
681    bindingoffset=0mm,
682    footskip=48.5pt,twocolumn,columnsep=1pc,
683    bottom={10.5pt+48.5pt},
684    centering]{geometry}
685\else%
686\if@STIXSmall%
687\setlength\paperwidth{171mm}%
688\setlength\paperheight{246mm}%
689
690\setlength\typeheight{56\baselineskip}
691\setlength\typewidth{177mm}
692%
693\setlength\textheight{47\baselineskip}%
694\addtolength\textheight{-5.1\p@}%
695\setlength\textwidth{33.8pc}
696%\addtolength\textwidth{2\p@}
697\setlength\normaltextheight{\textheight}
698%
699\setlength\headheight{12.5\p@}%
700\setlength\headsep   {21.2pt}%
701\setlength\topskip   {6\p@}%
702\setlength\splittopskip   {\topskip}
703%
704\setlength\columnsep{1pc}%
705\addtolength\columnsep{6\p@}%
706\setlength\columnseprule{0\p@}
707%
708\newdimen\columnhsizevalue%
709\columnhsizevalue=\textwidth%
710\advance\columnhsizevalue by -\columnsep%
711\divide\columnhsizevalue by 2%
712%
713\setlength\topmargin{2pc}%
714%\addtolength\topmargin{4\p@}%
715\setlength\oddsidemargin{40.5\p@}%
716\setlength\evensidemargin{40.5\p@}%
717
718\setlength\footskip{22\p@}
719\setlength\maxdepth{4\p@}
720
721\setlength{\marginparsep}{18\p@}%
722\setlength{\marginparwidth}{5mm}%
723
724\setlength\footnotesep{5.75\p@}
725\setlength{\skip\footins}{12pt plus2pt minus2pt}%
726%\setlength{\skip\footins}{22pt plus2pt minus2pt}%
727
728\setlength\parindent{15pt}% \z@
729
730\setlength\lineskip{1\p@}
731\setlength\normallineskip{1\p@}
732\renewcommand\baselinestretch{}
733\parskip=0pt%
734\newskip\abs@coli@hsize\abs@coli@hsize11pc%
735\newskip\abs@colii@hsize\abs@colii@hsize21.7pc%
736
737\RequirePackage[paperwidth=171mm,
738    paperheight=246mm,
739%%  top={26pt+21pt+11pt},
740    top={25.5pt+21pt+11pt},
741    headheight={21pt},% incl. rule
742    headsep={11pt},
743    left={\oddsidemargin},
744    right={\evensidemargin},
745 %   text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
746    marginparsep=0pt,
747    columnsep=0pt,
748    marginparwidth=0pc,
749    bindingoffset=0mm,
750    footskip=48.5pt,
751    bottom={10.5pt+48.5pt},
752    centering]{geometry}
753\else%
754\if@LATOLargeTwoCol%
755\setlength\paperwidth{210mm}%
756\setlength\paperheight{276mm}%
757
758\setlength\typeheight{62\baselineskip}
759\setlength\textheight{53\baselineskip}%
760\addtolength\textheight{-6.9\p@}%
761
762\setlength\typewidth{177.8mm}
763\setlength\textwidth{177.8mm}
764
765%%\addtolength\textwidth{1.8\p@}
766\setlength\normaltextheight{\textheight}
767%
768\setlength\headheight{12.5\p@}%
769\setlength\headsep   {15.2pt}%
770\setlength\topskip   {6\p@}%
771\setlength\splittopskip   {\topskip}
772%
773\setlength\columnsep{1pc}%
774\addtolength\columnsep{6\p@}%
775\setlength\columnseprule{0\p@}
776%
777\newdimen\columnhsizevalue%
778\columnhsizevalue=\textwidth%
779\advance\columnhsizevalue by -\columnsep%
780\divide\columnhsizevalue by 2%
781%
782\setlength\topmargin{2pc}%
783\addtolength\topmargin{5\p@}%
784\setlength\oddsidemargin{45\p@}%
785\setlength\evensidemargin{45\p@}%
786
787\setlength\footskip{51\p@}
788\setlength\maxdepth{4\p@}
789
790\setlength{\marginparsep}{18\p@}%
791\setlength{\marginparwidth}{5mm}%
792
793\setlength\footnotesep{5.75\p@}
794%\setlength{\skip\footins}{12pt plus2pt minus2pt}%
795\setlength{\skip\footins}{18pt plus2pt minus2pt}%
796
797
798\newskip\abs@coli@hsize\abs@coli@hsize12pc%
799\newskip\abs@colii@hsize\abs@colii@hsize29pc%
800
801\RequirePackage[paperwidth=210mm,
802    paperheight=276mm,
803%%  top={26pt+21pt+11pt},
804    top={25.5pt+21pt+11pt},
805    headheight={21pt},% incl. rule
806    headsep={11pt},
807    left={\oddsidemargin},
808    right={\evensidemargin},
809 %   text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
810    marginparsep=0pt,
811    columnsep=0pt,
812    marginparwidth=0pc,
813    bindingoffset=0mm,
814    footskip=48.5pt,twocolumn,columnsep=1pc,
815    bottom={10.5pt+48.5pt},
816    centering]{geometry}
817\else%
818\if@LATOLargeOneCol%
819\setlength\paperwidth{210mm}%
820\setlength\paperheight{276mm}%
821
822\setlength\typeheight{62\baselineskip}
823\setlength\textheight{53\baselineskip}%
824\addtolength\textheight{-6.9\p@}%
825
826\setlength\typewidth{177.8mm}
827\setlength\textwidth{177.8mm}
828
829%%\addtolength\textwidth{1.8\p@}
830\setlength\normaltextheight{\textheight}
831%
832\setlength\headheight{12.5\p@}%
833\setlength\headsep   {15.2pt}%
834\setlength\topskip   {6\p@}%
835\setlength\splittopskip   {\topskip}
836%
837\setlength\columnsep{1pc}%
838\addtolength\columnsep{6\p@}%
839\setlength\columnseprule{0\p@}
840%
841\newdimen\columnhsizevalue%
842\columnhsizevalue=\textwidth%
843\advance\columnhsizevalue by -\columnsep%
844\divide\columnhsizevalue by 2%
845%
846\setlength\topmargin{2pc}%
847\addtolength\topmargin{5\p@}%
848\setlength\oddsidemargin{45\p@}%
849\setlength\evensidemargin{45\p@}%
850
851\setlength\footskip{51\p@}
852\setlength\maxdepth{4\p@}
853
854\setlength{\marginparsep}{18\p@}%
855\setlength{\marginparwidth}{5mm}%
856
857\setlength\footnotesep{5.75\p@}
858%\setlength{\skip\footins}{12pt plus2pt minus2pt}%
859\setlength{\skip\footins}{18pt plus2pt minus2pt}%
860
861\newskip\abs@coli@hsize\abs@coli@hsize12pc%
862\newskip\abs@colii@hsize\abs@colii@hsize29pc%
863
864
865\RequirePackage[paperwidth=210mm,
866    paperheight=276mm,
867%%  top={26pt+21pt+11pt},
868    top={25.5pt+21pt+11pt},
869    headheight={21pt},% incl. rule
870    headsep={11pt},
871    left={\oddsidemargin},
872    right={\evensidemargin},
873   % text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
874    marginparsep=0pt,
875    columnsep=0pt,
876    marginparwidth=0pc,
877    bindingoffset=0mm,
878    footskip=48.5pt,
879    bottom={10.5pt+48.5pt},
880    centering]{geometry}
881\else%
882\if@LATOSmall%
883\setlength\paperwidth{171mm}%
884\setlength\paperheight{246mm}%
885
886\setlength\typeheight{56\baselineskip}
887\setlength\typewidth{177mm}
888%
889\setlength\textheight{47\baselineskip}%
890\addtolength\textheight{-5.1\p@}%
891\setlength\textwidth{33.8pc}
892%\addtolength\textwidth{2\p@}
893\setlength\normaltextheight{\textheight}
894%
895\setlength\headheight{12.5\p@}%
896\setlength\headsep   {21.2pt}%
897\setlength\topskip   {6\p@}%
898\setlength\splittopskip   {\topskip}
899%
900\setlength\columnsep{1pc}%
901\addtolength\columnsep{6\p@}%
902\setlength\columnseprule{0\p@}
903%
904\newdimen\columnhsizevalue%
905\columnhsizevalue=\textwidth%
906\advance\columnhsizevalue by -\columnsep%
907\divide\columnhsizevalue by 2%
908%
909\setlength\topmargin{2pc}%
910%\addtolength\topmargin{4\p@}%
911\setlength\oddsidemargin{40.5\p@}%
912\setlength\evensidemargin{40.5\p@}%
913
914\setlength\footskip{22\p@}
915\setlength\maxdepth{4\p@}
916
917\setlength{\marginparsep}{18\p@}%
918\setlength{\marginparwidth}{5mm}%
919
920\setlength\footnotesep{5.75\p@}
921\setlength{\skip\footins}{12pt plus2pt minus2pt}%
922%\setlength{\skip\footins}{22pt plus2pt minus2pt}%
923
924\setlength\parindent{15pt}% \z@
925
926\setlength\lineskip{1\p@}
927\setlength\normallineskip{1\p@}
928\renewcommand\baselinestretch{}
929\parskip=0pt%
930
931\newskip\abs@coli@hsize\abs@coli@hsize11pc%
932\newskip\abs@colii@hsize\abs@colii@hsize21.7pc%
933
934\RequirePackage[paperwidth=171mm,
935    paperheight=246mm,
936%%  top={26pt+21pt+11pt},
937    top={25.5pt+21pt+11pt},
938    headheight={21pt},% incl. rule
939    headsep={11pt},
940    left={\oddsidemargin},
941    right={\evensidemargin},
942 %   text={176.5mm,666.5pt}, %%(60 x 11 + 9 (point size) = 669pt)
943    marginparsep=0pt,
944    columnsep=0pt,
945    marginparwidth=0pc,
946    bindingoffset=0mm,
947    footskip=48.5pt,
948    bottom={10.5pt+48.5pt},
949    centering]{geometry}
950\else%
951\fi\fi\fi\fi\fi\fi%
952
953
954%
955\newdimen\parindentvalue%
956\parindentvalue=1em%
957%
958\setlength\parindent{\parindentvalue}%
959%
960\ifpdf%
961    \global\@cropmarksonfalse%
962\else%
963    \if@cropmarkson%
964        \RequirePackage{crop}%
965        \if@croppage%
966            \CROP@size{\paperwidth}{\paperheight}%
967        \fi%
968    \fi%
969\fi%
970
971%
972% Footnotes
973%
974%%\renewcommand\thefootnote{\@fnsymbol\c@footnote}%
975
976%
977
978
979%
980%%%%%%%%%%%%%%%%%%%%%%%%%%%% Pagination Settings %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
981%
982% Line spacing
983\setlength\lineskip{0\p@}%
984\setlength\normallineskip{0\p@}%
985\renewcommand\baselinestretch{}%
986\parskip=\z@%
987
988\pagenumbering{arabic}%
989\sloppy%
990\frenchspacing%
991%%\flushbottom
992
993%%% special parameters for TeX
994\adjdemerits=100
995\linepenalty=100
996
997
998% Page break penalties
999\@lowpenalty   51
1000\@medpenalty  151
1001\@highpenalty 301
1002
1003% Disallow widows and orphans
1004\clubpenalty 10000
1005\widowpenalty 10000
1006
1007% Disable page breaks before equations, allow pagebreaks after
1008% equations and discourage widow lines before equations.
1009\displaywidowpenalty 100
1010\predisplaypenalty   10000
1011\postdisplaypenalty  0
1012
1013% Set these global demerits
1014\doublehyphendemerits 1000000% corresponds to badness 800
1015\finalhyphendemerits  1000000% corresponds to badness 1000
1016
1017% Allow loose lines rather than overfull lines
1018\vbadness=9999%
1019\tolerance=9999%
1020
1021
1022% Allow breaking the page in the middle of a paragraph
1023\interlinepenalty 0%
1024
1025% Disallow breaking the page after a hyphenated line
1026\brokenpenalty 10000%
1027
1028% Hyphenation; don't split words into less than three characters
1029\lefthyphenmin=3%
1030\righthyphenmin=3%
1031
1032% Float placement parameters
1033
1034% The total number of floats that can be allowed on a page.
1035\setcounter{totalnumber}{10}%
1036
1037% The maximum number of floats at the top and bottom of a page.
1038\setcounter{topnumber}{3}%
1039\setcounter{bottomnumber}{3}%
1040
1041% The maximum part of the top or bottom of a text page that can be
1042% occupied by floats. This is set so that at least four lines of text
1043% fit on the page.
1044\renewcommand\topfraction{.921}%
1045\renewcommand\bottomfraction{.921}%
1046
1047% The minimum amount of a text page that must be occupied by text.
1048% This should accomodate four lines of text.
1049%%\renewcommand\textfraction{.13}%
1050\renewcommand\textfraction{.1}%
1051
1052% The minimum amount of a float page that must be occupied by floats.
1053%%\renewcommand\floatpagefraction{.887}%
1054\renewcommand\floatpagefraction{.95}%
1055
1056% The same parameters repeated for double column output
1057%%\renewcommand\dbltopfraction{.88}%
1058%%\renewcommand\dblfloatpagefraction{.88}%
1059\renewcommand\dbltopfraction{.95}%
1060\renewcommand\dblfloatpagefraction{.95}%
1061
1062% Space between floats
1063\setlength\floatsep{24\p@ \@plus 2.875\p@ \@minus 1.4375\p@}%
1064
1065% Space between floats and text
1066\setlength\textfloatsep{24\p@ \@plus 2.875\p@ \@minus 1.4375\p@}%
1067%
1068%%\def\resettextfloatsep{\makeatletter\setlength\textfloatsep{13.5\p@ \@plus 2.875\p@ \@minus 1.4375\p@}\makeatother}%
1069%
1070% Space above and below an inline figure
1071\setlength\intextsep{24\p@ \@plus 2.875\p@ \@minus 1.4375\p@}%
1072
1073% For double column floats
1074\setlength\dblfloatsep{24\p@ \@plus 2.875\p@ \@minus 1.4375\p@}%
1075\setlength\dbltextfloatsep{24\p@ \@plus 2.875\p@ \@minus 1.4375\p@}%
1076
1077\hyphenation{Figure Figures Table Tables Equation Equations Section Sections Appendix Theorem Lemma Proposition Corollary}%
1078\hyphenation{Claim Conjecture Property Remark Problem Example Definition Algorithm Assumption Axiom Case Hypotheses Note Proof}%
1079
1080%%% miscellaneous macros %%%
1081\def\zz#1{\vphantom{#1}}%
1082\def\nobreaktie{\penalty\@M\hbox{\ }} % tie
1083
1084%
1085%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Draftrules %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1086%
1087%%% To print grid lines on all pages
1088\newdimen\pageheight\global\pageheight=\textheight%
1089\newcount\rulecount\rulecount=1%
1090%
1091\newdimen\leftcolrulepos
1092\newdimen\rightcolrulepos
1093%
1094\edef\slugtoday{\two@digits{\the\day}/\two@digits{\the\month}/\the\year}%
1095%
1096\def\PrintGridLines{%
1097{\color{black!10}%
1098    {%
1099    \loop%
1100    \ifdim\pageheight>0pt%
1101        \ifnum\rulecount=1%
1102            \advance\pageheight by -1.5pt%
1103        \fi%
1104        \AtTextUpperLeft{%x
1105          \put(0,\LenToUnit{-\pageheight}){%
1106            \line(1,0){\LenToUnit{\leftcolrulepos}}}}%
1107%%14Mar16%%
1108        \AtTextUpperLeft{%
1109        \put(\LenToUnit{\rightcolrulepos},\LenToUnit{-\pageheight}){%
1110           \line(1,0){\LenToUnit{\leftcolrulepos}}}}%
1111        \advance\pageheight-11.5pt%baseline
1112        \advance\rulecount\@ne%
1113    \repeat%
1114}}}%
1115%
1116\RequirePackage{showframe}
1117\if@draftruleson%
1118%
1119\renewcommand\ShowFramePicture{%
1120\leftcolrulepos\columnwidth%
1121\rightcolrulepos\columnwidth%
1122\advance\rightcolrulepos by \columnsep%
1123  \begingroup
1124    \normalcolor\thinlines%
1125    \put(0,0){
1126%    \if@watermarkon\AtTextUpperLeft{%
1127%      \put(\LenToUnit{\textwidth},41){\llap{\fontsize{8}{10}\selectfont {\rm JrnlID\ \@JrnlID\_ArtID \@artid\_Proof\#1 - \slugtoday}}}}\fi%
1128    \AtTextLowerLeft{%
1129      \framebox(\LenToUnit{\textwidth},\LenToUnit{\textheight}){}}%
1130      \linethickness{.1pt}%
1131      \PrintGridLines%
1132    \AtTextLowerLeft{%
1133      \put(0,\LenToUnit{-\footskip}){%
1134        \line(1,0){\LenToUnit{\textwidth}}}}%
1135        \AtTextLowerLeft{%
1136          \put(\LenToUnit{\columnwidth},0){%
1137            \line(0,1){\LenToUnit{\textheight}}}}%
1138            %%For marginpar
1139%%14Mar16%%
1140        \AtTextLowerLeft{%
1141          \put(\LenToUnit{\rightcolrulepos},0){%
1142            \line(0,1){\LenToUnit{\textheight}}}}%
1143    \AtTextLowerLeft{%
1144      \@tempdima=\textwidth\advance\@tempdima\marginparsep%
1145      \if@twoside%
1146        \ifodd\c@page
1147          \if@mparswitch
1148            \@tempdima=-\marginparsep\advance\@tempdima-\marginparwidth%
1149          \fi
1150        \else%
1151          \@mparswitchfalse
1152          \if@mparswitch
1153            \@tempdima=-\marginparsep\advance\@tempdima-\marginparwidth%
1154          \fi
1155        \fi%
1156      \fi%
1157    }}%
1158  \endgroup
1159}%
1160\else
1161\renewcommand\ShowFramePicture{%
1162\leftcolrulepos\columnwidth%
1163\rightcolrulepos\columnwidth%
1164\advance\rightcolrulepos by \columnsep%
1165  \begingroup
1166    \normalcolor\thinlines%
1167    \put(0,0){
1168%    \if@watermarkon\AtTextUpperLeft{%
1169%      \put(\LenToUnit{\textwidth},41){\llap{\fontsize{8}{10}\selectfont {\rm JrnlID\ \@JrnlID\_ArtID \@artid\_Proof\#1 - \slugtoday}}}}\fi%
1170    }%
1171  \endgroup
1172}%
1173\fi%
1174
1175%% Miscellaneous macros %%
1176
1177\newdimen\artopleftskipdim%
1178\artopleftskipdim=36.25pt%
1179
1180\def\hb{\hfill\break}%
1181\def\uns{\ifmmode\,\else$\,$\fi}%
1182\def\raggedcenter{\leftskip=0pt plus 0.5fil\rightskip=0pt plus 0.5fil\parfillskip=0pt}%
1183\def\artopraggedright{\leftskip=\artopleftskipdim\rightskip=0pt plus 1fil\parfillskip=0pt\relax}%
1184
1185%% Metadata Info %%
1186
1187\def\@artid{xx}% pub-id
1188\def\@jname{xxx}%
1189\def\@jvol{\emph{xxx}}%
1190\def\@eissn{xx}%
1191\def\@pissn{xx}%
1192%%\def\@copyyear{xxxx}%
1193\def\copyyr{xxxx}%
1194\def\@jnlyear{xxxx}%
1195\def\@doi{}%
1196\def\@pubname{ }%
1197\def\@arteditor{}%
1198
1199\def\artid#1{\gdef\@artid{#1}}%
1200\def\@jid{}%
1201\def\jid#1{\gdef\@jid{#1}}%
1202\def\jname#1{\gdef\@jname{#1}}%
1203\def\jvol#1{\gdef\@jvol{#1}}%
1204\def\eissn#1{\gdef\@eissn{#1}}%
1205\def\pissn#1{\gdef\@pissn{#1}}%
1206\def\copyyear#1{\gdef\copyyr{#1}}%
1207\def\jyear#1{%%\gdef\copyyear{#1}
1208\gdef\@jnlyear{#1}}%
1209\def\doi#1{\gdef\@doi{#1}}%
1210\def\pubname#1{\gdef\@pubname{#1}}%
1211%%\def\arteditor#1{\gdef\@arteditor{\acadeditorfont Academic Editor:\ #1}}%
1212%%\def\aceditor#1{\gdef\@arteditor{\acadeditorfont Academic Editor:\ #1}}%
1213
1214\def\jmonth#1{\gdef\@jmonth{#1}}%
1215
1216
1217\def\@copyeditor{}%
1218\def\copyeditor#1{\gdef\@copyeditor{#1}}%
1219
1220\def\orcid[#1]#2#3{}%
1221\newcommand{\orgdiv}[1]{#1}%
1222\newcommand{\orgname}[1]{#1}%
1223\newcommand{\orgaddress}[1]{#1}%
1224\newcommand{\street}[1]{#1}%
1225\newcommand{\postcode}[1]{#1}%
1226\newcommand{\city}[1]{#1}%
1227\newcommand{\state}[1]{#1}%
1228\newcommand{\country}[1]{#1}%
1229
1230%%\def\PI#1{{#1}}%
1231%%\def\licenseVal#1{}%
1232
1233\def\@copyname{}%
1234\newcommand\copyrightinfo[2][]{\if!#2!\gdef\@copyname{}\else\gdef\@copyname{\copyrightfont#2\ \@licenseVal}\fi}%
1235
1236%% Macros for firstpage %%
1237
1238\def\startpage#1{%
1239  \gdef\temp{#1}%
1240  \ifx\temp\@empty%
1241    \def\@firstpage{1}%
1242  \else%
1243    \def\@firstpage{#1}%
1244    \setcounter{page}{#1}%
1245    \setcounter{spagecounter}{#1}%
1246  \fi%
1247}%
1248\def\@firstpage{}
1249
1250\def\endpage#1{\gdef\@endpage{#1}}
1251\def\@endpage{}
1252
1253%
1254%% Cross Link for Author & Address
1255%
1256\def\jmkLabel#1{\@bsphack\protected@write\@auxout{}{\string\Newlabel{#1}{\@currentlabel}}\@esphack}%
1257\def\Newlabel#1#2{\expandafter\xdef\csname X@#1\endcsname{#2}}%
1258\def\jmkRef#1{\@ifundefined{X@#1}{0}{\csname X@#1\endcsname}}%
1259
1260%
1261%%%%%%%%%%%%%%%%%% Updation for xml conversion
1262%
1263\gdef\@FirstPg{}%
1264\gdef\@LastPg{}%
1265%
1266\def\FirstPg#1{\if!#1!\else\gdef\@FirstPg{#1}\fi}%
1267\def\LastPg#1{\if!#1!\else\gdef\@LastPg{#1}\fi}%
1268
1269%\newcount\LastAQCnt%
1270
1271\newwrite\@xmlpage
1272\openout\@xmlpage=\jobname.pag
1273\newcounter{spagecounter}
1274\newcounter{lpagecounter}
1275%%\AtBeginDocument{\setcounter{spagecounter}{\c@page}}
1276\AtEndDocument{\setcounter{lpagecounter}{\c@page}%
1277\addtocounter{lpagecounter}{-1}%
1278\immediate\write\@xmlpage{\string\FirstPg{\thespagecounter}\string\LastPg{\thelpagecounter}}%
1279\immediate\write\@auxout{\string\FirstPg{\thespagecounter}\string\LastPg{\thelpagecounter}}%
1280\immediate\closeout\@xmlpage%
1281}%
1282
1283%% Fonts definitions %%
1284
1285\if@font@stix%
1286  \def\footnotetextfont{\rmfamily\fontsize{8bp}{10bp}\selectfont}\else%
1287  %%
1288  \def\footnotetextfont{\rmfamily\fontsize{6bp}{8bp}\selectfont}
1289\fi%
1290%
1291
1292
1293%\usepackage{microtype}
1294%\DisableLigatures[f]{encoding = *, family = * }
1295
1296\newcommand{\sbdefault}{sb}
1297\DeclareRobustCommand\sbseries{\not@math@alphabet\sbseries\mathbf\fontseries\sbdefault\selectfont}
1298\DeclareTextFontCommand{\textsb}{\sbseries}
1299\DeclareRobustCommand\sfitseries{\not@math@alphabet\sfitseries\normalfont\fontseries{m}\fontshape{it}\selectfont}
1300\DeclareTextFontCommand{\textsfi}{\sfitseries}
1301\DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
1302\DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
1303\DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
1304\DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
1305\DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
1306\DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
1307\DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
1308\DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
1309\DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
1310\if@exactptsize%
1311  \def\set@fontsize#1#2#3{%
1312    \@defaultunits\@tempdimb#2bp\relax\@nnil%
1313    \edef\f@size{\strip@pt\@tempdimb}%
1314    \@defaultunits\@tempskipa#3bp\relax\@nnil%
1315    \edef\f@baselineskip{\the\@tempskipa}%
1316    \edef\f@linespread{#1}%
1317    \let\baselinestretch\f@linespread%
1318    \def\size@update{%
1319      \baselineskip\f@baselineskip\relax%
1320      \baselineskip\f@linespread\baselineskip%
1321      \normalbaselineskip\baselineskip%
1322      \setbox\strutbox\hbox{\vrule\@height.7\baselineskip\@depth.3\baselineskip\@width\z@}%
1323      \let\size@update\relax%
1324    }%
1325  }%
1326\fi%
1327\renewcommand\normalsize{%
1328  \if@font@stix%
1329    \@setfontsize\normalsize{10bp}{13bp}%
1330  \else%
1331    \@setfontsize\normalsize{8bp}{13bp}%
1332  \fi%
1333  \abovedisplayskip 5.5\p@ \@plus2\p@ \@minus0\p@
1334  \abovedisplayshortskip \z@ \@plus3\p@%
1335  \belowdisplayshortskip 3\p@ \@plus3\p@ \@minus3\p@%
1336  \belowdisplayskip \abovedisplayskip%
1337  \let\@listi\@listI}%
1338\newcommand{\textbaselineskip}{\baselineskip13bp}%
1339\normalsize\baselineskip13bp%
1340\newcommand\medsize{%
1341  \@setfontsize\small\@viipt{9}%
1342  \abovedisplayskip 5\p@ \@plus3\p@ \@minus4\p@
1343  \abovedisplayshortskip \z@ \@plus2\p@
1344  \belowdisplayshortskip 3\p@ \@plus2\p@ \@minus2\p@
1345  \def\@listi{%
1346    \leftmargin\leftmargini
1347    \topsep 4\p@ \@plus2\p@ \@minus2\p@
1348    \parsep 2\p@ \@plus\p@ \@minus\p@
1349    \itemsep \parsep}%
1350  \belowdisplayskip\abovedisplayskip}
1351\renewcommand\small{%
1352  \@setfontsize\small\@vpt{7}%
1353  \abovedisplayskip 5\p@ \@plus3\p@ \@minus4\p@
1354  \abovedisplayshortskip \z@ \@plus2\p@
1355  \belowdisplayshortskip 3\p@ \@plus2\p@ \@minus2\p@
1356  \def\@listi{%
1357    \leftmargin\leftmargini
1358    \topsep 4\p@ \@plus2\p@ \@minus2\p@
1359    \parsep 2\p@ \@plus\p@ \@minus\p@
1360    \itemsep \parsep}%
1361  \belowdisplayskip \abovedisplayskip}
1362\renewcommand\footnotesize{%
1363  \@setfontsize\footnotesize{7.5}{9}%
1364  \abovedisplayskip 5\p@ \@plus2\p@ \@minus4\p@
1365  \abovedisplayshortskip \z@ \@plus\p@
1366  \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
1367  \def\@listi{%
1368    \leftmargin\leftmargini
1369    \topsep 3\p@ \@plus\p@ \@minus\p@
1370    \parsep 2\p@ \@plus\p@ \@minus\p@
1371    \itemsep \parsep}%
1372  \belowdisplayskip \abovedisplayskip}
1373\renewcommand\scriptsize{\@setfontsize\scriptsize\@ixpt\@ixpt}
1374\newcommand\scrisize{\@setfontsize\scrisize{9.3}{9}}
1375\renewcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
1376\renewcommand\large{\@setfontsize\large{12}{14}}
1377\newcommand\larg{\@setfontsize\larg{11}{13}}
1378\renewcommand\Large{\@setfontsize\Large{16}{18}}
1379\newcommand\fpe{\@setfontsize\fpe{19}{21}}
1380\renewcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
1381\newcommand\rke{\@setfontsize\rke{10}{10}}
1382\newcommand\ke{\@setfontsize\ke{9}{10}}
1383\newcommand\lke{\@setfontsize\lke{8.4}{8.25}}
1384\newcommand\ffe{\@setfontsize\ffe{9}{12}}
1385\newcommand\adf{\@setfontsize\adf{10.3}{12}}
1386\newcommand\kes{\@setfontsize\kes{8}{9.5}}
1387\newcommand\bis{\@setfontsize\bis{9}{10}}
1388\newcommand\tdf{\@setfontsize\tdf{14}{16}}
1389\newcommand\svo{\@setfontsize\svo{14.5}{16}}
1390\renewcommand\huge{\@setfontsize\huge\@xxpt{25}}
1391\renewcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
1392%
1393%\DeclareMathSizes{24bp}{24}{16.06}{10}%
1394%\DeclareMathSizes{15bp}{15}{10}{5}%
1395%\DeclareMathSizes{9bp}{9}{6.02}{5.5}
1396%\DeclareMathSizes{8bp}{8}{5.35}{4.1}%
1397%\DeclareMathSizes{7.5bp}{7.5}{5.35}{4.1}%
1398%%
1399%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1400%% FONT DECLARATION Ends %%
1401%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1402
1403%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1404%% FONTS / COLOR DECLARATION Starts %%
1405%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1406%%
1407\def\dummyalphabet{\vphantom{abcdefghijklmnopqrstuvwxyz0123456789}}
1408%
1409\sodef\letterspacetwty{}{.2em}{.4em plus1em}{.5em plus 1em minus1em }
1410%
1411\definecolor{Black}{gray}{0}
1412\definecolor{White}{cmyk}{0.0,0.0,0.0,0.0}
1413\definecolor{Tcolor}{cmyk}{1,0.8,0.0,0.0}%
1414\definecolor{Jcolor}{cmyk}{0.0,0.85,1,0.0}%
1415\definecolor{rgray}{cmyk}{0.0,0.0,0.0,0.4}%
1416\definecolor{lightgray}{cmyk}{0.0,0.0,0.0,0.2}
1417\definecolor{Blue}{cmyk}{1,0.77,0.0,0.0}
1418%
1419\gdef\@stix@font@defn{%
1420  %
1421%  \def\infoboxfont{\fontfamily{tim}\fontsize{8}{8}\selectfont}%
1422  %
1423%  \def\watermarkfont{\reset@font\fontfamily{\ffdefault}\fontsize{45}{45}\bfseries\selectfont}
1424  %
1425  \def\pagenumfont{\rmfamily\fontsize{7}{9}\bfseries\selectfont}%
1426  \def\cnmpagenumfont{\rmfamily\fontsize{7}{9}\selectfont\bfseries}%
1427%%%  \def\runningheadfont{\rmfamily\fontsize{7}{9}\scshape\selectfont}%
1428  \def\runningheadfont{\rmfamily\fontsize{7}{9}\selectfont}%New updations 19aug2016
1429  \def\runningfootfont{\rmfamily\fontsize{7}{9}\selectfont}%
1430  \def\titlepageheadfont{\rmfamily\fontsize{7}{9}\selectfont}%
1431  %
1432  \def\BRarttypefont{\reset@font\rmfamily\fontsize{18}{18}\fontseries{b}\selectfont}%
1433  \def\pubheadfont{\reset@font\rmfamily\fontsize{7}{9}\fontseries{b}\selectfont}%
1434  \def\arttypefont{\rmfamily\fontsize{9}{9}\fontseries{b}\selectfont}%
1435  \def\SParttypefont{\rmfamily\fontsize{9}{12}\fontseries{b}\selectfont}%
1436  \def\titlefont{\rmfamily\fontsize{18}{23}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1437  \def\subtitlefont{\rmfamily\fontsize{16}{21}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1438  \def\Authorfont{\rmfamily\fontsize{12}{18}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1439  \def\absheadfont{\hsize\abs@colii@hsize\rmfamily\fontsize{10}{10}\fontseries{b}\selectfont\bfseries\leftskip7\p@\rightskip\leftskip}% LN20FEB2016
1440  \def\legalstatementfont{\rmfamily\fontsize{7}{10}\selectfont\leftskip0\p@\rightskip\leftskip}%
1441    \def\BRsectionfont{\rmfamily\fontsize{10}{16}\fontseries{b}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1442  \def\sectionfont{\rmfamily\fontsize{12}{13}\fontseries{b}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1443  \def\subsectionfont{\rmfamily\fontsize{12}{13}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1444  \def\subsubsectionfont{\rmfamily\fontsize{12}{13}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1445  \def\paragraphfont{\rmfamily\fontsize{10.5}{13}\fontseries{b}\selectfont}%
1446  \def\subparagraphfont{\rmfamily\fontsize{10}{13}\fontseries{b}\selectfont}%
1447  \def\appsectionfont{\rmfamily\fontsize{10}{13}\fontseries{b}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1448  %
1449  \def\boxheadfont{\rmfamily\fontsize{10}{13}\fontseries{b}\selectfont}
1450  \def\boxtitlefont{\rmfamily\fontsize{10}{13}\bfseries\selectfont}
1451  %
1452  \def\GnSabsfont{\rmfamily\fontsize{9}{15}\selectfont}%
1453  \def\GnSabsfootfont{\reset@font\rmfamily\fontsize{14}{0}\bfseries\selectfont}%
1454  %
1455  \def\suppinfofont{\noindent\rmfamily}%
1456  \def\suppinfoheadfont{\noindent\fontsize{10}{13}\fontseries{b}\selectfont}%
1457  \def\suppinfocaptionfont{\noindent\rmfamily}%
1458  %
1459  \def\figurenumfont{\rmfamily\fontsize{9bp}{12}\fontseries{b}\selectfont}%
1460  \def\figurecaptionfont{\rmfamily\fontsize{8.5bp}{12}\selectfont}
1461  \def\bwfiginfofont{\fontfamily{tim}\fontsize{10bp}{10bp}\selectfont}%
1462  %
1463  \def\tablenumfont{\rmfamily\fontsize{9bp}{11.5bp}\fontseries{b}\selectfont}%
1464  \def\keypointheadfont{\reset@font\rmfamily\fontsize{10bp}{13bp}\fontseries{b}\selectfont}%
1465  \def\tablecaptionfont{\rmfamily\fontsize{8.5bp}{12bp}\selectfont}
1466  \def\tablebodyfont{\rmfamily\fontsize{8.5bp}{11.5bp}\selectfont}
1467  \def\tablecolheadfont{\rmfamily\fontsize{8.5bp}{11.5bp}\selectfont\bfseries}
1468  \def\tablefootnotefont{\rmfamily\fontsize{7.5bp}{10.5bp}\selectfont}
1469  %
1470%%  \def\footnotetextfont{\rmfamily\fontsize{8bp}{10bp}\selectfont}
1471  %
1472  \def\listfont{\normalsize}%
1473  %
1474  \def\refheadfont{\fontsize{10}{13}\fontseries{b}\selectfont}
1475  \def\reflistfont{\fontsize{8.5}{11.5}\selectfont}
1476  %
1477  \def\biographyheadfont{\fontsize{10}{13}\fontseries{b}\selectfont}
1478  %
1479  \def\ackheadfont{\fontsize{10}{13}\selectfont\fontseries{b}\selectfont}
1480  \def\addressfont{\hsize\abs@coli@hsize\rmfamily\fontsize{8}{11}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1481  \def\corresfont{\hsize\abs@coli@hsize\rmfamily\fontsize{8}{11}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1482  \def\FIfont{\hsize\abs@coli@hsize\rmfamily\fontsize{8}{11}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1483  \def\JELfont{\hsize\abs@coli@hsize\rmfamily\fontsize{8}{11}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1484  \def\keywordsheadfont{\hsize\abs@colii@hsize\rmfamily\fontsize{8}{8}\selectfont\ifAbstractexist\leftskip7\p@\rightskip\leftskip\fi}%
1485  \def\abstractfont{\hsize\abs@colii@hsize\rmfamily\fontsize{10}{15}\selectfont\leftskip7\p@\rightskip\leftskip}%
1486  \def\keywordsfont{\rmfamily\fontsize{8}{13}\selectfont\ifAbstractexist\leftskip7\p@\rightskip\leftskip\fi}%
1487  %
1488}%
1489\gdef\@lato@font@defn{%
1490  %
1491%  \def\infoboxfont{\fontfamily{tim}\fontsize{8}{8}\selectfont}%
1492  %
1493%  \def\watermarkfont{\reset@font\fontfamily{\ffdefault}\fontsize{45}{45}\bfseries\selectfont}
1494  %
1495  \def\pagenumfont{\rmfamily\fontsize{7}{9}\bfseries\selectfont}%
1496  \def\cnmpagenumfont{\rmfamily\fontsize{7}{9}\selectfont\bfseries}%
1497%%%  \def\runningheadfont{\rmfamily\fontsize{7}{9}\scshape\selectfont}%
1498  \def\runningheadfont{\rmfamily\fontsize{7}{9}\selectfont}%New updations 19aug2016
1499  \def\runningfootfont{\rmfamily\fontsize{7}{9}\selectfont}%
1500  \def\titlepageheadfont{\rmfamily\fontsize{7}{9}\selectfont}%
1501  %
1502  \def\BRarttypefont{\reset@font\rmfamily\fontsize{18}{18}\fontseries{b}\selectfont}%
1503  \def\pubheadfont{\reset@font\rmfamily\fontsize{7}{9}\fontseries{b}\selectfont}%
1504  \def\arttypefont{\rmfamily\fontsize{9}{9}\fontseries{b}\selectfont}%
1505  \def\SParttypefont{\rmfamily\fontsize{9}{12}\fontseries{b}\selectfont}%
1506  \def\titlefont{\rmfamily\fontsize{18}{23}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil\let\mathbcal\titmathbcal}%
1507  \def\subtitlefont{\rmfamily\fontsize{16}{21}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1508  \def\Authorfont{\rmfamily\fontsize{12}{18}\selectfont\bfseries\leftskip\z@\rightskip\z@ plus1fil}%
1509  \def\addressfont{\hsize\abs@coli@hsize\rmfamily\fontsize{7}{10}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1510  \def\corresfont{\hsize\abs@coli@hsize\rmfamily\fontsize{7}{10}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1511  %
1512  \def\FIfont{\hsize\abs@coli@hsize\rmfamily\fontsize{7}{10}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1513  \def\JELfont{\hsize\abs@coli@hsize\rmfamily\fontsize{7}{10}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1514  \def\abstractfont{\hsize\abs@colii@hsize\rmfamily\fontsize{8}{13}\selectfont\leftskip7\p@\rightskip\leftskip}%
1515  \def\keywordsheadfont{\hsize\abs@colii@hsize\rmfamily\fontsize{7}{7}\selectfont\ifAbstractexist\leftskip7\p@\rightskip\leftskip\fi}%
1516  \def\absheadfont{\hsize\abs@colii@hsize\rmfamily\fontsize{10}{10}\fontseries{b}\selectfont\bfseries\leftskip7\p@\rightskip\leftskip}% LN20FEB2016
1517  \def\keywordsfont{\rmfamily\fontsize{8}{13}\selectfont\ifAbstractexist\leftskip7\p@\rightskip\leftskip\fi}%
1518  \def\legalstatementfont{\rmfamily\fontsize{7}{10}\selectfont\leftskip0\p@\rightskip\leftskip}%
1519  %
1520  \def\BRsectionfont{\rmfamily\fontsize{10}{16}\fontseries{b}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1521  \def\sectionfont{\rmfamily\fontsize{10}{13}\fontseries{b}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1522  \def\subsectionfont{\rmfamily\fontsize{10}{14}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1523  \def\subsubsectionfont{\rmfamily\fontsize{9}{12.5}\bfseries\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1524  \def\paragraphfont{\rmfamily\fontsize{8.5}{13}\fontseries{b}\selectfont}%
1525  \def\subparagraphfont{\rmfamily\fontsize{8.5}{13}\fontseries{b}\selectfont}%
1526  \def\appsectionfont{\rmfamily\fontsize{8}{11}\fontseries{b}\selectfont\leftskip\z@\rightskip\z@ plus1fil}%
1527  %
1528  \def\boxheadfont{\rmfamily\fontsize{8}{10}\fontseries{b}\selectfont}
1529  \def\boxtitlefont{\rmfamily\fontsize{8}{10}\bfseries\selectfont}
1530  %
1531  \def\GnSabsfont{\rmfamily\fontsize{9}{15}\selectfont}%
1532  \def\GnSabsfootfont{\reset@font\rmfamily\fontsize{14}{0}\bfseries\selectfont}%
1533  %
1534  \def\suppinfofont{\noindent\rmfamily}%
1535  \def\suppinfoheadfont{\noindent\fontsize{8}{13}\fontseries{b}\selectfont}%
1536  \def\suppinfocaptionfont{\noindent\rmfamily}%
1537  %
1538  \def\figurenumfont{\rmfamily\fontsize{7bp}{9}\fontseries{b}\selectfont}%
1539  \def\figurecaptionfont{\rmfamily\fontsize{8bp}{11}\selectfont}
1540  \def\bwfiginfofont{\fontfamily{tim}\fontsize{10bp}{10bp}\selectfont}%
1541  %
1542  \def\tablenumfont{\rmfamily\fontsize{7bp}{9bp}\fontseries{b}\selectfont}%
1543  \def\keypointheadfont{\reset@font\rmfamily\fontsize{9bp}{11bp}\fontseries{b}\selectfont}%
1544  \def\tablecaptionfont{\rmfamily\fontsize{8bp}{9bp}\selectfont}
1545  \def\tablebodyfont{\rmfamily\fontsize{7.5bp}{9bp}\selectfont}
1546  \def\tablecolheadfont{\rmfamily\fontsize{7.5bp}{9bp}\selectfont\bfseries}
1547  \def\tablefootnotefont{\rmfamily\fontsize{7.5bp}{9bp}\selectfont}
1548  %
1549%%  \def\footnotetextfont{\rmfamily\fontsize{8bp}{10bp}\selectfont}
1550  %
1551  \def\listfont{\normalsize}%
1552  %
1553  \def\refheadfont{\fontsize{8}{10}\fontseries{b}\selectfont}
1554  \def\reflistfont{\fontsize{7.5}{10}\selectfont}
1555  %
1556  \def\biographyheadfont{\fontsize{8}{10}\fontseries{b}\selectfont}
1557  %
1558  \def\ackheadfont{\fontsize{8}{9}\selectfont\fontseries{b}\selectfont}
1559  %
1560}%
1561%%
1562\gdef\largedesign@lato@font{\@lato@font@defn}%
1563%%
1564\gdef\largedesign@stix@font{\@stix@font@defn%
1565}%
1566%%
1567\gdef\smalldesign@lato@font{\@lato@font@defn}%
1568%%
1569\gdef\smalldesign@stix@font{\@stix@font@defn}%
1570
1571
1572\if@large@design%
1573  \if@font@stix%
1574    \largedesign@stix@font%
1575  \else%
1576    \largedesign@lato@font%
1577  \fi%
1578\else%
1579  \if@font@stix%
1580    \smalldesign@stix@font%
1581  \else%
1582    \smalldesign@lato@font%
1583  \fi%
1584\fi%
1585%
1586\def\listfont{\reset@font\fontfamily{\rmdefault}\normalsize}%
1587\def\tablistfont{\tablebodyfont}%
1588
1589%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1590%% article front matter elements %%
1591%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1592
1593%% article opening Running headers %%
1594
1595\def\artoprunningheaders{\vbox{\OPRHfont\raggedright%
1596\@pubname\par%
1597\@jname\par%
1598Volume\ \@jvol, Article ID\ \@artid, \thepage~pages\par%
1599%%\if@hyperrefon\urlstyle{same}\burlalt{http://dx.doi.org/\@doi}{http://dx.doi.org/\@doi}\else{http://dx.doi.org/\@doi}\fi% this line is not required in the output
1600}}
1601
1602\def\nullartoprunningheaders{\vbox{\OPRHfont\raggedright%
1603\phantom{\@pubname}\par%
1604\phantom{\@jname}\par%
1605\phantom{Volume\ \@jvol, Article ID\ \@artid, \thepage pages}\par%
1606%%\if@hyperrefon\urlstyle{same}\burlalt{http://dx.doi.org/\@doi}{http://dx.doi.org/\@doi}\else{http://dx.doi.org/\@doi}\fi%
1607}}
1608
1609%% article category %%
1610
1611\def\@DocHead{}%
1612\def\articletype#1{\gdef\@DocHead{\hsize=\textwidth\arttypefont\bfseries\uline{\uppercase{#1}}}}%
1613
1614%% article title %%
1615
1616\def\titlemark#1{\gdef\@titlemark{#1}}%
1617\gdef\@titlemark{}%
1618
1619%%\def\titlefootnotemark#1{\textsuperscript{\hbox{\reset@font\fontsize{12.5}{0}\selectfont$\@fnsymbol{#1}$}}}%
1620\def\titlefootnotemark#1{\textsuperscript{$\@fnsymbol{#1}$}}%
1621
1622\def\title#1{\gdef\@title{\hsize=\textwidth%
1623\titlefont#1\addcontentsline{toc}{chapter}{#1}% for bookmarks
1624}}%
1625\def\shrttitle#1{\gdef\@shrttitle{#1}}\shrttitle{}%
1626
1627%% article authors %%
1628
1629\let\sep\@empty%
1630\let\authorsep\@empty%
1631\let\emailsep\@empty%
1632
1633\newcount\aucount%
1634\newcount\corrauthcount%
1635
1636%%\def\au@and{\unskip\advance\punctcount by -1, }%
1637\def\au@and{\ifnum\punctcount=1\else\ifnum\punctcount=2\ and\advance\punctcount by -1\else\advance\punctcount by -1 \fi \fi}%
1638\def\artauthors{}
1639
1640\newif\if@auemail%
1641
1642\newcommand{\thecorrauthcount}{\the\corrauthcount}%
1643\newcommand{\theaucount}{\the\aucount}%
1644\newcommand{\thefnmCnt}{\the\fnmCnt}%
1645
1646\newcount\authfncnt%
1647\authfncnt=0%
1648
1649\newcount\authfnTmpCnt%
1650\authfnTmpCnt=1%
1651%
1652\gdef\StoreAuthFnText#1#2{%
1653\edef\GetRoman{\romannumeral#1}%
1654\expandafter\gdef\csname\GetRoman StoreAuthFnTxt\endcsname{#2}%
1655}%
1656%
1657\def\authfndefns{%
1658\loop\ifnum\authfncnt>0%
1659   \csname\romannumeral\authfnTmpCnt StoreAuthFnTxt\endcsname\par%
1660   \StepDownCounter{\authfncnt}%
1661   \StepUpCounter{\authfnTmpCnt}%
1662\repeat}%
1663
1664
1665\def\author{\advance\aucount\@ne%
1666%%\let\footnotetext\authfootnotetext%
1667\@ifstar\@@corrauthor\@@author}%
1668
1669\newcommand{\@@corrauthor}[2][]{\g@addto@macro\artauthors{\undefined%
1670\renewcommand{\email}[1]{}%
1671\hsize=\textwidth\raggedright%
1672\global\advance\aucount\@ne%%
1673\global\advance\corrauthcount\@ne%%
1674\def\@currentlabel{#2}
1675\jmkLabel{corrauth\thecorrauthcount}%
1676\Authorfont%
1677\def\baselinestretch{1}%
1678\authorsep{#2\ifnum\aucount=2\else\ifnum\punctcount=2,\else\ifnum\punctcount=1\relax\else\ifnum\punctcount=0\relax\else,\fi\fi\fi\fi}%
1679\unskip\ifx#1\empty\else\textsuperscript{\smash{{%
1680\@for\@@affmark:=#1\do{\edef\affnum{\@ifundefined{X@\@@affmark}{1}{\jmkRef{\@@affmark}}}%
1681\unskip\sep\affnum\let\sep=,}}}}\fi%
1682\def\authorsep{\au@and~}%
1683\global\let\sep\@empty%
1684}}%
1685
1686\newcommand\fnm[1]{{\StepUpCounter{\fnmCnt}#1\addtocontents{aq}{\protect{\bfseries Author\ \thefnmCnt}\hfill\protect\break Given Names: #1\hfill\protect\break}}}%
1687\newcommand\sur[1]{{#1\addtocontents{aq}{Last Name: #1\protect\par}}}%
1688
1689\newbox\aufootnotemark%
1690
1691\newbox\authmarkbox%
1692\newif\ifGApresent%
1693
1694\def\@filtername#1#2\@nil{#1.\ }%
1695\def\filtername#1 #2\@nil{%
1696\@filtername#1\@nil #2}%
1697\newcommand{\@@author}[2][]{%
1698\def\temp{#1}\g@addto@macro\artauthors{%
1699\def\footnotemark##1{%
1700\affilmarkdefns%
1701\global\setbox\authmarkbox\hbox{\reset@font\fontfamily{\rmdefault}\fontsize{8.75pt}{0}\selectfont{##1}}}%
1702\ifnum\aucount=1%
1703    \global\@auemailtrue%
1704    \else%
1705    \global\@auemailfalse%
1706    \fi%
1707    \Authorfont%\baselineskip=12pt%
1708    \def\baselinestretch{1}%
1709   \authorsep{#2}\unskip\ifx\temp\@empty%
1710      \@ifundefined{Xname@0}%
1711        {\expandafter\xdef\csname Xname@0\endcsname{\filtername#2\@nil}}%
1712        {\expandafter\protected@xdef\csname Xname@0\endcsname%
1713             {\csname Xname@0\endcsname,\ \filtername#2\@nil}}%
1714   \else%
1715   \textsuperscript{\smash{{%
1716      \@for\@@affmark:=#1\do{\edef\affnum{\@ifundefined{X@\@@affmark}{1}{\jmkRef{\@@affmark}}}%
1717      \@ifundefined{Xname@\@@affmark}%
1718        {\expandafter\xdef\csname Xname@\@@affmark\endcsname{\filtername#2\@nil}}%
1719        {\expandafter\protected@xdef\csname Xname@\@@affmark\endcsname%
1720             {\csname Xname@\@@affmark\endcsname,\ \filtername#2\@nil}}%
1721     \unskip\sep\ifnum\addcount=1\else\affnum\fi\let\sep=,}}}\unhbox\authmarkbox}\fi%
1722    \gdef\authorsep{\enspace|\enspace}%%%
1723    \global\let\sep\@empty\global\let\@corref\@empty%
1724}}%
1725
1726%%\if@purexml\else%
1727%
1728\newcounter{affn}%
1729\renewcommand\theaffn{\arabic{affn}}%
1730%
1731\def\jmkaddress{}%
1732\def\miscjmkaddress{}%
1733\def\addsep{\par\vskip0pt}%
1734%
1735\newcount\addcount% To check the count of address
1736%
1737\def\address{\advance\addcount\@ne\@ifstar\@@corraddress\@@address}%
1738%
1739\newcommand{\@@corraddress}[2][]{\gdef\@corresinfo{#2}}%
1740%
1741\newcommand{\@@address}[2][]{\def\temp{#1}%
1742\g@addto@macro\jmkaddress{\hsize=\textwidth%
1743\def\baselinestretch{1}%
1744\stepcounter{affn}%
1745\xdef\@currentlabel{\theaffn}%
1746\jmkLabel{#1}%
1747\addressfont\ifx#1\empty\else\@hangfrom{\textsuperscript{\smash{\theaffn}}}\fi%
1748#2\vphantom{Thy}\par%
1749}}%
1750%%\fi%
1751
1752%% email details %%
1753
1754\newcount\emailcount%
1755\newcount\punctcount%
1756
1757%\def\jmkemail{}%
1758%\def\emailand{\ and\ }%
1759%\def\@emailsep{\unskip\advance\emailcount by -1\emailand}%
1760
1761%\newcommand{\email}[1]{%%\global\advance\emailcount\@ne%
1762%\let\emailcount\corrauthcount%
1763%\g@addto@macro\jmkemail{%
1764%\def\emailau{\jmkRef{corrauth\thecorrauthcount};}%
1765%\emailsep{\emailau\ #1}\def\emailsep{\@emailsep}}}%
1766
1767\newcommand{\email}[1]{Email: #1}%
1768
1769%
1770%% Correspondence details
1771%
1772
1773%\def\corresinfotext{Correspondence should be addressed to }%
1774%\newcommand{\corresinfo}{{\hsize=\textwidth\corresfont\corresinfotext\jmkemail\par}}%
1775
1776\gdef\@corresinfo{}%
1777\def\corres#1{\gdef\@corresinfo{#1}}%
1778
1779\newcommand{\corresinfo}{{\corresfont\baselineskip11pt\textbf{Correspondence}\par \@corresinfo\par}}%
1780
1781\gdef\@presentaddress{}%
1782\def\presentaddress#1{\gdef\@presentaddress{\hsize=\textwidth\corresfont\baselineskip11pt\textbf{Present Address}\par #1}}%
1783
1784%
1785\def\received#1{\gdef\@received{Received #1;}}\gdef\@received{Added at production}%
1786\def\revised#1{\gdef\@revised{Revised #1;}}\gdef\@revised{Added at production}%
1787\def\accepted#1{\gdef\@accepted{Accepted #1}}\gdef\@accepted{Added at production}%
1788\def\published#1{\gdef\@published{Published #1}}\gdef\@published{Added at production}%
1789   \def\xmlreceived{\gdef\@received{\ifnum\artActypcnt=1\relax Received:\ref{MSSreceiveddate}\ReceivedMONTH\nobreakspace{}\kern.5pt\ReceivedYEAR,\else Received:\ref{MSSreceiveddate}\nobreakspace{}\kern.5pt\ReceivedDATE\nobreakspace{}\kern.5pt\ReceivedMONTH\nobreakspace{}\kern.5pt\ReceivedYEAR\fi}}\gdef\@received{}%
1790   \def\xmlrevised{\gdef\@revised{Revised:\ref{MSSrevised}\nobreakspace{}\kern.5pt\RevisedDATE\nobreakspace{}\kern.5pt\RevisedMONTH\nobreakspace{}\kern.5pt\RevisedYEAR}}\gdef\@revised{}%
1791   \def\xmlaccepted{\gdef\@accepted{\ifnum\artActypcnt=1\relax in final form\ref{ACCdate}\AccMONTH\nobreakspace{}\kern.5pt\AccYEAR\else Accepted:\ref{ACCdate}\nobreakspace{}\kern.5pt\AccDATE\nobreakspace{}\kern.5pt\AccMONTH\nobreakspace{}\kern.5pt\AccYEAR\fi}}\gdef\@accepted{}%
1792   \def\xmlacceptedonline{\gdef\@acceptedonline{Accepted article online\ref{PUBaccptdate}\nobreakspace{}\kern.5pt\AccDATEi\nobreakspace{}\kern.5pt\AccMONTHi\nobreakspace{}\kern.5pt\AccYEARi}}\gdef\@acceptedonline{}%
1793   \def\xmlpubdate{\gdef\@pubdate{Published on:\ref{PUBEVdate}\nobreakspace{}\kern.5pt\PubDATE\nobreakspace{}\kern.5pt\PubMONTH\nobreakspace{}\kern.5pt\PubYEAR}}\gdef\@pubdate{}%
1794
1795\newif\ifarticletype\global\articletypefalse
1796
1797\def\pagenumberalign#1{\hbox to 22.5\p@{#1}}%
1798\def\rhvertbar{\smash{\raisebox{-2\p@}{\rule{.5\p@}{10\p@}}}}%
1799\def\historydatesvertbar{\hspace*{7\p@}\smash{\raisebox{-4\p@}{\rule{.5\p@}{12\p@}}}\hspace*{7\p@}}%
1800\def\foot@pagenumber@align#1{\hbox to 15.75\p@{#1}}%
1801\def\foot@vertbar{\hspace*{7\p@}\smash{\raisebox{0\p@}{\rule{.5\p@}{9.25\p@}}}\hspace*{7\p@}}%
1802\def\authorseprule#1{\gdef\author@seprule{\hspace*{7\p@}#1\hspace*{7\p@}}}\authorseprule{\smash{\raisebox{.1\p@}{\hbox{\rule{.5\p@}{8.5\p@}}}}}%
1803%
1804\def\thepagedef{{\pagenumfont\thepage}}%
1805
1806\def\headfootrule#1{\gdef\@headfootrule{#1}}\headfootrule{{\rule{\textwidth}{.5\p@}}}%
1807
1808\def\historykern#1{\gdef\history@kern{#1}}\historykern{\nobreakspace{}\kern.5pt}
1809\def\@dummy@received{\textcolor{red}{Received:\history@kern{}\history@kern{}Added at production}}%
1810\def\@dummy@revised{\textcolor{red}{Revised:\history@kern{}\history@kern{}Added at production}}%
1811\def\@dummy@accepted{\textcolor{red}{Accepted:\history@kern{}\history@kern{}Added at production}}%
1812\def\@dummy@pubdate{\textcolor{red}{Published\history@kern{}on:\history@kern{}\history@kern{}Added at production}}%
1813\def\historydates#1{\gdef\@history@dates{#1}}%
1814\historydates{{\titlepageheadfont%
1815  \ifx\@received\@empty\@dummy@received\else\@dummy@received\fi\historydatesvertbar%
1816  \ifx\@revised\@empty\@dummy@revised\else\@dummy@revised\fi\historydatesvertbar%
1817  \ifx\@accepted\@empty\@dummy@accepted\else\@dummy@accepted\fi%\historydatesvertbar%
1818%  \ifx\@pubdate\@empty\@dummy@pubdate\else\@pubdate\fi%
1819}}%
1820%
1821\def\doiheadtext#1{\gdef\@DOI@text{#1}}\doiheadtext{DOI: xxx/xxxx\nobreakspace{}}%
1822\def\head@titlepage@def#1#2{\vbox{%
1823  \hbox to \textwidth{#1\dummyalphabet}\par\vspace*{2.5\p@}%
1824  \@headfootrule\par\vspace*{9\p@}%
1825  \smash{{\titlepageheadfont\@DOI@text#2}}\par\vspace*{9\p@}%
1826  \vspace*{-2.5\p@}%
1827%  \smash{\hbox to \textwidth{\hfill\rhlogo}}\par%
1828}}%
1829%
1830\newskip\foot@titlepage@raise@skip\global\foot@titlepage@raise@skip23\p@%
1831
1832\def\oddhead@titlepage@info{\head@titlepage@def{\@history@dates\hfill}{\@doi}}%
1833\def\evenhead@titlepage@info{\oddhead@titlepage@info}%
1834%
1835%\def\oddfoot@titlepage@info{\foot@titlepage@def{\runningfooter}}%
1836%\def\evenfoot@titlepage@info{\oddfoot@titlepage@info}%
1837%
1838\def\ps@titlepage{%
1839%  \def\@oddfoot{\oddfoot@titlepage@info}%
1840 % \def\@evenfoot{\evenfoot@titlepage@info}%
1841  \def\@oddhead{\oddhead@titlepage@info}%
1842  \def\@evenhead{\evenhead@titlepage@info}%
1843  \let\@mkboth\markboth%
1844}%
1845
1846
1847%% Abstract %%
1848
1849%% Article Abstract
1850%% Author name in Running Head
1851
1852\newcount\lastauthorcnt
1853
1854\newif\if@suppimage \global\@suppimagefalse
1855\newif\ifAbstractexist%
1856\global\Abstractexistfalse%
1857%% Article Abstract
1858\renewcommand\abstract[2][]{\global\Abstractexisttrue%
1859  \gdef\@abstract{%
1860    \setlength{\parindent}{\z@}%
1861    \vspace*{8.5\p@}%
1862    \rightskip0pt\raggedright\hspace*{7\p@}\hbox{\reset@font\abstractfont{\absheadfont#1}}\par\vskip3pt% LN20feb2016
1863    {\abstractfont\baselineskip15pt\ifFWabstract\hsize\textwidth\fi#2\par\vspace*{0\p@}}%
1864    \addcontentsline{toc}{section}{\abstractname}%
1865}}%\abstract{}%
1866
1867%% Correspondence
1868\def\correspondencename{Correspondence}
1869\def\correspondence#1{%
1870  \gdef\@correspondence{%
1871    \par\vspace*{3\p@}%
1872    {\corresfont\correspondencename\par}%
1873    {\corresfont#1\par}%
1874  }%
1875}\correspondence{}%
1876
1877%% Funding Information
1878\def\fundingNumber#1{#1.}%
1879\def\fundingAgency#1{#1,\space}%
1880%
1881\newcount\fundinginfocount\fundinginfocount0%
1882\newcount\commafundinginfocount\commafundinginfocount0%
1883\newcount\fundinginfotempcount\fundinginfotempcount0%
1884\newcount\tempfundinginfocount\tempfundinginfocount0%
1885%
1886\def\fundingInfo#1{%
1887  \expandafter\protected@xdef\csname fundinginfo\the\fundinginfocount\endcsname{#1}%
1888  \global\advance\fundinginfocount1%
1889}%
1890%
1891\def\fundinginfohead#1{\gdef\@fundinginfo@head{#1}}\fundinginfohead{Funding Information}%
1892\def\fundinginfoheadtext#1{\gdef\@fundinginfo@head@text{#1}}\fundinginfoheadtext{This research was supported by the }%
1893\gdef\@fundinginfo{{%
1894  \reset@font\FIfont%
1895  \ifnum\fundinginfocount<1\else%
1896  \par\vspace*{3\p@}%
1897  \@fundinginfo@head\par%
1898  \@fundinginfo@head@text%
1899  \global\tempfundinginfocount\fundinginfocount%
1900  \global\advance\tempfundinginfocount-1%
1901  \global\commafundinginfocount\tempfundinginfocount%
1902  \global\advance\commafundinginfocount-1%
1903  \ifnum\fundinginfocount=1%
1904    \ignorespaces\csname fundinginfo0\endcsname%
1905  \else%
1906    \@whilenum\fundinginfotempcount<\tempfundinginfocount\do{%
1907      \ignorespaces\csname fundinginfo\the\fundinginfotempcount\endcsname\ %
1908      \global\advance\fundinginfotempcount1%
1909    }%
1910    \csname fundinginfo\the\fundinginfotempcount\endcsname\par%
1911  \fi%
1912  \fi%
1913\vfill}}%
1914
1915%% JEL Classification
1916\newcount\JELinfocount\JELinfocount0%
1917\newcount\commaJELinfocount\commaJELinfocount0%
1918\newcount\JELinfotempcount\JELinfotempcount0%
1919\newcount\tempJELinfocount\tempJELinfocount0%
1920%
1921\def\JELinfo#1{%
1922  \expandafter\protected@xdef\csname JELinfo\the\JELinfocount\endcsname{#1}%
1923  \global\advance\JELinfocount1%
1924}%
1925%
1926\def\JELinfohead#1{\gdef\@JELinfo@head{#1}}\JELinfohead{JEL Classification:\nobreakspace{}}%
1927\gdef\@JELinfo{{%
1928  \ifnum\JELinfocount<1\else%
1929  \reset@font\JELfont%
1930  \par\vspace*{3\p@}%
1931  \@JELinfo@head%
1932  \global\tempJELinfocount\JELinfocount%
1933  \global\advance\tempJELinfocount-1%
1934  \global\commaJELinfocount\tempJELinfocount%
1935  \global\advance\commaJELinfocount-1%
1936  \ifnum\JELinfocount=1%
1937    \ignorespaces\csname JELinfo0\endcsname%
1938  \else%
1939    \@whilenum\JELinfotempcount<\tempJELinfocount\do{%
1940      \ignorespaces\csname JELinfo\the\JELinfotempcount\endcsname\ %
1941      \global\advance\JELinfotempcount1%
1942    }%
1943    \csname JELinfo\the\JELinfotempcount\endcsname\par\vspace*{-\baselineskip}%
1944  \fi%
1945  \fi%
1946\vfill}}%
1947
1948%%
1949\newbox\htftbox%
1950\newdimen\ovsize%
1951\newdimen\oovsize%
1952\newdimen\FreePageSpace%
1953\newdimen\FreePageSpaceTest%
1954\newskip\fadjskip\fadjskip=0pt%
1955\newskip\adjustskip\adjustskip=0pc%
1956\newskip\titleskip%
1957
1958\gdef\ComputeFreeSpaceOnPage{%
1959\par%
1960\ifdim\pagetotal=0pt%
1961   \global\FreePageSpace=\vsize%
1962   \global\advance\FreePageSpace by -\adjustskip%
1963\else%
1964   \FreePageSpace=\pagegoal%
1965  \ifvoid\footins%
1966     \global\advance\FreePageSpace by -\pagetotal%
1967     \global\advance\FreePageSpace by -\adjustskip%
1968  \else%
1969    \setbox3=\vbox{\unvbox\footins}%
1970    \htftbox=\ht3%
1971    \advance\htftbox by \dp3%
1972    \global\advance\FreePageSpace by -\pagetotal%
1973    \global\advance\FreePageSpace by -\htftbox%
1974    \global\advance\FreePageSpace by -\adjustskip%
1975  \fi%
1976\fi%
1977}%
1978%%
1979
1980\definecolor{tenpercent}{cmyk}{0,0,0,0.10}
1981\definecolor{thirtyfivepercent}{cmyk}{0,0,0,0.35}
1982\definecolor{sixtyfivepercent}{cmyk}{0,0,0,0.65}
1983\definecolor{seventyfivepercent}{cmyk}{0,0,0,0.75}
1984%
1985
1986%\newskip\abs@coli@hsize\abs@coli@hsize12pc%
1987%\newskip\abs@colii@hsize\abs@colii@hsize29pc%
1988
1989
1990%
1991\newbox\abs@boxa%
1992\newbox\abs@boxb%
1993\newbox\abs@boxc%
1994%
1995\newdimen\abs@dima%
1996\newdimen\abs@dimb%
1997\newdimen\abs@dimc%
1998%
1999\def\absCOvrule{\vrule width0.5pt}%
2000\def\authCOvrule{{\color{tenpercent}\vrule width\abs@colii@hsize}}%
2001
2002\def\FWauthCOvrule{{\color{tenpercent}\vrule width\textwidth}}%
2003
2004%
2005\long\def\absworkarea#1#2{%
2006  \setbox\abs@boxa\vbox{\hsize\abs@coli@hsize#1\dummyalphabet}%
2007  \abs@dima=\ht\abs@boxa%
2008  \advance\abs@dima by \dp\abs@boxa%
2009  \advance\abs@dima by -4.5\p@%
2010  \setbox\abs@boxb\vbox{\hsize\abs@colii@hsize#2\dummyalphabet}%
2011  \abs@dimb=\ht\abs@boxb%
2012  \advance\abs@dimb by \dp\abs@boxb%
2013  \ComputeFreeSpaceOnPage%
2014  \stripsep\z@%
2015  \ifdim\abs@dimb>\FreePageSpace%
2016    \setbox8=\vbox{\unvbox\abs@boxb}%
2017    \advance\FreePageSpace by -\@firstpage@foot@height%
2018    %\advance\FreePageSpace by \baselineskip%
2019    \setbox1=\vsplit8 to \FreePageSpace%
2020    \setbox1=\vbox{\unvbox1}%
2021    \setbox2=\vbox{\unvbox8}%
2022    \ifdim\abs@dima>\FreePageSpace%
2023      \setbox7=\vbox{\unvbox\abs@boxa}%
2024      %\advance\FreePageSpace by -\@firstpage@foot@height%
2025      %\advance\FreePageSpace by \baselineskip%
2026      \setbox3=\vsplit7 to \FreePageSpace%
2027      \setbox3=\vbox{\unvbox3}%
2028      \setbox4=\vbox{\unvbox7}%
2029    \fi%
2030    \gdef\abs@dimchk{\ifdim\ht3>\ht1\ht3\else\ht1\fi}%
2031    \parbox{\textwidth}{%
2032      \begin{minipage}[t]{\abs@coli@hsize}%
2033      \leavevmode\vbox to \abs@dimchk{\ifdim\abs@dima>\FreePageSpace\copy3\else\unvbox\abs@boxa\fi\vfill}%
2034      \end{minipage}\hfill%
2035      \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2036      \begin{minipage}[t]{\abs@colii@hsize}%
2037      \leavevmode\hspace*{-\textwidth}\vbox to \abs@dimchk{\unvbox1\vfill}%
2038      \end{minipage}%
2039      \vspace*{\@firstpage@foot@height}%
2040    }%\end{strip}%
2041    \clearpage%\vfill\eject%
2042    \loop%
2043    \ifdim\ht2>\textheight%
2044    \ovsize=\vsize%
2045    \setbox1=\vsplit2 to \ovsize%
2046    \setbox1=\vbox{\unvbox1}%
2047    \setbox3=\vsplit4 to \ovsize%
2048    \setbox3=\vbox{\unvbox3}%
2049    %\ifdim\ht4>\textheight%
2050    %\oovsize=\vsize%
2051    %\setbox3=\vsplit4 to \oovsize%
2052    %\setbox3=\vbox{\unvbox3}%
2053     \parbox{\textwidth}{%
2054      \begin{minipage}[t]{\abs@coli@hsize}%
2055      \leavevmode\vbox{\unvbox3\vfill}%
2056      \end{minipage}\hfill%
2057      \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2058      \begin{minipage}[t]{\abs@colii@hsize}%
2059      \leavevmode\hspace*{-\textwidth}\vbox{\vspace*{7\p@}\unvbox1\vspace*{7\p@}}%
2060      \end{minipage}%
2061   }%
2062    \clearpage%
2063    \repeat%
2064    \gdef\abs@dimchk{\ifdim\ht4>\ht2\ht4\else\ht2\fi}%
2065     \parbox{\textwidth}{%
2066      \begin{minipage}[t]{\abs@coli@hsize}%
2067      \leavevmode\vbox to \abs@dimchk{\copy4\vfill}%
2068      \end{minipage}
2069      \hfill%
2070      \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2071      \begin{minipage}[t]{\abs@colii@hsize}%
2072      \leavevmode\hspace*{-\textwidth}\vbox to \abs@dimchk{\unvbox2\vfill}%
2073      \end{minipage}%
2074      \vspace*{2pc}%
2075      \vskip\titleskip%
2076    }%
2077  \else%
2078    \ifdim\abs@dima>\FreePageSpace%
2079      \setbox8=\vbox{\unvbox\abs@boxa}%
2080      \advance\FreePageSpace by -\@firstpage@foot@height%
2081      %\advance\FreePageSpace by \baselineskip%
2082      \setbox1=\vsplit8 to \FreePageSpace%
2083      \setbox1=\vbox{\unvbox1}%
2084      \setbox2=\vbox{\unvbox8}%
2085       \parbox{\textwidth}{%%
2086        \begin{minipage}[t]{\abs@coli@hsize}%
2087        \leavevmode\vbox{\copy1\vfill}%
2088        \end{minipage}\hfill%
2089        \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2090        \begin{minipage}[t]{\abs@colii@hsize}%
2091        \leavevmode\hspace*{-\textwidth}\vbox to \ht1{\unvbox\abs@boxb\vfill}%
2092        \end{minipage}%
2093        \vspace*{\@firstpage@foot@height}%
2094      }%
2095      \clearpage%\vfill\eject%
2096      \loop\ifdim\ht2>\textheight%
2097      \ovsize=\vsize%
2098      \setbox1=\vsplit2 to \ovsize%
2099      \setbox1=\vbox{\unvbox1}%
2100       \parbox{\textwidth}{%%
2101        \begin{minipage}[t]{\abs@coli@hsize}%
2102        \leavevmode\vbox{\unvbox1\vfill}%
2103        \end{minipage}\hfill%
2104        \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2105        \begin{minipage}[t]{\abs@colii@hsize}%
2106        \leavevmode\hspace*{-\textwidth}\vbox{\vspace*{7\p@}\unvbox1\vspace*{7\p@}}%
2107        \end{minipage}%
2108      }%
2109      \clearpage%
2110      \repeat%
2111       \parbox{\textwidth}{%
2112        \begin{minipage}[t]{\abs@coli@hsize}%
2113        \leavevmode\vbox{\unvbox2\vfill}%
2114        \end{minipage}
2115        \hfill%
2116        \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2117        \begin{minipage}[t]{\abs@colii@hsize}%
2118        \leavevmode\hspace*{-\textwidth}\vbox{\vspace*{7\p@}\unvbox2\vspace*{-7\p@}}%
2119        \end{minipage}%
2120        \vspace*{2pc}%
2121        \vskip\titleskip%
2122      }%
2123    \else%
2124      \gdef\abs@dimchk{\ifdim\abs@dima>\abs@dimb\abs@dima\else\abs@dimb\fi}%
2125       \parbox{\textwidth}{%%
2126        \begin{minipage}[t]{\abs@coli@hsize}%
2127        \leavevmode\vbox to \abs@dimchk{\copy\abs@boxa\vfill}%
2128        \end{minipage}\hfill%
2129        \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2130        \begin{minipage}[t]{\abs@colii@hsize}%
2131        \leavevmode\hspace*{-\textwidth}\vbox to \abs@dimchk{\unvbox\abs@boxb\vfill}%
2132        \end{minipage}%
2133        \vspace*{2pc}%
2134        \vskip\titleskip%
2135      }%
2136    \fi%
2137  \fi%
2138%%%  \ifx\@titlenotes\@empty\else\global\thankstrue\footnotetext{\@titlenotes\par\vspace*{-\baselineskip}}\fi%
2139}%
2140
2141\long\def\FWabsworkarea#1#2{%
2142%  \setbox\abs@boxa\vbox{\hsize\abs@coli@hsize#1\dummyalphabet}%
2143%  \abs@dima=\ht\abs@boxa%
2144%  \advance\abs@dima by \dp\abs@boxa%
2145%  \advance\abs@dima by -4.5\p@%
2146  \setbox\abs@boxb\vbox{\hsize\textwidth#2\dummyalphabet}%
2147  \abs@dimb=\ht\abs@boxb%
2148  \advance\abs@dimb by \dp\abs@boxb%
2149  \ComputeFreeSpaceOnPage%
2150  \stripsep\z@%
2151  %\ifx\@titlenotes\@empty\else\footnotetext{\textsuperscript{1}\@titlenotes\par\vspace*{-2\baselineskip}}\par\vspace*{-2\baselineskip}\fi%
2152%%  \ifx\@fundinginfo\@empty\else\footnotetext{\textsuperscript{1}\@fundinginfo\par\vspace*{-2\baselineskip}}\par\vspace*{-2\baselineskip}\fi%
2153  \ifdim\abs@dimb>\FreePageSpace%
2154    \setbox8=\vbox{\unvbox\abs@boxb}%
2155    \advance\FreePageSpace by -\@firstpage@foot@height%
2156    %\advance\FreePageSpace by \baselineskip%
2157    \setbox1=\vsplit8 to \FreePageSpace%
2158    \setbox1=\vbox{\unvbox1}%
2159    \setbox2=\vbox{\unvbox8}%
2160    \ifdim\abs@dima>\FreePageSpace%
2161%      \setbox7=\vbox{\unvbox\abs@boxa}%
2162      %\advance\FreePageSpace by -\@firstpage@foot@height%
2163      %\advance\FreePageSpace by \baselineskip%
2164      \setbox3=\vsplit7 to \FreePageSpace%
2165      \setbox3=\vbox{\unvbox3}%
2166      \setbox4=\vbox{\unvbox7}%
2167    \fi%
2168    \gdef\abs@dimchk{\ifdim\ht3>\ht1\ht3\else\ht1\fi}%
2169   \parbox{\textwidth}{%
2170%      \begin{minipage}[t]{\abs@coli@hsize}%
2171%      \leavevmode\vbox to \abs@dimchk{\ifdim\abs@dima>\FreePageSpace\copy3\else\unvbox\abs@boxa\fi\vfill}%
2172%      \end{minipage}\hfill%
2173\FWauthCOvrule %     \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2174      \begin{minipage}[t]{\textwidth}%
2175      \leavevmode\hspace*{-\textwidth}\vbox to \abs@dimchk{\unvbox1\vfill}%
2176      \end{minipage}%
2177      \vspace*{\@firstpage@foot@height}%
2178   }% \end{strip}%
2179    \vfill\eject%
2180    \loop%
2181    \ifdim\ht2>\textheight%
2182    \ovsize=\vsize%
2183    \setbox1=\vsplit2 to \ovsize%
2184    \setbox1=\vbox{\unvbox1}%
2185    \setbox3=\vsplit4 to \ovsize%
2186    \setbox3=\vbox{\unvbox3}%
2187    %\ifdim\ht4>\textheight%
2188    %\oovsize=\vsize%
2189    %\setbox3=\vsplit4 to \oovsize%
2190    %\setbox3=\vbox{\unvbox3}%
2191    \parbox{\textwidth}{%\begin{strip}%
2192    %  \begin{minipage}[t]{\abs@coli@hsize}%
2193     % \leavevmode\vbox{\unvbox3\vfill}%
2194     % \end{minipage}\hfill%
2195      \FWauthCOvrule%
2196      \begin{minipage}[t]{\textwidth}%
2197      \leavevmode\hspace*{-\textwidth}\vbox{\vspace*{7\p@}\unvbox1\vspace*{7\p@}}%
2198      \end{minipage}%
2199    }%\end{strip}%
2200    \clearpage%
2201    \repeat%
2202    \gdef\abs@dimchk{\ifdim\ht4>\ht2\ht4\else\ht2\fi}%
2203    \parbox{\textwidth}{%\begin{strip}
2204     % \begin{minipage}[t]{\abs@coli@hsize}%
2205     % \leavevmode\vbox to \abs@dimchk{\copy4\vfill}%
2206     % \end{minipage}
2207     % \hfill%
2208     \FWauthCOvrule% \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2209      \begin{minipage}[t]{\textwidth}%
2210      \leavevmode\hspace*{-\textwidth}\vbox to \abs@dimchk{\unvbox2\vfill}%
2211      \end{minipage}%
2212      \vspace*{2pc}%
2213      \vskip\titleskip%
2214    }%\end{strip}
2215  \else%
2216    \ifdim\abs@dima>\FreePageSpace%
2217%      \setbox8=\vbox{\unvbox\abs@boxa}%
2218      \advance\FreePageSpace by -\@firstpage@foot@height%
2219      %\advance\FreePageSpace by \baselineskip%
2220%      \setbox1=\vsplit8 to \FreePageSpace%
2221    %  \setbox1=\vbox{\unvbox1}%
2222%      \setbox2=\vbox{\unvbox8}%
2223      \parbox{\textwidth}{%\begin{strip}%
2224%        \begin{minipage}[t]{\abs@coli@hsize}%
2225 %       \leavevmode\vbox{\copy1\vfill}%
2226  %      \end{minipage}\hfill%
2227   %     \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2228        \begin{minipage}[t]{\textwidth}%
2229        \leavevmode\hspace*{-\textwidth}\vbox to \ht1{\unvbox\abs@boxb\vfill}%
2230        \end{minipage}%
2231        \vspace*{\@firstpage@foot@height}%
2232      }%\end{strip}%
2233      \vfill\eject%
2234      \loop\ifdim\ht2>\textheight%
2235      \ovsize=\vsize%
2236      \setbox1=\vsplit2 to \ovsize%
2237      \setbox1=\vbox{\unvbox1}%
2238      \parbox{\textwidth}{%\begin{strip}%
2239%        \begin{minipage}[t]{\abs@coli@hsize}%
2240 %       \leavevmode\vbox{\unvbox1\vfill}%
2241  %      \end{minipage}\hfill%
2242   \FWauthCOvrule%     \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2243        \begin{minipage}[t]{\textwidth}%
2244        \leavevmode\hspace*{-\textwidth}\vbox{\vspace*{7\p@}\unvbox1\vspace*{7\p@}}%
2245        \end{minipage}%
2246      }%\end{strip}%
2247      \clearpage%
2248      \repeat%
2249      \parbox{\textwidth}{%\begin{strip}
2250   %     \begin{minipage}[t]{\abs@coli@hsize}%
2251   %     \leavevmode\vbox{\unvbox2\vfill}%
2252   %     \end{minipage}
2253   %     \hfill%
2254   \FWauthCOvrule%     \hspace*{7\p@}\absCOvrule\hspace*{7\p@}\authCOvrule%
2255        \begin{minipage}[t]{\textwidth}%
2256        \leavevmode\hspace*{-\textwidth}\vbox{\vspace*{7\p@}\unvbox2\vspace*{-7\p@}}%
2257        \end{minipage}%
2258        \vspace*{2pc}%
2259        \vskip\titleskip%
2260      }%\end{strip}
2261    \else%
2262      \gdef\abs@dimchk{\ifdim\abs@dima>\abs@dimb\abs@dima\else\abs@dimb\fi}%
2263     \parbox{\textwidth}{%\begin{strip}%
2264       % \begin{minipage}[t]{\abs@coli@hsize}%
2265       % \leavevmode\vbox to \abs@dimchk{\copy\abs@boxa\vfill}%
2266       % \end{minipage}\hfill%
2267        \FWauthCOvrule%
2268        \begin{minipage}[t]{\textwidth}%
2269        \leavevmode\hspace*{-\textwidth}\vbox to \abs@dimchk{\unvbox\abs@boxb\vfill}%
2270        \end{minipage}%
2271        \vspace*{2pc}%
2272        \vskip\titleskip%
2273      }%\end{strip}%
2274    \fi%
2275  \fi%
2276  \ifx\@titlenotes\@empty\else\global\thankstrue\footnotetext{\@titlenotes\par\vspace*{-\baselineskip}}\fi%
2277}%
2278
2279
2280\newif\ifabstract\global\abstractfalse%
2281\newif\ifFWabstract%
2282%
2283\gdef\printabstractpart{%
2284  \absworkarea{%
2285    \noindent{\reset@font\addressfont\jmkaddress\par}%\movedauaddress\@movedauaddress%\@corres%
2286   % \noindent\ifx\movedauaddress\@empty\else{\addressfont\@movedauaddress\par}\fi%
2287 \removelastskip\vskip8pt%
2288   \ifx\@corresinfo\empty\else{\corresinfo\par}\fi%
2289   \removelastskip\vskip8pt%
2290   \ifx\@presentaddress\empty\else\@presentaddress\fi%
2291   \removelastskip\vskip8pt%
2292    \ifx\@fundinginfo\@empty\else\par\@fundinginfo\fi%
2293    \ifx\@JELinfo\@empty\else\par\@JELinfo\fi%
2294  }{%
2295    \global\abstracttrue%
2296    \ifx\@abstract\@empty\else\@abstract\fi%
2297\removelastskip\vskip15pt%
2298    \ifx\@keywords\@empty\else\@keywords\fi%
2299    \global\abstractfalse%
2300  }
2301}
2302
2303%% Printing Abstract
2304%% Printing Abstract
2305\long\def\printabstract{%
2306  \bgroup%
2307    \setlength{\parindent}{\z@}%
2308    \printabstractpart%
2309  \egroup%
2310}%
2311
2312%% Legal Statement
2313\def\legalstatement#1{%
2314  \gdef\@temp{#1}%
2315  \ifx\@temp\@empty%
2316    \gdef\@legalstatement{}%
2317  \else%
2318    \gdef\@legalstatement{%
2319      \smash{{\color{thirtyfivepercent}\@headfootrule}}\par\vspace*{-.45\baselineskip}%
2320      \parbox[t]{\textwidth}{{\color{seventyfivepercent}\legalstatementfont#1\dummyalphabet\par}}\par\vspace*{4.75\p@}%
2321    }%
2322  \fi%
2323}\legalstatement{}%
2324
2325
2326%% Keywords %%
2327
2328\def\keywords#1{\def\@keywords{{\keywordsheadfont\textbf{KEYWORDS:}\par\removelastskip\nointerlineskip\vskip6pt \keywordsfont#1\par}}}\def\@keywords{}%
2329
2330\def\@fnsymbol#1{\ensuremath{\ifcase#1\or \dagger\or \ddagger\or
2331   \S\or \P\or \#\or \|\or **\or \dagger\dagger
2332   \or \ddagger\ddagger\or \S\S\or \P\P\or \#\#\or \|\|\else\@ctrerr\fi\relax}}
2333
2334\renewcommand{\maketitle}{\par%
2335  \@afterindentfalse%
2336  \begingroup
2337    \renewcommand{\thefootnote}{\fnsymbol{footnote}}%
2338    \def\@makefnmark{\hbox to\z@{$\m@th^{\@thefnmark}$\hss}}%
2339    \long\def\@makefntext##1{\parindent 1em\noindent
2340            \hbox to1.8em{\hss$\m@th^{\@thefnmark}$}##1}%
2341    \if@twocolumn
2342      \ifnum \col@number=\@ne
2343         \twocolumn[\@maketitle]%
2344      \else
2345         \twocolumn[\@maketitle]%
2346      \fi
2347    \else
2348      \newpage
2349      \global\@topnum\z@   % Prevents figures from going at top of page.
2350      \@maketitle
2351    \fi
2352    \thispagestyle{titlepage}\@thanks%
2353    \insert\footins{\authfndefns}\par%
2354  \endgroup
2355%  \let\footnotetext\oldfootnotetext%
2356  \setcounter{footnote}{0}%
2357  \let\thanks\relax
2358  \let\maketitle\relax\let\@maketitle\relax
2359  \gdef\@thanks{}\gdef\@author{}\gdef\@title{}
2360  \@afterheading%
2361}
2362
2363\newskip\adjtitleskip%
2364
2365\adjtitleskip=10pt plus4pt minus2pt
2366
2367\renewcommand{\@maketitle}{{\unskip%
2368\hsize=\textwidth\parindent=0pt%
2369\thispagestyle{empty}%
2370%%\let\footnote\thanks%
2371%\removelastskip\vskip-21.13pt%
2372%\ifproof\artoprunningheaders\else\nullartoprunningheaders\fi\par%
2373\removelastskip\vspace*{5pt}%
2374\ifx\@DocHead\empty%
2375  \zz{\@DocHead\par}%
2376\else%
2377  {\@DocHead\par}%
2378\fi%
2379\removelastskip\vskip4pt%
2380\ifx\@title\empty\else{\@title\par}\fi%
2381\removelastskip\vskip18pt%
2382\ifnum\aucount>0%
2383   \global\punctcount\aucount%
2384   {\artauthors\par}%
2385   \removelastskip\vskip8.25pt%
2386%   {\jmkaddress\par}%
2387\fi%
2388 %  \removelastskip\vskip9pt%
2389  % \ifx\@corresinfo\empty\else{\corresinfo\par}\fi%
2390   %\removelastskip\vskip8pt%
2391   %\ifx\@presentaddress\empty\else\@presentaddress\fi%
2392   %\removelastskip\vskip8pt%
2393   %{\history\par}%
2394   %\removelastskip\vskip12pt%
2395%   \ifx\@abstract\empty\else{\@abstract\par}\fi%
2396   \removelastskip\vskip19pt%
2397%   \ifx\@keywords\empty\else{\@keywords\par}\fi%
2398   \printabstract
2399%%   \vspace*{10pt plus4pt minus2pt}%
2400   \removelastskip\vskip\adjtitleskip%
2401}}%
2402
2403%\renewcommand\thefootnote{\@arabic\c@footnote}%
2404
2405%
2406%%
2407
2408%%%%%%%%%%%%%%%%%%%%%%%section defn%%%%%%%%%%%%%%%%%%%%%%
2409
2410%\setcounter{secnumdepth}{3}
2411\newcounter {chapter}[part]% for bookmarks
2412\renewcommand\thepart         {\@Roman\c@part}
2413\renewcommand\thesection      {\@arabic\c@section}
2414\renewcommand\thesubsection   {\thesection.\@arabic\c@subsection}
2415\renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}
2416\renewcommand\theparagraph    {\thesubsubsection.\@arabic\c@paragraph}
2417\renewcommand\thesubparagraph {\theparagraph\@arabic\c@subparagraph}
2418%%
2419\renewcommand\part{\par
2420   \addvspace{4ex}%
2421   \@afterindentfalse
2422   \secdef\@part\@spart}
2423%%
2424\def\@part[#1]#2{%
2425    \ifnum \c@secnumdepth >\m@ne
2426      \refstepcounter{part}%
2427      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
2428    \else
2429      \addcontentsline{toc}{part}{#1}%
2430    \fi
2431    {\parindent \z@ \raggedright
2432     \interlinepenalty \@M
2433     \normalfont
2434     \ifnum \c@secnumdepth >\m@ne
2435       \Large\bfseries \partname~\thepart
2436       \par\nobreak
2437     \fi
2438     \huge \bfseries #2%
2439     \markboth{}{}\par}%
2440    \nobreak
2441    \vskip 3ex
2442    \@afterheading}
2443
2444\def\@spart#1{%
2445    {\parindent \z@ \raggedright
2446     \interlinepenalty \@M
2447     \normalfont
2448     \huge \bfseries #1\par}%
2449     \nobreak
2450     \vskip 3ex
2451     \@afterheading}
2452
2453\renewcommand\section{\@startsection{section}{1}{\z@}{-27pt \@plus -2pt \@minus -2pt}{12\p@}{\sectionfont}}%
2454\renewcommand\subsection{\@startsection{subsection}{2}{\z@}{-23pt \@plus -2pt \@minus -2pt}{5\p@}{\subsectionfont}}%
2455\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}{-20pt \@plus -2pt \@minus -2pt}{2\p@}{\subsubsectionfont}}%
2456%
2457\newskip\secruleskip\secruleskip8.5\p@%
2458%\def\secrule{\color{sixtyfivepercent}\hspace*{\secruleskip}\raisebox{0pt}{\rule{.5\p@}{7.5\p@}}\hspace*{\secruleskip}}%
2459%\def\subsecrule{\color{sixtyfivepercent}\secrule}%
2460%\def\subsubsecrule{\color{sixtyfivepercent}\hspace*{\secruleskip}\raisebox{0pt}{\rule{.5\p@}{6.5\p@}}\hspace*{\secruleskip}}%
2461
2462\def\secrule{\hspace*{\secruleskip}\raisebox{0pt}{\rule{.5\p@}{7.5\p@}}\hspace*{\secruleskip}}%
2463\def\subsecrule{\secrule}%
2464\def\subsubsecrule{\hspace*{\secruleskip}\raisebox{0pt}{\rule{.5\p@}{6.5\p@}}\hspace*{\secruleskip}}%
2465
2466
2467\def\@sectioncntformat#1{{\ifappendixsec\csname the#1\endcsname\ \else\csname the#1\endcsname\secrule\fi}}%
2468\def\@subsectioncntformat#1{{\ifappendixsec\csname the#1\endcsname\ \else\csname the#1\endcsname\subsecrule\fi}}%
2469\def\@subsubsectioncntformat#1{{\ifappendixsec\csname the#1\endcsname\ \else\csname the#1\endcsname\subsubsecrule\fi}}%
2470
2471\def\@paragraphcntformat#1{{\ifappendixsec\csname the#1\endcsname\ \else\csname the#1\endcsname.\ \fi}}%
2472\def\@subparagraphcntformat#1{#1}
2473%
2474\if@font@stix\relax%
2475\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}{-10pt \@plus -2pt \@minus -2pt}{2\p@}{\paragraphfont}}%
2476\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}{-10pt \@plus -2pt \@minus -2pt}{-12\p@}{\subparagraphfont}}%
2477\def\@sect#1#2#3#4#5#6[#7]#8{%
2478   \ifnum #2>\c@secnumdepth%
2479      \edef\@svsec{\noindent}%
2480   \else%
2481      \refstepcounter{#1}%
2482      \let\@@protect\protect%
2483      \def\protect{\noexpand\protect\noexpand}%
2484      \edef\@svsec{\csname @#1cntformat\endcsname{#1}}%
2485      \let\protect\@@protect%
2486   \fi%
2487   \@tempskipa #5\relax%
2488   \ifdim \@tempskipa>\z@%
2489      \ifnum#2=1%
2490         \begingroup #6\relax%\@hangfrom%
2491            {\noindent\hskip #3\relax{\@svsec}}%
2492            {\interlinepenalty\@M{\uppercase{#8}}\par}%
2493         \endgroup%
2494      \else%
2495         \ifnum#2=2%
2496            \begingroup #6\relax%\@hangfrom%
2497               {\noindent\hskip #3\relax\@svsec}%
2498               {\interlinepenalty\@M{#8}\par}%
2499            \endgroup%
2500         \else%
2501      \ifnum#2=3%
2502            \begingroup #6\relax%\@hangfrom%
2503               {\noindent\hskip #3\relax\@svsec}%
2504               {\interlinepenalty\@M{#8}\par}%
2505            \endgroup%
2506         \else%
2507      \ifnum#2=4%
2508            \begingroup #6\relax%\@hangfrom%
2509               {\noindent\hskip #3\relax\@svsec}%
2510               {\interlinepenalty\@M{\textcolor{black!75}{#8}}\par}%
2511            \endgroup%
2512         \else%
2513            \begingroup #6\relax%\@hangfrom
2514               {\noindent\hskip #3\relax\@svsec}%
2515               {\interlinepenalty\@M#8\par}%
2516            \endgroup%
2517         \fi%
2518     \fi%
2519     \fi%
2520      \fi%
2521      \csname #1mark\endcsname{#7}%
2522      \addcontentsline{toc}{#1}{%
2523        \ifnum #2>\c@secnumdepth \else%
2524          \protect\numberline{\csname the#1\endcsname}%
2525        \fi%
2526        #7}%
2527   \else%
2528      \def\@svsechd{%
2529         #6{\hskip #3\relax%
2530         \@svsec \textcolor{black!75}{#8}\hspace*{4pt}}%
2531      }%
2532   \fi%
2533   \@xsect{#5}%
2534}%
2535\else%
2536\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}{-20pt \@plus -2pt \@minus -2pt}{2\p@}{\paragraphfont}}%
2537\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}{-20pt \@plus -2pt \@minus -2pt}{-12\p@}{\subparagraphfont}}%
2538\def\@sect#1#2#3#4#5#6[#7]#8{%
2539   \ifnum #2>\c@secnumdepth%
2540      \edef\@svsec{\noindent}%
2541   \else%
2542      \refstepcounter{#1}%
2543      \let\@@protect\protect%
2544      \def\protect{\noexpand\protect\noexpand}%
2545      \edef\@svsec{\csname @#1cntformat\endcsname{#1}}%
2546      \let\protect\@@protect%
2547   \fi%
2548   \@tempskipa #5\relax%
2549   \ifdim \@tempskipa>\z@%
2550      \ifnum#2=1%
2551         \begingroup #6\relax%\@hangfrom%
2552            {\noindent\hskip #3\relax{\@svsec}}%
2553            {\interlinepenalty\@M{\uppercase{#8}}\par}%
2554         \endgroup%
2555      \else%
2556         \ifnum#2=2%
2557            \begingroup #6\relax%\@hangfrom%
2558               {\noindent\hskip #3\relax\@svsec}%
2559               {\interlinepenalty\@M{#8}\par}%
2560            \endgroup%
2561         \else%
2562            \begingroup #6\relax%\@hangfrom
2563               {\noindent\hskip #3\relax\@svsec}%
2564               {\interlinepenalty\@M{#8}\par}%
2565            \endgroup%
2566         \fi%
2567      \fi%
2568      \csname #1mark\endcsname{#7}%
2569      \addcontentsline{toc}{#1}{%
2570        \ifnum #2>\c@secnumdepth \else%
2571          \protect\numberline{\csname the#1\endcsname}%
2572        \fi%
2573        #7}%
2574   \else%
2575      \def\@svsechd{%
2576         #6{\hskip #3\relax%
2577         \@svsec #8.\hspace*{6pt}}%
2578      }%
2579   \fi%
2580   \@xsect{#5}%
2581}%
2582\fi%
2583
2584\def\@ssect#1#2#3#4#5#6{%
2585   %#1#2#3#4#5#6
2586   \@tempskipa #4\relax%
2587   \ifdim\@tempskipa>\z@%
2588      \ifnum#1=1%
2589         \begingroup%
2590            #5{\@hangfrom{\hskip #2}%
2591            \interlinepenalty \@M\uppercase{#6}\@@par}%
2592         \endgroup%
2593         \addcontentsline{toc}{section}{#6}%
2594      \else%
2595         \begingroup%
2596            #5{\@hangfrom{\hskip #2}%
2597            \interlinepenalty \@M#6\@@par}%
2598         \endgroup%
2599      \fi%
2600   \else%
2601      \def\@svsechd{#5{\hskip #2\relax #6}}%
2602   \fi%
2603   \@xsect{#4}%
2604}%
2605%
2606\def\@startsection#1#2#3#4#5#6{%
2607   \if@noskipsec\leavevmode\fi%
2608   \par%
2609   \@tempskipa #4\relax%
2610   \@afterindenttrue%
2611   \ifdim \@tempskipa <\z@%
2612      \@tempskipa-\@tempskipa%
2613      \@afterindentfalse%
2614   \fi
2615   \if@nobreak
2616      %\ifnum#2=2%
2617      %   \vspace*{-2.4\p@}%
2618      %\fi%
2619      \everypar{}%
2620   \else%
2621      \addpenalty\@secpenalty%
2622      \addvspace\@tempskipa%
2623   \fi%
2624   \@ifstar%
2625      {\@ssect{#2}{#3}{#4}{#5}{#6}}%
2626      {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}%
2627
2628%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2629%
2630%% Regular pagestyle %%
2631%
2632
2633\def\@authormark{}%
2634\def\authormark#1{%
2635\markboth{{{#1}}}{{{#1}}}\gdef\@authormark{\def\etal{\textit{ET AL.}}\let\AQ\AHAQ#1}\gdef\@authormarkforcite{\undefined\def\etal{\textit{et al.}}#1}}%
2636\def\etal{\textit{et al.}}%
2637
2638\newskip\rhverticalsep\rhverticalsep11.5\p@%
2639\def\oddpage@headings@def{\hspace*{\rhverticalsep}\rhvertbar\pagenumberalign{\hss\thepagedef}}%
2640\def\evenpage@headings@def{\pagenumberalign{\thepagedef\hss}\rhvertbar\hspace*{\rhverticalsep}}%
2641
2642\def\leftmarkdef{{\runningheadfont\@authormark}}%
2643\def\rightmarkdef{{\runningheadfont\@authormark}}%
2644%
2645\def\headfootrule#1{\gdef\@headfootrule{#1}}\headfootrule{{\rule{\textwidth}{.5\p@}}}%
2646%
2647\def\head@headings@def#1{\vbox{%
2648  \strut\par\vspace*{-5pt}%
2649\vspace*{2\p@}%\fi%
2650  \@headfootrule\par%\vspace*{-8.25\p@}%
2651\vspace*{-11\p@}%\fi%
2652  \hbox to \textwidth{#1\dummyalphabet}\par\vspace*{\p@}%
2653  }%
2654}%
2655%
2656
2657\def\oddhead@headings@info{\head@headings@def{\rightmarkdef\hfill\oddpage@headings@def}}%
2658\def\evenhead@headings@info{\head@headings@def{\evenpage@headings@def\hfill\leftmarkdef}}%
2659
2660\def\ps@headings{%
2661\let\@oddfoot\@empty\let\@evenfoot\@empty%
2662  \def\@oddhead{\oddhead@headings@info}%
2663  \def\@evenhead{\evenhead@headings@info}%
2664\let\@mkboth\markboth%
2665}%
2666\pagestyle{headings}%
2667%
2668
2669%% Macros for Section headings %%
2670
2671\setcounter{secnumdepth}{3}%
2672%
2673
2674\newif\if@FTSection%
2675\global\@FTSectionfalse%
2676
2677\newif\if@unnumsection%
2678\@unnumsectionfalse%
2679
2680
2681%% Macros for Bibliography %%
2682
2683%\newif\ifbackmatter\newcommand{\backmatter}{\par\global\backmattertrue}%
2684
2685%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Bibliography %%%%%%%%%%%%%%%%%%%%%%%%%%%
2686%
2687
2688\if@Vancouverrefstyle%
2689   \IfFileExists{NJDnatbib.sty}{\usepackage[numbers,super,sort&compress]{NJDnatbib}}{\usepackage[numbers,super,sort&compress]{natbib}}%
2690   \bibliographystyle{WileyNJD-VANCOUVER}%
2691   \bibpunct{}{}{, }{s}{}{}%
2692\renewcommand\@biblabel[1]{#1.}
2693%   \renewcommand{\bibfont}{\reset@font\fontfamily{\rmdefault}\fontsize{8bp}{10}\selectfont\baselineskip=10\p@}%
2694\else%
2695\if@AMArefstyle%
2696   \IfFileExists{NJDnatbib.sty}{\usepackage[numbers,super]{NJDnatbib}}{\usepackage[numbers,super]{natbib}}%
2697   \bibliographystyle{WileyNJD-AMA}%
2698\renewcommand\@biblabel[1]{#1.}
2699%   \bibpunct{(}{)}{,}{n}{}{}%
2700%   \renewcommand{\bibfont}{\reset@font\fontfamily{\rmdefault}\fontsize{8bp}{10}\selectfont\baselineskip=10\p@}%
2701\else%
2702\if@Chemistryrefstyle%
2703   \IfFileExists{NJDnatbib.sty}{\usepackage[numbers,super,sort&compress]{NJDnatbib}}{\usepackage[numbers,super,sort&compress]{natbib}}%
2704   \bibliographystyle{WileyNJD-ACS}%
2705   \bibpunct{[}{]}{,}{n}{}{}%
2706\setcitestyle{super,open={[},close={]}}
2707%%  \renewcommand{\bibfont}{\reset@font\fontfamily{\rmdefault}\fontsize{8bp}{10}\selectfont\baselineskip=10\p@}%
2708\else%
2709\if@AMSrefstyle%
2710   \usepackage[numbers]{natbib}%
2711   \bibliographystyle{WileyNJD-AMS}%
2712   \bibpunct{(}{)}{,}{}{}{}%
2713\setcitestyle{numbers,square}
2714 %  \renewcommand{\bibfont}{\reset@font\fontfamily{\rmdefault}\fontsize{8bp}{10}\selectfont\baselineskip=10\p@}%
2715\else%
2716\if@Harvardstyle%
2717   \usepackage[authoryear]{natbib}%
2718   \bibliographystyle{WileyNJD-Harvard}%
2719   \bibpunct{(}{)}{,}{}{}{}%
2720%\setcitestyle{numbers,square}
2721 %  \renewcommand{\bibfont}{\reset@font\fontfamily{\rmdefault}\fontsize{8bp}{10}\selectfont\baselineskip=10\p@}%
2722\else%
2723\if@APArefstyle
2724   \usepackage[natbibapa]{NJDapacite}%
2725   \bibliographystyle{WileyNJD-APA}%
2726   \renewcommand{\APACrefbtitle}[2]{\textit{#2}}
2727   \bibpunct{(}{)}{; }{}{}{}%
2728   %%
2729 %  \renewcommand{\bibfont}{\reset@font\fontfamily{\rmdefault}\fontsize{8bp}{10}\selectfont\baselineskip=10\p@}%
2730   %%
2731   \renewcommand{\APACrefnote}[1]{%
2732     \ifx\@empty#1\@empty
2733     \else
2734       {#1.}%
2735     \fi}%
2736   %%
2737   \renewcommand{\BTR}{}%%
2738   \renewcommand{\BNUM}{}% number (of a technical report)
2739   %%
2740   \renewcommand{\APACjournalVolNumPages}[4]{%
2741     \textit{#1}%             journal
2742     \ifx\@empty#2\@empty
2743     \else
2744       \unskip, \textit{#2}%  volume
2745     \fi
2746     \ifx\@empty#3\@empty
2747     \else
2748       \unskip({#3})%      issue number
2749     \fi
2750     \ifx\@empty#4\@empty
2751     \else
2752       \unskip, {#4}%      pages
2753     \fi}
2754   %%
2755\fi\fi\fi\fi\fi\fi%
2756
2757
2758%
2759%% Macros for Scheme %%
2760%
2761\def\ftype@scheme{1}%
2762\def\ext@scheme{los}%
2763\def\fps@scheme{tbp}%
2764\newcounter{scheme}%
2765\setcounter{scheme}{0}%
2766\renewcommand{\thescheme}{\@arabic\c@scheme}%
2767\newenvironment{scheme}%
2768               {\@float{scheme}}%
2769               {\end@float}
2770\newenvironment{scheme*}%
2771               {\@dblfloat{scheme}}%
2772               {\end@dblfloat}
2773%
2774%% Macros for display equations %%
2775
2776\let\SplitEq\relax%
2777
2778\setlength\arraycolsep{2\p@}%
2779\setlength\tabcolsep{6\p@}%
2780\setlength\arrayrulewidth{.4\p@}%
2781\setlength\doublerulesep{4\p@}%
2782\setlength\tabbingsep{\labelsep}%
2783
2784\def\eqnarray{%%\initialset%%%introduced on 31Oct15%
2785   \stepcounter{equation}%
2786   \def\@currentlabel{\p@equation\theequation}%
2787   \global\@eqnswtrue
2788   \m@th
2789   \global\@eqcnt\z@
2790   \tabskip\@centering%
2791   \let\\\@eqncr
2792   $$\everycr{}\halign to\displaywidth\bgroup
2793       \hskip\@centering$\displaystyle\tabskip\z@skip{##}$\@eqnsel% for centered equations
2794%%     \hskip\z@skip\hfil$\displaystyle\tabskip\z@skip{##}$\@eqnsel% for left aligned equations
2795      &\global\@eqcnt\@ne\hskip \tw@\arraycolsep \hfil${##}$\hfil
2796      &\global\@eqcnt\tw@ \hskip \tw@\arraycolsep
2797         $\displaystyle{##}$\hfil\tabskip\@centering
2798      &\global\@eqcnt\thr@@ \hb@xt@\z@\bgroup\hss##\egroup
2799       \tabskip\z@skip
2800      \cr
2801}
2802\def\endeqnarray{%
2803      \@@eqncr
2804      \egroup
2805      \global\advance\c@equation\m@ne
2806   $$\@ignoretrue
2807}
2808%
2809
2810%
2811
2812%% Macros for Tables %%
2813
2814\RequirePackage{booktabs}%
2815
2816%%%%table notes%%%%
2817\newenvironment{tablenotes}{\list{}{\setlength{\labelsep}{0pt}%
2818\setlength{\labelwidth}{0pt}%
2819\setlength{\leftmargin}{0pt}%
2820\setlength{\rightmargin}{0pt}%
2821\setlength{\topsep}{2pt}%
2822\setlength{\itemsep}{0pt}%
2823\setlength{\partopsep}{0pt}%
2824\setlength{\listparindent}{0em}%
2825\setlength{\parsep}{0pt}}%
2826\item\relax%
2827}{\endlist}%
2828
2829\def\tnote#1{#1}%%
2830
2831%
2832
2833%
2834%\renewenvironment{sidewaystable*}
2835%               {\@rotdblfloat{table}}
2836%               {\thisfloatpagestyle{headings}\end@rotdblfloat}%
2837
2838%\renewenvironment{sidewaysfigure*}
2839%               {\@rotdblfloat{figure}}
2840%               {\thisfloatpagestyle{headings}\end@rotdblfloat}
2841
2842%% Macros for Quote %%
2843
2844\renewenvironment{quote}{\list{}{\setlength{\labelsep}{0pt}%
2845\setlength{\labelwidth}{0pt}%
2846\setlength{\leftmargin}{\parindentvalue}%
2847\setlength{\rightmargin}{\parindentvalue}%
2848\setlength{\topsep}{12.5pt \@plus2pt \@minus1pt}%
2849\setlength{\itemsep}{0pt}%
2850\setlength{\partopsep}{0pt}%
2851\setlength{\listparindent}{0em}%
2852\setlength{\parsep}{0pt}}%
2853\def\rightline##1{\undefined\vspace*{6pt}\@@line{\hss##1}}%
2854\item\relax%
2855}{\endlist}%
2856
2857%%
2858%%%% Enunciations: Theorem-like styles %%
2859%%
2860
2861\let\iint\undefined%
2862\let\iiint\undefined%
2863\let\iiiint\undefined%
2864\let\dddot\undefined%
2865\let\ddddot\undefined%
2866\let\overleftrightarrow\undefined%
2867\let\underrightarrow\undefined%
2868\let\underleftarrow\undefined%
2869\let\underleftrightarrow\undefined%
2870
2871\RequirePackage[intlimits,sumlimits,namelimits,centertags]{amsmath}%
2872
2873\RequirePackage{amsthm}
2874
2875\newif\ifeproof%
2876
2877%%introduced to make number in italics
2878%\def\thmhead@plain#1#2#3{%
2879%  \thmname{#1}\ifeproof\else\thmnumber{\@ifnotempty{#1}{ }\textit{#2}}%
2880%  \thmnote{ {\the\thm@notefont\textit{(#3)}}}\fi}
2881
2882%\newtheorem{theorem}{Theorem}
2883%\newtheorem{lemma}{Lemma}
2884%\newtheorem{proposition}{Proposition}
2885%\newtheorem{definition}{Definition}
2886%\newtheorem{corollary}{Corollary}
2887%\newtheorem{conjecture}{Conjecture}
2888%\newtheorem{eremark}{Remark}
2889%\newtheorem{case}{Case}
2890%\newtheorem{eexample}{Example}
2891%\newtheorem{estep}{Step}
2892%\newtheorem{eproof}{Proof}
2893\def\thm@space@setup{%
2894  \thm@preskip=7\p@ \thm@postskip=7\p@
2895}
2896\thm@headpunct{}
2897
2898\def\thmsep{9pt}%
2899
2900\newif\ifOldenunciation%
2901\newif\ifEnunciation%
2902
2903\newtheoremstyle{plain}% Numbered
2904{8pt}% Space above
2905{8pt}% Space below
2906{\normalfont}% Body font
2907{}% Indent amount
2908{\itshape}% Theorem head font
2909{}% Punctuation after theorem head
2910{\newline}% Space after theorem headi
2911{}% Theorem head spec (can be left empty, meaning `normal')
2912
2913%\renewenvironment{proof}[1][\proofname]{\par%
2914%\pushQED{\qed}%
2915%  \pushQED{\fontsize{9}{0}\selectfont{\qed}}%
2916%\pushQED{\hfill\fontsize{9}{0}\selectfont{$\square$}}%
2917%  \normalfont \topsep8\p@\@plus6\p@\relax
2918%  \noindent\ignorespaces{\itshape#1}\newline%\itshape
2919%}{%
2920%\popQED\endtrivlist\@endpefalse
2921%}
2922%
2923
2924\newtheoremstyle{WBstyleone}
2925  {6\p@} % Space above
2926  {6\p@} % Space below
2927  {\normalfont} % Body font
2928  {\z@} % Indent amount
2929  {\bfseries} % Theorem head font
2930  {.} % Punctuation after theorem head
2931  {5\p@} % Space after theorem head
2932  {} % Theorem head spec (can be left empty, meaning `normal')
2933
2934%\renewenvironment{proof}[1][\proofname]{\par%%%%%%%%%%%%%commented as per author request
2935 % \pushQED{\qed}%
2936%  \normalfont \topsep6\p@\@plus6\p@\relax
2937%  \trivlist
2938%  \item[\hskip\labelsep
2939%      %  \itshape
2940%    #1\@addpunct{.}]\ignorespaces\Enunciationtrue%
2941%\itshape}{%\vspace*{-\baselineskip}%
2942%  \popQED\endtrivlist\@endpefalse
2943%}
2944
2945
2946\newtheoremstyle{WBstyletwo}
2947  {6\p@} % Space above
2948  {6\p@} % Space below
2949  {\normalfont} % Body font
2950  {\z@} % Indent amount
2951  {\itshape} % Theorem head font
2952  {.} % Punctuation after theorem head
2953  {5\p@} % Space after theorem head
2954  {\thmname{#1}\thmnumber{ #2}\thmnote{. #3}} % Theorem head spec (can be left empty, meaning `normal')
2955
2956\newtheoremstyle{WBstylethree}
2957  {6\p@} % Space above
2958  {6\p@} % Space below
2959  {\normalfont} % Body font
2960  {\z@} % Indent amount
2961  {\bfseries} % Theorem head font
2962  {.} % Punctuation after theorem head
2963  {5\p@} % Space after theorem head
2964  {} % Theorem head spec (can be left empty, meaning `normal')
2965
2966\theoremstyle{WBstyleone}
2967\newtheorem{theorem}{Theorem}
2968\newtheorem{construction}{Construction}
2969\newtheorem{estimate}{Estimate}
2970\newtheorem{lemma}{Lemma}
2971\newtheorem{corollary}{Corollary}
2972\newtheorem{result}{Result}
2973\newtheorem{algth}{Algorithm}
2974\newtheorem{proposition}{Proposition}
2975\newtheorem{hypothesis}{Hypothesis}
2976\newtheorem{experiment}{Experiment}
2977\newtheorem{LWrule}{Rule}
2978\newtheorem{procedure}{Procedure}
2979
2980\newtheorem{assertion}{Assertion}
2981\newtheorem{axiom}{Axiom}
2982\newtheorem{conjecture}{Conjecture}
2983\newtheorem{criterion}{Criterion}
2984\newtheorem{reduction}{Reduction}
2985\newtheorem{sublemma}{Sublemma}
2986
2987
2988\theoremstyle{WBstyletwo}
2989\newtheorem{case}{Case}
2990\newtheorem{remark}{Remark}
2991\newtheorem{notation}{Notation}
2992
2993\newtheorem{answer}{Answer}
2994\newtheorem{base}{Base}
2995\newtheorem{claim}{Claim}
2996\newtheorem{ccomment}{Comment}
2997\newtheorem{subproof}{Subproof}
2998\newtheorem{conclusion}{Conclusion}
2999\newtheorem{observation}{Observation}
3000\newtheorem{subcase}{Subcase}
3001\newtheorem{step}{Step}
3002\newtheorem{summary}{Summary}
3003
3004
3005
3006\theoremstyle{WBstylethree}
3007\newtheorem{definition}{Definition}
3008\newtheorem{condition}{Condition}
3009\newtheorem{property}{Property}
3010\newtheorem{problem}{Problem}
3011\newtheorem{fact}{Fact}
3012\newtheorem{assumption}{Assumption}
3013\newtheorem{eexample}{Example}
3014\newtheorem{model}{Model}
3015
3016\newtheorem{affirmation}{Affirmation}
3017\newtheorem{application}{Application}
3018\newtheorem{convention}{Convention}
3019\newtheorem{discussion}{Discussion}
3020\newtheorem{exercise}{Exercise}
3021\newtheorem{question}{Question}
3022\newtheorem{scholium}{Scholium}
3023\newtheorem{terminology}{Terminology}
3024
3025%
3026%% Macros for Appendix %%
3027%
3028\newif\ifappendixsec%
3029
3030\newcounter{printcitcnt}
3031
3032%\newcounter{appcnt}
3033%\newcounter{appseccnt}
3034%\newcounter{appsubseccnt}
3035%\newcounter{appsubsubseccnt}
3036
3037%\def\sappendix{\global\appendixsectrue\printjnlcitation%
3038%  \setcounter{figure}{0}%
3039%  \setcounter{table}{0}%
3040%  \setcounter{equation}{0}%
3041%  \renewcommand\thesection{\protect\refstepcounter{appcnt}\protect\refstepcounter{appseccnt}APPENDIX\ \protect\Alph{appcnt}\protect\arabic{appseccnt}:}%
3042%  \renewcommand\thesubsection{\protect\refstepcounter{appsubseccnt}\Alph{appseccnt}.\arabic{appsubseccnt}}%
3043%  \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}%
3044%  \renewcommand\thefigure{\@Alph\c@section\arabic{figure}\enspace }%
3045%  \renewcommand\thetable{\@Alph\c@section\arabic{table}\enspace }%
3046%  \renewcommand\theequation{\@Alph\c@section\arabic{equation}}%
3047%}%
3048%
3049
3050%%%%%%%%%%%%%%%%%%%%appendix%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3051\newif\if@chapter@pp\@chapter@ppfalse
3052\newif\if@knownclass@pp\@knownclass@ppfalse
3053\@ifundefined{chapter}{%
3054  \@ifundefined{section}{}{\@knownclass@pptrue}}{%
3055  \@chapter@pptrue\@knownclass@pptrue}
3056\providecommand{\phantomsection}{}
3057\newcounter{@pps}
3058  \renewcommand{\the@pps}{\alph{@pps}}
3059\newif\if@pphyper
3060  \@pphyperfalse
3061\AtBeginDocument{%
3062  \@ifpackageloaded{hyperref}{\@pphypertrue}{}}
3063
3064\newif\if@dotoc@pp\@dotoc@ppfalse
3065\newif\if@dotitle@pp\@dotitle@ppfalse
3066\newif\if@dotitletoc@pp\@dotitletoc@ppfalse
3067\newif\if@dohead@pp\@dohead@ppfalse
3068\newif\if@dopage@pp\@dopage@ppfalse
3069\DeclareOption{toc}{\@dotoc@pptrue}
3070\DeclareOption{title}{\@dotitle@pptrue}
3071\DeclareOption{titletoc}{\@dotitletoc@pptrue}
3072\DeclareOption{header}{\@dohead@pptrue}
3073\DeclareOption{page}{\@dopage@pptrue}
3074\ProcessOptions\relax
3075\newcommand{\@ppendinput}{}
3076\if@knownclass@pp\else
3077  \PackageWarningNoLine{appendix}%
3078    {There is no \protect\chapter\space or \protect\section\space command.\MessageBreak
3079     The appendix package will not be used}
3080  \renewcommand{\@ppendinput}{\endinput}
3081\fi
3082\@ppendinput
3083
3084\newcommand{\appendixtocon}{\@dotoc@pptrue}
3085\newcommand{\appendixtocoff}{\@dotoc@ppfalse}
3086\newcommand{\appendixpageon}{\@dopage@pptrue}
3087\newcommand{\appendixpageoff}{\@dopage@ppfalse}
3088\newcommand{\appendixtitleon}{\@dotitle@pptrue}
3089\newcommand{\appendixtitleoff}{\@dotitle@ppfalse}
3090\newcommand{\appendixtitletocon}{\@dotitletoc@pptrue}
3091\newcommand{\appendixtitletocoff}{\@dotitletoc@ppfalse}
3092\newcommand{\appendixheaderon}{\@dohead@pptrue}
3093\newcommand{\appendixheaderoff}{\@dohead@ppfalse}
3094\newcounter{@ppsavesec}
3095\newcounter{@ppsaveapp}
3096\setcounter{@ppsaveapp}{0}
3097\newcommand{\@ppsavesec}{%
3098  \if@chapter@pp \setcounter{@ppsavesec}{\value{chapter}} \else
3099                 \setcounter{@ppsavesec}{\value{section}} \fi}
3100\newcommand{\@pprestoresec}{%
3101  \if@chapter@pp \setcounter{chapter}{\value{@ppsavesec}} \else
3102                 \setcounter{section}{\value{@ppsavesec}} \fi}
3103\newcommand{\@ppsaveapp}{%
3104  \if@chapter@pp \setcounter{@ppsaveapp}{\value{chapter}} \else
3105                 \setcounter{@ppsaveapp}{\value{section}} \fi}
3106\newcommand{\restoreapp}{%
3107  \if@chapter@pp \setcounter{chapter}{\value{@ppsaveapp}} \else
3108                 \setcounter{section}{\value{@ppsaveapp}} \fi}
3109\providecommand{\appendixname}{Appendix}
3110\newcommand{\appendixtocname}{Appendices}
3111\newcommand{\appendixpagename}{Appendices}
3112\newcommand{\appendixpage}{%
3113  \if@chapter@pp \@chap@pppage \else \@sec@pppage \fi
3114}
3115\newcommand{\clear@ppage}{%
3116  \if@openright\cleardoublepage\else\clearpage\fi}
3117
3118\newcommand{\@chap@pppage}{%
3119  \clear@ppage
3120  \thispagestyle{plain}%
3121  \if@twocolumn\onecolumn\@tempswatrue\else\@tempswafalse\fi
3122  \null\vfil
3123  \markboth{}{}%
3124  {\centering
3125   \interlinepenalty \@M
3126   \normalfont
3127   \Huge \bfseries \appendixpagename\par}%
3128  \if@dotoc@pp
3129    \addappheadtotoc
3130  \fi
3131  \vfil\newpage
3132  \if@twoside
3133    \if@openright
3134      \null
3135      \thispagestyle{empty}%
3136      \newpage
3137    \fi
3138  \fi
3139  \if@tempswa
3140    \twocolumn
3141  \fi
3142}
3143
3144\newcommand{\@sec@pppage}{%
3145  \par
3146  \addvspace{4ex}%
3147  \@afterindentfalse
3148  {\parindent \z@ \raggedright
3149   \interlinepenalty \@M
3150   \normalfont
3151   \huge \bfseries \appendixpagename%
3152   \markboth{}{}\par}%
3153  \if@dotoc@pp
3154    \addappheadtotoc
3155  \fi
3156  \nobreak
3157  \vskip 3ex
3158  \@afterheading
3159}
3160
3161\newif\if@pptocpage
3162  \@pptocpagetrue
3163\newcommand{\noappendicestocpagenum}{\@pptocpagefalse}
3164\newcommand{\appendicestocpagenum}{\@pptocpagetrue}
3165\newcommand{\addappheadtotoc}{%
3166  \phantomsection
3167  \if@chapter@pp
3168    \if@pptocpage
3169      \addcontentsline{toc}{chapter}{\appendixtocname}%
3170    \else
3171      \if@pphyper
3172        \addtocontents{toc}%
3173          {\protect\contentsline{chapter}{\appendixtocname}{}{\@currentHref}}%
3174      \else
3175        \addtocontents{toc}%
3176          {\protect\contentsline{chapter}{\appendixtocname}{}}%
3177      \fi
3178    \fi
3179  \else
3180    \if@pptocpage
3181      \addcontentsline{toc}{section}{\appendixtocname}%
3182    \else
3183      \if@pphyper
3184        \addtocontents{toc}%
3185          {\protect\contentsline{section}{\appendixtocname}{}{\@currentHref}}%
3186      \else
3187        \addtocontents{toc}%
3188          {\protect\contentsline{section}{\appendixtocname}{}}%
3189      \fi
3190    \fi
3191  \fi
3192}
3193
3194\providecommand{\theH@pps}{\alph{@pps}}
3195
3196\newcommand{\@resets@pp}{\par
3197  \@ppsavesec
3198  \stepcounter{@pps}
3199  \setcounter{section}{0}%
3200  \if@chapter@pp
3201    \setcounter{chapter}{0}%
3202    \renewcommand\@chapapp{\appendixname}%
3203    \renewcommand\thechapter{\@Alph\c@chapter}%
3204  \else
3205    \setcounter{subsection}{0}%
3206\ifnum\c@secnumdepth=1
3207    \renewcommand\thesection{Appendix\@Alph\c@section}%
3208\else
3209  \renewcommand\thesection{\@Alph\c@section}%
3210\fi
3211  \fi
3212  \if@pphyper
3213    \if@chapter@pp
3214      \renewcommand{\theHchapter}{\theH@pps.\Alph{chapter}}%
3215    \else
3216      \renewcommand{\theHsection}{\theH@pps.\Alph{section}}%
3217    \fi
3218    \def\Hy@chapapp{\appendixname}%
3219  \fi
3220  \restoreapp
3221}
3222
3223\renewenvironment{appendix}{\printjnlcitation\section*{Appendix}\global\appendixsectrue%
3224  \setcounter{figure}{0}%
3225  \setcounter{table}{0}%
3226  \setcounter{equation}{0}%
3227  \@resets@pp
3228  \if@dotoc@pp
3229    \if@dopage@pp              % both page and toc
3230      \if@chapter@pp           % chapters
3231        \clear@ppage
3232      \fi
3233      \appendixpage
3234    \else                      % toc only
3235       \if@chapter@pp          % chapters
3236         \clear@ppage
3237       \fi
3238      \addappheadtotoc
3239    \fi
3240  \else
3241    \if@dopage@pp              % page only
3242      \appendixpage
3243    \fi
3244  \fi
3245  \if@chapter@pp
3246    \if@dotitletoc@pp \@redotocentry@pp{chapter} \fi
3247  \else
3248    \if@dotitletoc@pp \@redotocentry@pp{section} \fi
3249    \if@dohead@pp
3250      \def\sectionmark##1{%
3251        \if@twoside
3252          \markboth{\@formatsecmark@pp{##1}}{}
3253        \else
3254          \markright{\@formatsecmark@pp{##1}}{}
3255        \fi}
3256    \fi
3257    \if@dotitle@pp
3258      \def\sectionname{\appendixname}
3259      \def\@seccntformat##1{\@ifundefined{##1name}{}{\csname ##1name\endcsname\ }%
3260        \csname the##1\endcsname\quad}
3261    \fi
3262  \fi%
3263  \renewcommand\thefigure{\@Alph\c@section\arabic{figure}}%
3264  \renewcommand\thetable{\@Alph\c@section\arabic{table}}%
3265  \renewcommand\theequation{\@Alph\c@section\arabic{equation}}%
3266}{%
3267  \@ppsaveapp\@pprestoresec}
3268
3269\newcommand{\setthesection}{\thechapter.\Alph{section}}
3270\newcommand{\setthesubsection}{\thesection.\Alph{subsection}}
3271
3272\newcommand{\@resets@ppsub}{\par
3273  \stepcounter{@pps}
3274  \if@chapter@pp
3275    \setcounter{section}{0}
3276    \renewcommand{\thesection}{\setthesection}
3277  \else
3278    \setcounter{subsection}{0}
3279    \renewcommand{\thesubsection}{\setthesubsection}
3280  \fi
3281  \if@pphyper
3282    \if@chapter@pp
3283      \renewcommand{\theHsection}{\theH@pps.\setthesection}%
3284    \else
3285      \renewcommand{\theHsubsection}{\theH@pps.\setthesubsection}%
3286    \fi
3287    \def\Hy@chapapp{\appendixname}%
3288  \fi
3289}
3290
3291\newenvironment{subappendices}{%
3292  \@resets@ppsub
3293  \if@chapter@pp
3294    \if@dotitletoc@pp \@redotocentry@pp{section} \fi
3295    \if@dotitle@pp
3296      \def\sectionname{\appendixname}
3297      \def\@seccntformat##1{\@ifundefined{##1name}{}{\csname ##1name\endcsname\ }%
3298        \csname the##1\endcsname\quad}
3299    \fi
3300  \else
3301    \if@dotitletoc@pp \@redotocentry@pp{subsection} \fi
3302    \if@dotitle@pp
3303      \def\subsectionname{\appendixname}
3304      \def\@seccntformat##1{\@ifundefined{##1name}{}{\csname ##1name\endcsname\ }%
3305        \csname the##1\endcsname\quad}
3306    \fi
3307  \fi}{}
3308
3309\newcommand{\@formatsecmark@pp}[1]{%
3310  \MakeUppercase{\appendixname\space
3311    \ifnum \c@secnumdepth >\z@
3312      \thesection\quad
3313    \fi
3314    #1}}
3315\newcommand{\@redotocentry@pp}[1]{%
3316  \let\oldacl@pp=\addcontentsline
3317  \def\addcontentsline##1##2##3{%
3318    \def\@pptempa{##1}\def\@pptempb{toc}%
3319    \ifx\@pptempa\@pptempb
3320      \def\@pptempa{##2}\def\@pptempb{#1}%
3321      \ifx\@pptempa\@pptempb
3322\oldacl@pp{##1}{##2}{\appendixname\space ##3}%
3323      \else
3324        \oldacl@pp{##1}{##2}{##3}%
3325      \fi
3326    \else
3327      \oldacl@pp{##1}{##2}{##3}%
3328    \fi}
3329}
3330%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3331
3332\renewcommand\footnoterule{%%LN
3333  \kern-3\p@%
3334  \hrule height0.5pt%
3335  \kern4.4\p@%
3336}%
3337
3338%
3339%%% Macros for float algorithm %%%
3340
3341%\usepackage[plain]{algorithm} %% wrapper
3342%\usepackage{varwidth}%
3343%\usepackage{algorithmicx}%
3344%\usepackage{algpseudocode}%
3345\usepackage{algorithm, algorithmicx, algpseudocode}
3346
3347\usepackage{listings}%
3348\usepackage{alltt}%
3349
3350
3351%%% Macros for upright lowercase greek characters %%%
3352
3353
3354%% since small triangle symbol is not found used \triangleright and rotated to 90 degrees %%
3355
3356
3357\def\@jissue{}%
3358\def\jissue#1{\gdef\@jissue{#1}}%
3359
3360\def\@licenseVal{}%
3361\def\licenseVal#1{\gdef\@licenseVal{#1}}%
3362
3363\def\@supplinks{}%
3364\def\supplinks#1{\gdef\@supplinks{#1}}%
3365
3366\def\@coninterest{}%
3367\def\coninterest#1{\gdef\@coninterest{#1}}%
3368
3369\def\@confinfo{}%
3370\def\confinfo#1{\def\@confinfo{#1}}%
3371
3372\def\@cdate{}%
3373\def\cdate#1{\gdef\@cdate{#1}}%
3374
3375\def\@cname{}%
3376\def\cname#1{\gdef\@cname{#1}}%
3377
3378\def\@cloc{}%
3379\def\cloc#1{\gdef\@cloc{#1}}%
3380
3381\def\tabheadfont{}%
3382
3383\let\fullpagewidth\textwidth%
3384
3385\def\jargon#1{#1}%
3386
3387\newenvironment{bm}[1][]{\begingroup%
3388\if!#1!\else\section*{#1}\fi%
3389}{\endgroup}
3390
3391\let\glosslist\description%
3392\let\endglosslist\enddescription%
3393
3394\newenvironment{ack}[1][]{\begingroup%
3395\if!#1!\else\section*{#1}\fi%
3396}{\endgroup}
3397
3398\def\APLrightarrowbox{}% Use \usepackage{wasysym} to get this symbol
3399\def\boxcircle{}%
3400
3401%% Macros for \citation tag %%
3402
3403\newbox\jnlcitationbox%
3404
3405\def\cname#1{\gdef\author##1{##1}#1}%
3406\def\cyear#1{#1}%
3407\def\ctitle#1{#1}%
3408\def\cjournal#1{\textit{#1}}%
3409\def\cvol#1{\textit{#1}}%
3410
3411\gdef\@jnlcitation{}%
3412\def\jnlcitation#1{\gdef\@jnlcitation{\textbf{How to cite this article: }#1}}%
3413
3414\newdimen\jnlcithsize%
3415%\jnlcithsize=\hsize%
3416\advance\jnlcithsize-12pt% fbox sep x 2
3417\advance\jnlcithsize-1pt% fbox rule x 2
3418
3419\gdef\printjnlcitation{\removelastskip\vskip18pt\fboxsep=6pt\fboxrule=0.5pt%
3420\hskip-\parindentvalue\fbox{\vbox{\noindent\@jnlcitation}}}%
3421
3422\AtEndDocument{\ifappendixsec\else\printjnlcitation\fi}%
3423
3424%% Misc math macros %%
3425
3426\newcommand{\xleftrightarrow}[2][]{\ext@arrow 3399\leftrightarrowfill@{#1}{#2}}%
3427
3428%
3429%%% Macros for Biography %%%
3430%
3431\RequirePackage{wrapfig}%
3432%
3433%  \begin{wrapfigure}[12]{r}[34pt]{5cm} <figure> \end{wrapfigure}
3434%                     --  -  ----  ---
3435%  [number of narrow lines] {placement} [overhang] {width of figure}
3436\newcount\wraplines%
3437\wraplines=5%
3438%
3439\newbox\@authorfigbox%
3440\newskip\@authorfigboxdim%
3441%
3442
3443\newskip\biofigadjskip%
3444\biofigadjskip=0pt%
3445%
3446\newenvironment{biography}[2]{\par\addvspace{10.5pt plus3.375pt minus1.6875pt}%\lineno@off%
3447\def\author##1{\textbf{##1}}%
3448\def\@authorfig{{#1}}%
3449\setbox\@authorfigbox=\hbox{#1}%%10Nov16%%
3450\@authorfigboxdim=\wd\@authorfigbox%
3451\advance\@authorfigboxdim by 10pt
3452\if@dblspace\else\wraplines=7\fi%
3453%14pt%
3454\noindent{%
3455\ifx\@authorfig\@empty\else\unskip%
3456\begin{wrapfigure}[\wraplines]{l}[0pt]{\@authorfigboxdim}%{38.25mm}%
3457\vskip-25pt\vskip\biofigadjskip%
3458\@authorfig%
3459\end{wrapfigure}%
3460\fi%
3461#2%
3462\par%
3463}}{\par\addvspace{10.5pt plus3.375pt minus1.6875pt}}
3464
3465\def\emph#1{\textit{#1}}
3466
3467%%% Macros for Bibliography %%%
3468
3469
3470\endinput
Note: See TracBrowser for help on using the repository browser.