WileyNJD-v2.cls 107 KB

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