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

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerwith_gc
Last change on this file since bc82fac was bc82fac, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

restore original AMA macros

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