source: doc/papers/AMA/AMA-stix/ama/WileyNJD-v2.cls @ 17c6c1c3

ADTarm-ehast-experimentalcleanup-dtorsenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 17c6c1c3 was 581743f, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

adjustments to better match SPE format

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