rsos.cls 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530
  1. %%% LaTeX class for manuscripts submitted to the
  2. %%% Royal Society (RS)
  3. %%%
  4. %%% version: 1.1 (26 October 2012)
  5. %%%
  6. \NeedsTeXFormat{LaTeX2e}[2005/12/01]
  7. \ProvidesClass{rsproca}
  8. [2005/12/01 v1.1
  9. Standard LaTeX document class]
  10. \newif\if@doublespace\@doublespacefalse
  11. \newif\if@usetimes\@usetimesfalse
  12. \newif\if@usemathtime\@usemathtimefalse
  13. \newif\if@restonecol
  14. \newif\if@titlepage
  15. \newif\iflink
  16. \newif\ifpressmark
  17. \newif\ifwebfig
  18. \newif\ifCapsgreek
  19. \newif\ifopenacc
  20. \newif\if@supertitle@provided \@supertitle@providedfalse
  21. \DeclareOption{usetimes}{\@usetimestrue}
  22. \DeclareOption{usemathtime}{\@usemathtimetrue}
  23. \DeclareOption{doublespace}{\@doublespacetrue}
  24. \DeclareOption{nospace}{\@doublespacefalse}
  25. \DeclareOption{link}{\global\linktrue}
  26. \DeclareOption{draft}{\PassOptionsToPackage{draft}{graphicx}}
  27. \DeclareOption{a4paper}{\PassOptionsToPackage{a4}{crop}}
  28. \DeclareOption{centre}{\PassOptionsToPackage{center}{crop}}
  29. \DeclareOption{crop}{\PassOptionsToPackage{cam}{crop}}
  30. \DeclareOption{nocrop}{\PassOptionsToPackage{off}{crop}}
  31. \DeclareOption{info}{\PassOptionsToPackage{info}{crop}}
  32. \DeclareOption{noinfo}{\PassOptionsToPackage{noinfo}{crop}}
  33. \DeclareOption{grid}{\def\@grid{grid}}
  34. \DeclareOption{Capsgreek}{\global\Capsgreektrue}
  35. \DeclareOption{openacc}{\global\openacctrue}
  36. \DeclareOption{openbib}{%
  37. \AtEndOfPackage{%
  38. \renewcommand\@openbib@code{%
  39. \advance\leftmargin\bibindent
  40. \itemindent -\bibindent
  41. \listparindent \itemindent
  42. \parsep \z@
  43. }%
  44. \renewcommand\newblock{\par}}%
  45. }
  46. \ExecuteOptions{openacc,nocrop,a4paper,centre,twoside,onecolumn,final,openbib,Capsgreek}
  47. \ProcessOptions
  48. \RequirePackage{vruler}
  49. \usepackage{crop}%
  50. \usepackage{amsmath,amssymb,amsfonts,upref,endnotes}
  51. \usepackage{amsthm}
  52. \usepackage{marginnote}
  53. \usepackage{soul}
  54. \RequirePackage{graphicx}
  55. \usepackage[figuresright]{rotating}
  56. \usepackage{color}
  57. \ifCapsgreek
  58. \AtBeginDocument{\let\Gamma\varGamma
  59. \let\Delta\varDelta
  60. \let\Theta\varTheta
  61. \let\Lambda\varLambda
  62. \let\Xi\varXi
  63. \let\Pi\varPi
  64. \let\Sigma\varSigma
  65. \let\Upsilon\varUpsilon
  66. \let\Phi\varPhi
  67. \let\Psi\varPsi
  68. \let\Omega\varOmega}
  69. \fi
  70. \newcommand{\query}[1]{\marginnote{{#1}}}
  71. \usepackage{dcolumn}
  72. \newcolumntype{d}{D{.}{.}{-1}}
  73. \RequirePackage[T1]{fontenc}
  74. \usepackage{palatino}
  75. \usepackage[scaled=0.85]{helvet}
  76. \renewcommand\normalsize{%
  77. \@setfontsize\normalsize\@ixpt\@xiipt
  78. \abovedisplayskip 6\p@ \@plus2\p@ \@minus0\p@
  79. \abovedisplayshortskip \z@ \@plus3\p@
  80. \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
  81. \belowdisplayskip \abovedisplayskip
  82. \let\@listi\@listI}
  83. \normalsize
  84. \newcommand\small{%
  85. \@setfontsize\small\@ixpt{11}%
  86. \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
  87. \abovedisplayshortskip \z@ \@plus2\p@
  88. \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
  89. \def\@listi{\leftmargin\leftmargini
  90. \topsep 4\p@ \@plus2\p@ \@minus2\p@
  91. \parsep 2\p@ \@plus\p@ \@minus\p@
  92. \itemsep \parsep}%
  93. \belowdisplayskip \abovedisplayskip
  94. }
  95. \newcommand\footnotesize{%
  96. \@setfontsize\footnotesize\@ixpt{11}%
  97. \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
  98. \abovedisplayshortskip \z@ \@plus\p@
  99. \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
  100. \def\@listi{\leftmargin\leftmargini
  101. \topsep 3\p@ \@plus\p@ \@minus\p@
  102. \parsep 2\p@ \@plus\p@ \@minus\p@
  103. \itemsep \parsep}%
  104. \belowdisplayskip \abovedisplayskip
  105. }
  106. \newcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
  107. \newcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
  108. \newcommand\large{\@setfontsize\large\@xiipt{14}}
  109. \newcommand\Large{\@setfontsize\Large\@xivpt{18}}
  110. \newcommand\LARGE{\@setfontsize\LARGE\@xviipt{22}}
  111. \newcommand\huge{\@setfontsize\huge\@xxpt{25}}
  112. \newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
  113. \setlength\parindent{15\p@}
  114. \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}
  115. \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}
  116. \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}
  117. \setlength\headheight{12\p@}
  118. \setlength\headsep {25\p@}
  119. \setlength\topskip {10\p@}
  120. \setlength\footskip{30\p@}
  121. \if@compatibility \setlength\maxdepth{4\p@} \else
  122. \setlength\maxdepth{.5\topskip} \fi
  123. \if@compatibility
  124. \if@twocolumn
  125. \setlength\textwidth{410\p@}
  126. \else
  127. \setlength\textwidth{345\p@}
  128. \fi
  129. \else
  130. \setlength\@tempdima{\paperwidth}
  131. \addtolength\@tempdima{-2in}
  132. \setlength\@tempdimb{345\p@}
  133. \if@twocolumn
  134. \ifdim\@tempdima>2\@tempdimb\relax
  135. \setlength\textwidth{2\@tempdimb}
  136. \else
  137. \setlength\textwidth{\@tempdima}
  138. \fi
  139. \else
  140. \ifdim\@tempdima>\@tempdimb\relax
  141. \setlength\textwidth{\@tempdimb}
  142. \else
  143. \setlength\textwidth{\@tempdima}
  144. \fi
  145. \fi
  146. \fi
  147. \if@compatibility\else
  148. \@settopoint\textwidth
  149. \fi
  150. \if@compatibility
  151. \setlength\textheight{43\baselineskip}
  152. \else
  153. \setlength\@tempdima{\paperheight}
  154. \addtolength\@tempdima{-2in}
  155. \addtolength\@tempdima{-1.5in}
  156. \divide\@tempdima\baselineskip
  157. \@tempcnta=\@tempdima
  158. \setlength\textheight{\@tempcnta\baselineskip}
  159. \fi
  160. \addtolength\textheight{\topskip}
  161. \if@twocolumn
  162. \setlength\marginparsep {10\p@}
  163. \else
  164. \setlength\marginparsep{11\p@}
  165. \fi
  166. \setlength\marginparpush{5\p@}
  167. \if@compatibility
  168. \if@twoside
  169. \setlength\oddsidemargin {44\p@}
  170. \setlength\evensidemargin {82\p@}
  171. \setlength\marginparwidth {107\p@}
  172. \else
  173. \setlength\oddsidemargin {63\p@}
  174. \setlength\evensidemargin {63\p@}
  175. \setlength\marginparwidth {90\p@}
  176. \fi
  177. \if@twocolumn
  178. \setlength\oddsidemargin {30\p@}
  179. \setlength\evensidemargin {30\p@}
  180. \setlength\marginparwidth {48\p@}
  181. \fi
  182. \else
  183. \if@twoside
  184. \setlength\@tempdima {\paperwidth}
  185. \addtolength\@tempdima {-\textwidth}
  186. \setlength\oddsidemargin {.4\@tempdima}
  187. \addtolength\oddsidemargin {-1in}
  188. \setlength\marginparwidth {.6\@tempdima}
  189. \addtolength\marginparwidth {-\marginparsep}
  190. \addtolength\marginparwidth {-0.4in}
  191. \else
  192. \setlength\@tempdima {\paperwidth}
  193. \addtolength\@tempdima {-\textwidth}
  194. \setlength\oddsidemargin {.5\@tempdima}
  195. \addtolength\oddsidemargin {-1in}
  196. \setlength\marginparwidth {.5\@tempdima}
  197. \addtolength\marginparwidth {-\marginparsep}
  198. \addtolength\marginparwidth {-0.4in}
  199. \addtolength\marginparwidth {-.4in}
  200. \fi
  201. \ifdim \marginparwidth >2in
  202. \setlength\marginparwidth{2in}
  203. \fi
  204. \@settopoint\oddsidemargin
  205. \@settopoint\marginparwidth
  206. \setlength\evensidemargin {\paperwidth}
  207. \addtolength\evensidemargin{-2in}
  208. \addtolength\evensidemargin{-\textwidth}
  209. \addtolength\evensidemargin{-\oddsidemargin}
  210. \@settopoint\evensidemargin
  211. \fi
  212. \if@compatibility
  213. \setlength\topmargin{27pt}
  214. \else
  215. \setlength\topmargin{\paperheight}
  216. \addtolength\topmargin{-2in}
  217. \addtolength\topmargin{-\headheight}
  218. \addtolength\topmargin{-\headsep}
  219. \addtolength\topmargin{-\textheight}
  220. \addtolength\topmargin{-\footskip} % this might be wrong!
  221. \addtolength\topmargin{-.5\topmargin}
  222. \@settopoint\topmargin
  223. \fi
  224. \setlength\footnotesep{6.65\p@}
  225. \setlength{\skip\footins}{9\p@ \@plus 4\p@ \@minus 2\p@}
  226. \setlength\floatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
  227. \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
  228. \setlength\intextsep {12\p@ \@plus 2\p@ \@minus 2\p@}
  229. \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
  230. \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
  231. \setlength\@fptop{0\p@ \@plus 1fil}
  232. \setlength\@fpsep{8\p@ \@plus 2fil}
  233. \setlength\@fpbot{0\p@ \@plus 1fil}
  234. \setlength\@dblfptop{0\p@ \@plus 1fil}
  235. \setlength\@dblfpsep{8\p@ \@plus 2fil}
  236. \setlength\@dblfpbot{0\p@ \@plus 1fil}
  237. \setlength\partopsep{0\p@ \@plus 0\p@ \@minus 0\p@}
  238. \def\@listi{\leftmargin\leftmargini
  239. \parsep 0\p@ \@plus0\p@ \@minus\p@
  240. \topsep 12\p@ \@plus2\p@ \@minus0\p@
  241. \itemsep0\p@ \@plus0\p@ \@minus\p@}
  242. \let\@listI\@listi
  243. \@listi
  244. \def\@listii {\leftmargin\leftmarginii
  245. \labelwidth\leftmarginii
  246. \advance\labelwidth-\labelsep
  247. \topsep 4\p@ \@plus2\p@ \@minus\p@
  248. \parsep 0\p@
  249. \itemsep 0pt}
  250. \def\@listiii{\leftmargin\leftmarginiii
  251. \labelwidth\leftmarginiii
  252. \advance\labelwidth-\labelsep
  253. \topsep 2\p@ \@plus\p@\@minus\p@
  254. \parsep \z@
  255. \partopsep \p@ \@plus\z@ \@minus\p@
  256. \itemsep \topsep}
  257. \def\@listiv {\leftmargin\leftmarginiv
  258. \labelwidth\leftmarginiv
  259. \advance\labelwidth-\labelsep}
  260. \def\@listv {\leftmargin\leftmarginv
  261. \labelwidth\leftmarginv
  262. \advance\labelwidth-\labelsep}
  263. \def\@listvi {\leftmargin\leftmarginvi
  264. \labelwidth\leftmarginvi
  265. \advance\labelwidth-\labelsep}
  266. \setlength\lineskip{1\p@}
  267. \setlength\normallineskip{1\p@}
  268. \renewcommand\baselinestretch{}
  269. \setlength\parskip{0\p@}%
  270. \setlength\parindent{1pc}%
  271. \setlength\smallskipamount{3\p@ \@plus 1\p@ \@minus 1\p@}%
  272. \setlength\medskipamount{6\p@ \@plus 2\p@ \@minus 2\p@}%
  273. \setlength\bigskipamount{12\p@ \@plus 4\p@ \@minus 4\p@}%
  274. \@lowpenalty 51%
  275. \@medpenalty 151%
  276. \@highpenalty 301%
  277. \clubpenalty 10000%
  278. \widowpenalty 10000%
  279. \displaywidowpenalty 100%
  280. \predisplaypenalty 10000%
  281. \postdisplaypenalty 2500%
  282. \interlinepenalty 0%
  283. \brokenpenalty 10000%
  284. \hyphenpenalty=10000
  285. \setlength{\paperheight}{247truemm}%
  286. \setlength{\paperwidth}{174truemm}%
  287. \setlength\headheight{7\p@} % height of running head
  288. \setlength\topmargin{12.15mm} % top margin 3pc, 9pt
  289. \addtolength\topmargin{8\p@} %
  290. \addtolength\topmargin{-1in} % subtract out the 1 inch driver margin
  291. \setlength\topskip{8\p@} % height of first line of text%% {10\p@}
  292. \setlength\headsep{0\p@} % space below running head --
  293. \addtolength\headsep{-\topskip} % base to base with first line of text
  294. \setlength\footskip{23\p@} % space above footer line
  295. \setlength\maxdepth{.02\topskip} % pages can be short or deep by half a line?
  296. \setlength\textwidth{135mm} % text measure excluding margins
  297. \setlength\textheight{53\baselineskip} % text height of 50pc,
  298. \addtolength\textheight{-1.9pt} % - including first line of text
  299. \setlength\marginparsep{6\p@}
  300. \setlength\marginparpush{8\p@}
  301. \setlength\marginparwidth{4.2pc}
  302. \setlength\oddsidemargin{19.5mm}%4.8%4.64
  303. \addtolength\oddsidemargin{-1in} % subtract out the 1 inch driver margin
  304. \setlength\@tempdima{\paperwidth}
  305. \addtolength\@tempdima{-\textwidth}
  306. \addtolength\@tempdima{-19.5mm}
  307. \setlength\evensidemargin{\@tempdima}
  308. \addtolength\evensidemargin{-1in}
  309. \setlength\columnsep{6\p@} % space between columns for double-column text
  310. \setlength\columnseprule{0\p@} % width of rule between two columns
  311. \setlength\footnotesep{0\p@} % space between footnotes
  312. \setlength{\skip\footins}{5\p@ \@plus 6\p@ \@minus 1\p@}
  313. \setcounter{totalnumber}{10}
  314. \setcounter{topnumber}{5}
  315. \setcounter{bottomnumber}{5}
  316. \renewcommand\topfraction{.921}
  317. \renewcommand\bottomfraction{.921}
  318. \renewcommand\textfraction{.079}
  319. \renewcommand\floatpagefraction{.887}
  320. \renewcommand\dbltopfraction{.88}
  321. \renewcommand\dblfloatpagefraction{.88}
  322. \setlength\floatsep {18\p@ \@plus 2\p@ \@minus 2\p@}
  323. \setlength\textfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
  324. \setlength\intextsep {18\p@ \@plus 2\p@ \@minus 2\p@}
  325. \setlength\dblfloatsep {12\p@ \@plus 2\p@ \@minus 2\p@}
  326. \setlength\dbltextfloatsep{20\p@ \@plus 2\p@ \@minus 4\p@}
  327. \setlength\@fptop{0\p@} % no space above float page figures
  328. \setlength\@fpsep{12\p@ \@plus 2fil}
  329. \setlength\@fpbot{0\p@ \@plus 1fil}
  330. \setlength\@dblfptop{0\p@}
  331. \setlength\@dblfpsep{12\p@ \@plus 1fil}
  332. \setlength\@dblfpbot{0\p@ \@plus 2fil}
  333. \def\startpage#1{\gdef\@startpage{#1}%
  334. \setcounter{page}{#1}}\gdef\@startpage{}%
  335. \def\endpage#1{\gdef\@endpage{#1}}\endpage{}%
  336. \def\lastpage@putlabel{\addtocounter{page}{-1}%
  337. \iflink%
  338. \immediate\write\@auxout{\string%
  339. \newlabel{LastPage}{{\thepage}{\thepage}{}{}{}}%
  340. }%
  341. \else%
  342. \immediate\write\@auxout{\string%
  343. \newlabel{LastPage}{{\thepage}{\thepage}}%
  344. }%
  345. \fi%
  346. \addtocounter{page}{1}}
  347. \AtBeginDocument{%
  348. \usepackage{longtable}}
  349. \newif\ifquery
  350. \def\printqry#1#2{%
  351. \gdef\@firstauthor{#1}%
  352. \gdef\@corrauthor{#2}%
  353. \global\querytrue}
  354. \AtEndDocument{%
  355. \message{Setting LastPage}%
  356. \clearpage\lastpage@putlabel}%
  357. \def\jname#1{\gdef\@jname{#1}}
  358. \def\@jname{rsos}
  359. \sodef\stitletrack{}{0.11em}{0.5em}{\z@}
  360. \def\mytrack#1{\kern1pt\fontsize{8}{10}\selectfont\stitletrack{#1}}
  361. \def\supertitle#1{\def\@supertitle{{\noindent {{#1}}}}\global\@supertitle@providedtrue}
  362. \def\Journal#1{\gdef\@Journal{#1}}\Journal{R. Soc. open sci. }
  363. \def\Doi#1{\gdef\@doi{10.1098/\@jname.#1}}\Doi{}
  364. \def\Year#1{\gdef\@Year{#1}}\Year{}
  365. \def\Vol#1{\gdef\@Vol{#1}}\Vol{}
  366. \def\artid#1{\gdef\@artid{#1}}\artid{}
  367. \def\Issue#1{\gdef\@Issue{#1}}\Issue{}
  368. \def\Pages#1{\gdef\@Pages{#1}}\Pages{\@startpage--\iflink\ref*{LastPage}\else\ref{LastPage}\fi}%
  369. \def\rhfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{11}{14}\selectfont}
  370. \def\foliofont{\reset@font\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{9}{12}\selectfont}
  371. \def\dropfoliofont{\reset@font\fontfamily{\rmdefault}\fontseries{m}\fontshape{n}\fontsize{10}{12}\selectfont}
  372. \def\rffont{\fontfamily{\rmdefault}\fontseries{m}\fontshape{it}\fontsize{8}{10}\selectfont}
  373. \gdef\rec#1{\gdef\@rec{#1}}\rec{}
  374. \gdef\acc#1{\gdef\@acc{#1}}\acc{}
  375. \gdef\pub#1{\gdef\@pub{#1}}\pub{}
  376. \gdef\onlinepub#1{\gdef\@onlinepub{#1}}\onlinepub{}
  377. \def\Copyrightinfo#1{\gdef\@copyrightinfo{#1}}\Copyrightinfo{This journal is \raise1.2pt\hbox{\scriptsize\smash{\copyright}}\ 2012 The Royal Society}
  378. \def\slinf#1{\gdef\@sinfo{\vbox to 0pt{\vskip14pt\scriptsize {\jobname --- \the\day/\the\month/\the\year ---\CROP@time ---Copy Edited by: #1}}}}\slinf{}
  379. \def\AOPfooter{\hbox to \textwidth{\begin{minipage}[b]{\textwidth}%
  380. \fontsize{8}{9}\selectfont%
  381. \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll@{}}%
  382. \ifx\@rec\empty\ \else\textit{Received}\ \@rec\fi & \\%
  383. \ifx\@acc\empty\ \else\textit{Accepted}\ \@acc\fi & \@copyrightinfo%
  384. \end{tabular*}%
  385. \vspace*{-3.5pt}%
  386. \end{minipage}}}
  387. \newdimen\catchlinewd\catchlinewd\textwidth
  388. \advance\catchlinewd-23pt%
  389. \newdimen\dcht\dcht=2.25pt
  390. \newdimen\frametextht\frametextht\textheight%
  391. \advance\frametextht-\dcht%
  392. \def\innerframe{\ifx\@undefined\@grid\else\rlap{\textcolor{magenta}{\vbox to 0pt{%
  393. \vskip-\headheight%
  394. \vbox to 0pt{\vss\hrule \@height.1pt width\textwidth}%
  395. \vskip\headheight\vbox to 0pt{\vss\hrule \@height.1pt width\textwidth}%
  396. \vskip\headsep\vbox to 0pt{\vss\hrule \@height.1pt width\textwidth}%
  397. \hbox to \textwidth{\llap{\vrule \@width.1pt height\frametextht}\hfil%
  398. \vrule \@width.1pt height\frametextht}%
  399. \vbox to 0pt{\vss\hrule \@height.1pt width\textwidth}%
  400. \vskip \footskip\vskip\dcht\vbox to 0pt{\vss\hrule \@height.1pt width\textwidth}%
  401. \@ifundefined{footheight}{}{\vskip -\footheight}%
  402. \vbox to 0pt{\vss\hrule \@height.1pt width\textwidth}%
  403. \vss%
  404. }}}\fi}%
  405. \definecolor{gray}{cmyk}{0,0,0,.2}% #1 50pt width
  406. \def\fproofmark#1{\vbox to 0pt{\noindent{\textcolor{gray}{\vrule height23pt depth0pt width\textwidth}}\llap{\raise6pt\hbox to \textwidth{\hfill {\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{16}{14}\selectfont\textcolor{white}{#1}} \hfill}}}\nointerlineskip}
  407. \def\pressmark#1{\ifpressmark{\rlap{\vbox to 0pt{\vskip-3pc\fproofmark{#1}}}}\fi}
  408. \definecolor{jobcolor}{cmyk}{0,0,0,.95}
  409. \definecolor{joblightcolor}{cmyk}{0,0,0,.95}
  410. \definecolor{abstractcolor}{cmyk}{0,0,0,.95}
  411. \definecolor{copyrightcolor}{cmyk}{.04,.04,.12,.08}
  412. \Vol{00}
  413. \artid{0000000}
  414. \newlength{\myrunhwidth}
  415. \def\runhead{\textcolor{jobcolor}{\rhfont \@jname.royalsocietypublishing.org\enskip \@Journal \@artid\,\,\,}}
  416. \settowidth{\myrunhwidth}{\runhead}
  417. \def\myrunhead{\vbox{\hbox{\colorbox{black}{\hbox to 10pt{\hfil\textcolor{white}{\foliofont\thepage}\hfil}}}\vskip11pt
  418. \hbox{\hskip3pt\begin{turn}{-90}{\vbox{\hbox{\runhead}
  419. \vspace*{3pt}
  420. \hbox to \the\myrunhwidth{\dotfill}}}\end{turn}}}\hspace*{-3.5pc}}
  421. \def\ps@plain{\vskip-3pc\let\@mkboth\@gobbletwo
  422. \def\@oddfoot{\noindent\raisebox{-7.5pt}{\hskip-12.8pt\includegraphics{RSOS_Pubs_Logo_Line_CMYK}}
  423. \ifopenacc
  424. \hskip28.8pt\colorbox{copyrightcolor}{\hbox to 75mm{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{7.5}{10}\selectfont
  425. \vbox{\hsize75mm \textcolor{black}{$\copyright$ \@Year\ The Authors. Published by the Royal Society under the terms of the Creative Commons Attribution
  426. License \iflink\href{http://creativecommons.org/licenses/by/4.0/}{http://creativecommons.org/licenses/}\break \href{http://creativecommons.org/licenses/by/4.0/}{by/4.0/}\else http://creativecommons.org/licenses/\break by/4.0/\fi, which permits unrestricted use, provided the original author and source are credited.\vphantom{g}}}\par}}
  427. \else
  428. \hskip28.8pt\colorbox{copyrightcolor}{\hbox to 75mm{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{7.5}{10}\selectfont
  429. \vbox{\hsize75mm \textcolor{black}{$\copyright$ \@Year\ The Author(s) Published by the Royal Society.
  430. All rights reserved.}}\par}}
  431. \fi
  432. }%
  433. \let\@evenfoot\@oddfoot%
  434. \def\@oddhead{\smash{\begin{picture}(0,0)\put(0,23){\pressmark{{ARTICLE IN PRESS}}}\end{picture}}\innerframe}%
  435. \let\@evenhead\@oddhead}
  436. \def\ps@headings{%
  437. \let\@oddfoot\@empty
  438. \def\@evenhead{\hspace*{\fill}\myrunhead}%
  439. \def\@oddhead{\hspace*{\fill}\myrunhead}%
  440. \let\@mkboth\markboth
  441. \def\sectionmark##1{%
  442. \markright {\MakeUppercase{%
  443. \ifnum \c@secnumdepth >\m@ne
  444. \thesection\quad
  445. \fi
  446. ##1}}}}
  447. \def\ps@myheadings{%
  448. \let\@oddfoot\@empty\let\@evenfoot\@empty
  449. \def\@evenhead{}%
  450. \def\@oddhead{}%
  451. \let\@mkboth\@gobbletwo
  452. \let\sectionmark\@gobble
  453. \let\subsectionmark\@gobble
  454. }
  455. \if@titlepage
  456. \newcommand\maketitle{\begin{titlepage}%
  457. \let\footnotesize\small
  458. \let\footnoterule\relax
  459. \let \footnote \thanks
  460. \null\vfil
  461. \vskip 60\p@
  462. \begin{center}%
  463. {\Large\mathversion{bold}\@title \par}%
  464. \vskip 3em%
  465. {\large
  466. \lineskip .75em%
  467. \begin{tabular}[t]{c}%
  468. \@author
  469. \end{tabular}\par}%
  470. \vskip 1.5em%
  471. {\large \@date \par}% % Set date in \large size.
  472. \end{center}\par
  473. \@thanks
  474. \vfil\null
  475. \end{titlepage}%
  476. \setcounter{footnote}{0}%
  477. \global\let\thanks\relax
  478. \global\let\maketitle\relax
  479. \global\let\@thanks\@empty
  480. \global\let\@date\@empty
  481. \global\let\@title\@empty
  482. \global\let\title\relax
  483. \global\let\author\relax
  484. \global\let\date\relax
  485. \global\let\and\relax
  486. }
  487. \else
  488. \newcommand\maketitle{\par
  489. \begingroup
  490. \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  491. \def\@makefnmark{\rlap{\@textsuperscript{\normalfont\@thefnmark}}}%
  492. \long\def\@makefntext##1{\parindent 1em\noindent
  493. \hb@[email protected]{%
  494. \hss\@textsuperscript{\normalfont\@thefnmark}}##1}%
  495. \if@twocolumn
  496. \ifnum \col@number=\@ne
  497. \@maketitle
  498. \else
  499. \twocolumn[\@maketitle]%
  500. \fi
  501. \else
  502. \newpage
  503. \global\@topnum\z@ % Prevents figures from going at top of page.
  504. \@maketitle
  505. \fi
  506. \thispagestyle{plain}
  507. \@thanks
  508. \endgroup
  509. \setcounter{footnote}{0}%
  510. \global\let\thanks\relax
  511. \global\let\maketitle\relax
  512. \global\let\@maketitle\relax
  513. \global\let\@thanks\@empty
  514. \global\let\@date\@empty
  515. \global\let\@title\@empty
  516. \global\let\title\relax
  517. \global\let\author\relax
  518. \global\let\date\relax
  519. \global\let\and\relax
  520. }
  521. \def\@maketitle{%
  522. \newpage
  523. \null
  524. \vskip 2em%
  525. \begin{center}%
  526. \let \footnote \thanks
  527. {\LARGE\mathversion{bold} \@title \par}%
  528. \vskip 1.5em%
  529. {\large
  530. \lineskip .5em%
  531. \begin{tabular}[t]{c}%
  532. \@author
  533. \end{tabular}\par}%
  534. \vskip 1em%
  535. {\large \@date}%
  536. \end{center}%
  537. \par
  538. \vskip 1.5em}
  539. \fi
  540. \setcounter{secnumdepth}{3}
  541. \newcounter {part}
  542. \newcounter {section}
  543. \newcounter {subsection}[section]
  544. \newcounter {subsubsection}[subsection]
  545. \newcounter {paragraph}[subsubsection]
  546. \newcounter {subparagraph}[paragraph]
  547. \renewcommand \thepart {\@Roman\c@part}
  548. \renewcommand \thesection {\@arabic\c@section}
  549. \renewcommand\thesubsection {(\@alph\c@subsection)}
  550. \renewcommand\thesubsubsection{\@roman\c@subsubsection}
  551. \renewcommand\theparagraph {\thesubsubsection.\@arabic\c@paragraph}
  552. \renewcommand\thesubparagraph {\theparagraph.\@arabic\c@subparagraph}
  553. \newcommand\part{%
  554. \if@noskipsec \leavevmode \fi
  555. \par
  556. \addvspace{4ex}%
  557. \@afterindentfalse
  558. \secdef\@part\@spart}
  559. \def\@part[#1]#2{%
  560. \ifnum \c@secnumdepth >\m@ne
  561. \refstepcounter{part}%
  562. \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
  563. \else
  564. \addcontentsline{toc}{part}{#1}%
  565. \fi
  566. {\parindent \z@ \raggedright
  567. \interlinepenalty \@M
  568. \normalfont
  569. \ifnum \c@secnumdepth >\m@ne
  570. \Large\bfseries \partname~\thepart
  571. \par\nobreak
  572. \fi
  573. \huge \bfseries #2%
  574. \markboth{}{}\par}%
  575. \nobreak
  576. \vskip 3ex
  577. \@afterheading}
  578. \def\@spart#1{%
  579. {\parindent \z@ \raggedright
  580. \interlinepenalty \@M
  581. \normalfont
  582. \huge \bfseries #1\par}%
  583. \nobreak
  584. \vskip 3ex
  585. \@afterheading}
  586. \def\sectionfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{16}{18}\selectfont\color{jobcolor}}
  587. \def\subsectionfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{14}{18}\selectfont\color{jobcolor}}
  588. \def\subsubsectionfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{12}{14}\selectfont\color{jobcolor}}
  589. \newcommand\section{\def\@seccntformat##1{\csname the##1\endcsname.\hskip.4em}\@startsection {section}{1}{\z@}%
  590. {-12pt \@plus -1ex \@minus -.2ex}%
  591. {6pt}%
  592. {\sectionfont}}
  593. \newcommand\subsection{\def\@seccntformat##1{\csname the##1\endcsname\hskip.4em}\@startsection{subsection}{2}{\z@}%
  594. {10pt \@plus 1ex \@minus .2ex}%
  595. {6pt}%
  596. {\subsectionfont}}
  597. \newcommand\subsubsection{\def\@seccntformat##1{\textup{(\csname the##1\endcsname\textup)}\,}\@startsection{subsubsection}{3}{\z@}%
  598. {9pt \@plus 1ex \@minus .2ex}%
  599. {6pt}%
  600. {\subsubsectionfont}}
  601. \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  602. {3.25ex \@plus1ex \@minus.2ex}%
  603. {-1em}%
  604. {\normalfont\normalsize\bfseries}}
  605. \newcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
  606. {3.25ex \@plus1ex \@minus .2ex}%
  607. {-1em}%
  608. {\normalfont\normalsize\bfseries}}
  609. %
  610. \def\@startsection#1#2#3#4#5#6{%
  611. \if@noskipsec \leavevmode \fi
  612. \par
  613. \@tempskipa #4\relax
  614. \ifdim \@tempskipa <\z@
  615. \@tempskipa -\@tempskipa \@afterindentfalse
  616. \fi
  617. \if@nobreak
  618. \everypar{}%
  619. \ifnum#2=2
  620. \@afterindentfalse
  621. \fi
  622. \else
  623. \addpenalty\@secpenalty\addvspace\@tempskipa
  624. \fi
  625. \@ifstar
  626. {\@ssect{#3}{#4}{#5}{#6}}%
  627. {\@dblarg{\@sect{#1}{#2}{#3}{#4}{#5}{#6}}}}
  628. %
  629. \def\@sect#1#2#3#4#5#6[#7]#8{%
  630. \ifnum #2>\c@secnumdepth
  631. \let\@svsec\@empty
  632. \else
  633. \refstepcounter{#1}%
  634. \protected@edef\@svsec{\@seccntformat{#1}\relax}%
  635. \fi
  636. \@tempskipa #5\relax
  637. \ifdim \@tempskipa>\z@
  638. \begingroup
  639. #6{%
  640. \@hangfrom{\hskip #3\relax\@svsec}%
  641. \interlinepenalty \@M #8\@@par}%
  642. \endgroup
  643. \csname #1mark\endcsname{#7}%
  644. \addcontentsline{toc}{#1}{%
  645. \ifnum #2>\c@secnumdepth \else
  646. \protect\numberline{\csname the#1\endcsname}%
  647. \fi
  648. #7}%
  649. \else
  650. \def\@svsechd{%
  651. #6{\hskip #3\relax
  652. \@svsec #8}%
  653. \csname #1mark\endcsname{#7}%
  654. \addcontentsline{toc}{#1}{%
  655. \ifnum #2>\c@secnumdepth \else
  656. \protect\numberline{\csname the#1\endcsname}%
  657. \fi
  658. #7}}%
  659. \fi
  660. \@xsect{#5}}
  661. \if@twocolumn
  662. \setlength\leftmargini {2em}
  663. \else
  664. \setlength\leftmargini {32.5pt}
  665. \fi
  666. \leftmargin \leftmargini
  667. \setlength\leftmarginii {2.2em}
  668. \setlength\leftmarginiii {1.87em}
  669. \setlength\leftmarginiv {1.7em}
  670. \if@twocolumn
  671. \setlength\leftmarginv {.5em}
  672. \setlength\leftmarginvi {.5em}
  673. \else
  674. \setlength\leftmarginv {1em}
  675. \setlength\leftmarginvi {1em}
  676. \fi
  677. \setlength \labelsep {.4em}
  678. \setlength \labelwidth{\leftmargini}
  679. \addtolength\labelwidth{-\labelsep}
  680. \@beginparpenalty -\@lowpenalty
  681. \@endparpenalty -\@lowpenalty
  682. \@itempenalty -\@lowpenalty
  683. \renewcommand\theenumi{(\@roman\c@enumi)}
  684. \renewcommand\theenumii{\@alph\c@enumii}
  685. \renewcommand\theenumiii{\@roman\c@enumiii}
  686. \renewcommand\theenumiv{\@Alph\c@enumiv}
  687. \newcommand\labelenumi{\theenumi}
  688. \newcommand\labelenumii{(\theenumii)}
  689. \newcommand\labelenumiii{\theenumiii.}
  690. \newcommand\labelenumiv{\theenumiv.}
  691. \renewcommand\p@enumii{\theenumi}
  692. \renewcommand\p@enumiii{\theenumi(\theenumii)}
  693. \renewcommand\p@enumiv{\p@enumiii\theenumiii}
  694. \newcommand\labelitemi{\textbullet}
  695. \newcommand\labelitemii{\normalfont\bfseries \textendash}
  696. \newcommand\labelitemiii{\textasteriskcentered}
  697. \newcommand\labelitemiv{\textperiodcentered}
  698. \newenvironment{description}
  699. {\list{}{\labelwidth\z@ \itemindent-\leftmargin
  700. \let\makelabel\descriptionlabel}}
  701. {\endlist}
  702. \newcommand*\descriptionlabel[1]{\hspace\labelsep
  703. \normalfont\bfseries #1}
  704. \if@titlepage
  705. \newenvironment{abstract}{%
  706. \titlepage
  707. \null\vfil
  708. \@beginparpenalty\@lowpenalty
  709. \begin{center}%
  710. \bfseries \abstractname
  711. \@endparpenalty\@M
  712. \end{center}}%
  713. {\par\vfil\null\endtitlepage}
  714. \else
  715. \newenvironment{abstract}{%
  716. \if@twocolumn
  717. \section*{\abstractname}%
  718. \else
  719. \small
  720. \begin{center}%
  721. \end{center}%
  722. \quotation
  723. \fi}
  724. {\if@twocolumn\else\endquotation\fi}
  725. \fi
  726. \newenvironment{verse}
  727. {\let\\\@centercr
  728. \list{}{\itemsep \z@
  729. \itemindent -1.5em%
  730. \listparindent\itemindent
  731. \rightmargin \leftmargin
  732. \advance\leftmargin 1.5em}%
  733. \item\relax}
  734. {\endlist}
  735. \newenvironment{quotation}
  736. {\list{}{\listparindent 1.5em%
  737. \itemindent \listparindent
  738. \rightmargin \leftmargin
  739. \parsep \z@ \@plus\p@}%
  740. \item\relax}
  741. {\endlist}
  742. \newenvironment{quote}%
  743. {\par\small\list{}{\topsep12pt\leftmargin2pc\rightmargin\z@
  744. }%
  745. \item\relax}
  746. {\endlist}
  747. \if@compatibility
  748. \newenvironment{titlepage}
  749. {%
  750. \if@twocolumn
  751. \@restonecoltrue\onecolumn
  752. \else
  753. \@restonecolfalse\newpage
  754. \fi
  755. \thispagestyle{empty}%
  756. \setcounter{page}\z@
  757. }%
  758. {\if@restonecol\twocolumn \else \newpage \fi
  759. }
  760. \else
  761. \newenvironment{titlepage}
  762. {%
  763. \if@twocolumn
  764. \@restonecoltrue\onecolumn
  765. \else
  766. \@restonecolfalse\newpage
  767. \fi
  768. \thispagestyle{empty}%
  769. \setcounter{page}\@ne
  770. }%
  771. {\if@restonecol\twocolumn \else \newpage \fi
  772. \if@twoside\else
  773. \setcounter{page}\@ne
  774. \fi
  775. }
  776. \fi
  777. \newcommand\appendix{\par
  778. \renewcommand \theequation {A\hskip2pt\@arabic\c@equation}
  779. \setcounter{section}{0}%
  780. \setcounter{subsection}{0}%
  781. \gdef\thesection{\@Alph\c@section}}
  782. \setlength\arraycolsep{5\p@}
  783. \setlength\tabcolsep{6\p@}
  784. \setlength\arrayrulewidth{.4\p@}
  785. \setlength\doublerulesep{2\p@}
  786. \setlength\tabbingsep{\labelsep}
  787. \skip\@mpfootins = \skip\footins
  788. \setlength\fboxsep{3\p@}
  789. \setlength\fboxrule{.4\p@}
  790. \renewcommand \theequation {\@arabic\c@equation}
  791. \numberwithin{equation}{section}
  792. \newcounter{figure}
  793. \renewcommand \thefigure {\@arabic\c@figure}
  794. \def\fps@figure{tbp}
  795. \def\ftype@figure{1}
  796. \def\ext@figure{lof}
  797. \def\fnum@figure{\figurename~\thefigure}
  798. \newenvironment{figure}
  799. {\@float{figure}}
  800. {\end@float}
  801. \newenvironment{figure*}
  802. {\@dblfloat{figure}}
  803. {\end@dblfloat}
  804. \newcounter{scheme}
  805. \renewcommand \thescheme {\@arabic\c@scheme}
  806. \def\fps@scheme{tbp}
  807. \def\ftype@scheme{1}
  808. \def\ext@scheme{lof}
  809. \def\fnum@scheme{\schemename~\thescheme}
  810. \newenvironment{scheme}
  811. {\@float{scheme}}
  812. {\end@float}
  813. \newenvironment{scheme*}
  814. {\@dblfloat{scheme}}
  815. {\end@dblfloat}
  816. \def\captionfont{\reset@font\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{8.5}{10}\selectfont}
  817. \def\captionheadfont{\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{8.5}{10}\selectfont\raggedright}
  818. \def\tablebodyfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{8.5}{11}\selectfont\raggedright}
  819. \def\tablenotefont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{8.5}{11}\leftskip-\leftnoteskip\rightskip-\leftnoteskip plus1fill\selectfont}
  820. \newcounter{table}
  821. \renewcommand\thetable{\@arabic\c@table}
  822. \def\fps@table{tbp}
  823. \def\ftype@table{2}
  824. \def\ext@table{lot}
  825. \def\fnum@table{\tablename~\thetable}
  826. \newenvironment{table}
  827. {\@float{table}}
  828. {\end@float}
  829. \newenvironment{table*}
  830. {\@dblfloat{table}}
  831. {\end@dblfloat}
  832. \newlength\abovecaptionskip
  833. \newlength\belowcaptionskip
  834. \setlength\abovecaptionskip{6.75\p@}
  835. \setlength\belowcaptionskip{9\p@}
  836. \long\def\tabnote#1{{\par\vskip2pt\tablenotefont #1\par}}
  837. \newdimen\leftnoteskip
  838. \def\processtable#1#2#3{{%
  839. \setlength\abovecaptionskip{0\p@}%
  840. #1{{\tablebodyfont #2}}%
  841. \settowidth{\leftnoteskip}{{{\tablebodyfont #2}}}%
  842. \advance\leftnoteskip-\textwidth%
  843. \divide\leftnoteskip 2
  844. {#3}}}%
  845. \usepackage{colortbl}
  846. \def\tabhead#1{\textcolor{white}{#1\vphantom{y}}}
  847. \def\toprule{\noalign{\ifnum0=`}\fi%
  848. \color{jobcolor}
  849. \hrule \@height 14\p@\relax
  850. \hrule \@height -12.8\p@ \@width 0\p@
  851. \futurelet\@tempa\@xhline
  852. }
  853. \def\mtoprule{\noalign{\ifnum0=`}\fi%
  854. \color{jobcolor}
  855. \hrule \@height 13\p@\relax
  856. \hrule \@height -14.8\p@ \@width 0\p@
  857. \futurelet\@tempa\@xhline
  858. }
  859. \def\midruledotfill{%
  860. \leavevmode
  861. \cleaders \hb@xt@ .19em{\hss\tiny.\hss}\hfill
  862. \kern\z@}
  863. \def\midrule{\noalign{\midruledotfill}}
  864. \def\botrule{\noalign{\midruledotfill}}
  865. \long\def\@makecaption#1#2{%
  866. \vskip\abovecaptionskip
  867. \sbox\@tempboxa{{\captionheadfont #1.}\hskip2.5pt{\captionfont #2}}%
  868. \ifdim \wd\@tempboxa <\hsize
  869. \global \@minipagefalse
  870. \hb@xt@\hsize{\box\@tempboxa}%
  871. \else
  872. \ifdim \wd\@tempboxa >1.99\hsize
  873. {{\captionheadfont #1.}\hskip2.5pt {\captionfont #2}\par}
  874. \else
  875. {{\captionheadfont #1.}\hskip2.5pt {\captionfont#2}\par}
  876. \fi
  877. \fi
  878. \vskip\belowcaptionskip}
  879. \DeclareOldFontCommand{\rm}{\normalfont\rmfamily}{\mathrm}
  880. \DeclareOldFontCommand{\sf}{\normalfont\sffamily}{\mathsf}
  881. \DeclareOldFontCommand{\tt}{\normalfont\ttfamily}{\mathtt}
  882. \DeclareOldFontCommand{\bf}{\normalfont\bfseries}{\mathbf}
  883. \DeclareOldFontCommand{\it}{\normalfont\itshape}{\mathit}
  884. \DeclareOldFontCommand{\sl}{\normalfont\slshape}{\@nomath\sl}
  885. \DeclareOldFontCommand{\sc}{\normalfont\scshape}{\@nomath\sc}
  886. \DeclareRobustCommand*\cal{\@fontswitch\relax\mathcal}
  887. \DeclareRobustCommand*\mit{\@fontswitch\relax\mathnormal}
  888. \newcommand\@pnumwidth{18pt}
  889. \newcommand\@tocrmarg{18pt plus 1fil}
  890. \newcommand\@dotsep{3}
  891. \setcounter{tocdepth}{3}
  892. \newcommand\tableofcontents{%
  893. \section*{\contentsname
  894. \@mkboth{%
  895. \MakeUppercase\contentsname}{\MakeUppercase\contentsname}}%
  896. \@starttoc{toc}%
  897. }
  898. \newcommand*\l@part[2]{%
  899. \ifnum \c@tocdepth >-2\relax
  900. \addpenalty\@secpenalty
  901. \addvspace{2.25em \@plus\p@}%
  902. \begingroup
  903. \parindent \z@ \rightskip \@pnumwidth
  904. \parfillskip -\@pnumwidth
  905. {\leavevmode
  906. \large \bfseries #1\hfil \hb@xt@\@pnumwidth{\hss #2}}\par
  907. \nobreak
  908. \if@compatibility
  909. \global\@nobreaktrue
  910. \everypar{\global\@nobreakfalse\everypar{}}%
  911. \fi
  912. \endgroup
  913. \fi}
  914. \newcommand*\l@section[2]{%
  915. \ifnum \c@tocdepth >\z@
  916. \addpenalty\@secpenalty
  917. \addvspace{1.0em \@plus\p@}%
  918. \setlength\@tempdima{1.5em}%
  919. \begingroup
  920. \parindent \z@ \rightskip \@pnumwidth
  921. \parfillskip -\@pnumwidth
  922. \leavevmode \bfseries
  923. \advance\leftskip\@tempdima
  924. \hskip -\leftskip
  925. #1\nobreak\hfil \nobreak\hb@xt@\@pnumwidth{\hss #2}\par
  926. \endgroup
  927. \fi}
  928. \newcommand*\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
  929. \newcommand*\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
  930. \newcommand*\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
  931. \newcommand*\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
  932. \newcommand\listoffigures{%
  933. \section*{\listfigurename
  934. \@mkboth{\MakeUppercase\listfigurename}%
  935. {\MakeUppercase\listfigurename}}%
  936. \@starttoc{lof}%
  937. }
  938. \newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}}
  939. \newcommand\listoftables{%
  940. \section*{\listtablename
  941. \@mkboth{%
  942. \MakeUppercase\listtablename}{\MakeUppercase\listtablename}}%
  943. \@starttoc{lot}%
  944. }
  945. \let\l@table\l@figure
  946. \def\@biblabel#1{#1}
  947. \newdimen\bibindent
  948. \setlength\bibindent{0pc}
  949. \def\bibfont{\fontfamily{\rmdefault}\fontseries{m}\fontshape{n}\fontsize{9}{11}\selectfont}
  950. \newenvironment{thebibliography}[1]
  951. {\section*{\refname%\@mkboth{\refname}{\refname}
  952. }%
  953. \addcontentsline{toc}{section}{\refname}%
  954. \bibfont
  955. \list{\@biblabel{\@arabic\c@enumiv.}}
  956. {\settowidth\labelwidth{\@biblabel{#1.}}
  957. \leftmargin\labelwidth
  958. \advance\leftmargin\labelsep
  959. \@openbib@code
  960. \usecounter{enumiv}%
  961. \let\p@enumiv\@empty
  962. \renewcommand\theenumiv{\@arabic\c@enumiv}}%
  963. \sloppy
  964. \clubpenalty4000
  965. \@clubpenalty \clubpenalty
  966. \widowpenalty4000%
  967. \sfcode`\.\@m}
  968. {\def\@noitemerr
  969. {\@latex@warning{Empty `thebibliography' environment}}%
  970. \endlist}
  971. \newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
  972. \let\@openbib@code\@empty
  973. \newenvironment{theindex}
  974. {\if@twocolumn
  975. \@restonecolfalse
  976. \else
  977. \@restonecoltrue
  978. \fi
  979. \columnseprule \z@
  980. \columnsep 35\p@
  981. \twocolumn[\section*{\indexname}]%
  982. \@mkboth{\MakeUppercase\indexname}%
  983. {\MakeUppercase\indexname}%
  984. \thispagestyle{plain}\parindent\z@
  985. \parskip\z@ \@plus .3\p@\relax
  986. \let\item\@idxitem}
  987. {\if@restonecol\onecolumn\else\clearpage\fi}
  988. \newcommand\@idxitem{\par\hangindent 40\p@}
  989. \newcommand\subitem{\@idxitem \hspace*{20\p@}}
  990. \newcommand\subsubitem{\@idxitem \hspace*{30\p@}}
  991. \newcommand\indexspace{\par \vskip 10\p@ \@plus5\p@ \@minus3\p@\relax}
  992. \renewcommand\footnoterule{%
  993. \kern-3\p@
  994. \hrule\@width.4\columnwidth
  995. \kern2.6\p@}
  996. \newcommand\@makefntext[1]{%
  997. \parindent 1em%
  998. \noindent
  999. \hb@[email protected]{\hss\@makefnmark}#1}
  1000. \newcommand\contentsname{Contents}
  1001. \newcommand\listfigurename{List of Figures}
  1002. \newcommand\listtablename{List of Tables}
  1003. \newcommand\refname{References}
  1004. \newcommand\indexname{Index}
  1005. \newcommand\figurename{Figure}
  1006. \newcommand\schemename{Scheme}
  1007. \newcommand\tablename{Table}
  1008. \newcommand\partname{Part}
  1009. \newcommand\appendixname{Appendix}
  1010. \newcommand\abstractname{Abstract}
  1011. \def\today{\ifcase\month\or
  1012. January\or February\or March\or April\or May\or June\or
  1013. July\or August\or September\or October\or November\or December\fi
  1014. \space\number\day, \number\year}
  1015. \setlength\columnsep{10\p@}
  1016. \setlength\columnseprule{0\p@}
  1017. \pagestyle{plain}
  1018. \pagenumbering{arabic}
  1019. \if@twoside
  1020. \else
  1021. \raggedbottom
  1022. \fi
  1023. \if@twocolumn
  1024. \twocolumn
  1025. \sloppy
  1026. \flushbottom
  1027. \else
  1028. \onecolumn
  1029. \fi
  1030. \def\supertitlefont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{24}{26}\selectfont\raggedright}
  1031. \def\titlefont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{20}{22}\selectfont\raggedright\color{jobcolor}}
  1032. \def\authorfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{14}{22}\selectfont\raggedright\color{jobcolor}}
  1033. \def\addressfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{11}{15}\selectfont\raggedright}
  1034. \def\abstractfont{\fontfamily{\rmdefault}\fontseries{m}\fontshape{n}\fontsize{9}{12}\selectfont\parindent1em}
  1035. \def\keywordfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright\mathversion{bold}}
  1036. \def\subjectfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright\mathversion{bold}}
  1037. \def\researchfont{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright\mathversion{bold}}
  1038. \newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}}
  1039. \def\title{\@ifnextchar[{\@title@wst@}{\@title@nst@}}
  1040. \def\@title@wst@[#1]{\@title@assign@}
  1041. \def\@title@nst@#1{\@title@assign@{#1}}
  1042. \def\@title@assign@#1{\def\@title{#1}}
  1043. \def\shorttitle#1{\gdef\@shorttitle{#1}}
  1044. \def\author{\@ifnextchar[{\@author@wst@}{\@author@nst@}}
  1045. \def\@author@wst@[#1]{\@author@assign@}
  1046. \def\@author@nst@#1{\@author@assign@{#1}}
  1047. \def\@author@assign@#1{\gdef\@author{#1}}
  1048. \newif\if@classification@provided \@classification@providedfalse
  1049. \newif\if@esm@provided \@esm@providedfalse
  1050. \newif\if@others@provided \@others@providedfalse
  1051. \newif\if@corres@provided \@corres@providedfalse
  1052. \newif\if@keywords@provided \@keywords@providedfalse
  1053. \newif\if@subject@provided \@subject@providedfalse
  1054. \newif\if@citearticle@provided \@citearticle@providedfalse
  1055. \newif\if@history@provided \@history@providedfalse
  1056. \newcommand{\address}[1]{\gdef\@address{#1}}%
  1057. \newbox\absbox
  1058. \renewenvironment{abstract}{\global\setbox\absbox\vbox\bgroup\par\abstractfont\leftskip0pc\rightskip14.2pc\noindent\ignorespaces}{\par\egroup}
  1059. \newbox\fmtextbox
  1060. \newenvironment{fmtext}{\global\setbox\fmtextbox\vbox\bgroup\par\normalfont\hsize18.8pc\leftskip0pc\rightskip0pc
  1061. \renewenvironment{quote}%
  1062. {\par\small\list{}{\topsep12pt\leftmargin2pc\rightmargin15.2pc
  1063. }%
  1064. \item\relax}
  1065. {\endlist}
  1066. \def\@listi{\leftmargin\leftmargini
  1067. \rightmargin13.2pc
  1068. \parsep 0\p@ \@plus0\p@ \@minus\p@
  1069. \topsep 12\p@ \@plus2\p@ \@minus0\p@
  1070. \itemsep0\p@ \@plus0\p@ \@minus\p@}
  1071. \let\@listI\@listi
  1072. \noindent\ignorespaces}{\par\egroup}
  1073. \def\keywordsname{{\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright Keywords:}}
  1074. \def\@keywords{}
  1075. \newcommand\keywords[1]{%
  1076. \global\@keywords@providedtrue%
  1077. \gdef\@keywords{{\keywordsname}\par #1}}%
  1078. \def\subjectname{{\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright Subject Areas:}}
  1079. \def\@subject{}
  1080. \newcommand\subject[1]{%
  1081. \global\@subject@providedtrue%
  1082. \gdef\@subject{{\subjectname}\par #1}}%
  1083. \def\titlehead{Research}
  1084. \def\researchname{{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{18}{31}\selectfont\raggedright%
  1085. \raisebox{9pt}{\titlehead}\ifopenacc\hfill\hfill%
  1086. \else\hfill\fi\href{http://crossmark.crossref.org/dialog/?doi=\@doi&domain=pdf&date_stamp=\@onlinepub}{\includegraphics{OpenAccesslogo_bw}\hfill\includegraphics{RS_crossmark_logo}}\par}}
  1087. \def\@citearticle{}
  1088. \newcommand\citearticle[3]{%
  1089. \global\@citearticle@providedtrue%
  1090. \gdef\@citearticle{{\researchname}\par \resau{Cite this article:} #1. \@Year\ #2. Proc R Soc A #3. https://doi.org/\@doi}}%
  1091. \def\@corres{}
  1092. \newcommand\corres[1]{%
  1093. \global\@corres@providedtrue%
  1094. \gdef\@corres{{\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright
  1095. \correshead}\par #1}}%
  1096. \def\@history{{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright Article submitted to journal}}
  1097. \newcommand\history[1]{%
  1098. \global\@history@providedtrue
  1099. \gdef\@history{#1}}
  1100. %\newcommand\history{%
  1101. % \global\@history@providedtrue%
  1102. % \gdef\@history{{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}l@{}}%
  1103. %\ifx\@rec\empty \else Received:\ \@rec\fi\\%
  1104. %\ifx\@acc\empty \else Accepted:\ \@acc\fi\\%
  1105. %\ifx\@pub\empty \else Published:\ \@pub\fi%
  1106. %\end{tabular*}
  1107. %}}}%
  1108. \def\@esm{}
  1109. \newcommand\esm[1]{%
  1110. \global\@esm@providedtrue%
  1111. \gdef\@esm{{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont Electronic supplementary material is available
  1112. at https://doi.org/\@doi\ or via http://\@jname.royalsocietypublishing.org.\par}}}%
  1113. \def\@others{}
  1114. \newcommand\others[1]{%
  1115. \global\@others@providedtrue%
  1116. \gdef\@others{{\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{10}{14}\selectfont #1\par}}}%
  1117. \def\resau#1{{\fontfamily{\sfdefault}\fontseries{b}\fontshape{n}\fontsize{10}{14}\selectfont\raggedright#1}}
  1118. \def\@classification{}
  1119. \newcommand\classification[2][Jel Classification]{%
  1120. \global\@classification@providedtrue%
  1121. \gdef\@classification{{\noindent\centering\textit{#1.}\enskip #2\par}}}%
  1122. \def\@fnsymbol#1{\ensuremath{\ifcase#1\or \text{*}\or ^{\dagger}\or ^{\ddagger}\or
  1123. ^{\mathsection}\or ^{\mathparagraph}\or \|\or **\or \dagger\dagger
  1124. \or \ddagger\ddagger \else\@ctrerr\fi}}
  1125. \def\correshead{Author for correspondence:}%
  1126. \renewcommand\maketitle{\par
  1127. \begingroup
  1128. \ifquery
  1129. \unsetvruler%
  1130. \pagestyle{empty}
  1131. \noindent{\begin{tabular}{@{}p{67pt}@{\quad}>{\hangindent1em}P{25.5pc}@{}}%\fboxrule=.1pt\fboxsep0pt\fbox
  1132. Journal: & \textbf{PROCEEDINGS OF THE ROYAL SOCIETY A}\\\\
  1133. Article id: & \textbf{\jobname}\\\\
  1134. Article Title:& \textbf{\@title}\\\\
  1135. First Author: & \@firstauthor\\\\
  1136. Corr. Author: & \@corrauthor
  1137. \end{tabular}}
  1138. \vskip4\baselineskip
  1139. \noindent \textbf{AUTHOR QUERIES -- TO BE ANSWERED BY THE
  1140. CORRESPONDING AUTHOR}
  1141. \vskip\baselineskip
  1142. \noindent The following queries have arisen during the typesetting of your
  1143. manuscript. Please answer these queries by marking the required
  1144. corrections at the appropriate point in the text.
  1145. \vskip\baselineskip
  1146. \def\arraystretch{1.25}
  1147. \input\jobname_AQ.tex%
  1148. \setcounter{page}{0}%
  1149. \setcounter{table}{0}%
  1150. \fi
  1151. \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
  1152. \def\@makefnmark{{{\normalfont\@thefnmark}}}%
  1153. \long\def\@makefntext##1{\noindent{{\normalfont\@thefnmark}}\correshead##1\gdef\correshead{}}%
  1154. \if@twocolumn
  1155. \thispagestyle{plain}
  1156. \ifnum \col@number=\@ne
  1157. \@maketitle
  1158. \else
  1159. \twocolumn[\@maketitle]%
  1160. \fi
  1161. \else
  1162. \newpage
  1163. \global\@topnum\z@ % Prevents figures from going at top of page.
  1164. \@maketitle
  1165. \fi
  1166. \@thanks
  1167. \endgroup
  1168. \setcounter{footnote}{0}%
  1169. \global\let\thanks\relax
  1170. \global\let\maketitle\relax
  1171. \global\let\@maketitle\relax
  1172. \global\let\@thanks\@empty
  1173. \global\let\@date\@empty
  1174. \global\let\@title\@empty
  1175. \global\let\title\relax
  1176. \global\let\author\relax
  1177. \global\let\date\relax
  1178. \global\let\and\relax
  1179. \enlargethispage{-8pt}%
  1180. }
  1181. \def\Bytext{B\textsc{Y}}
  1182. \def\@maketitle{%
  1183. \vspace*{-5.5pc}
  1184. \noindent\begin{minipage}[!t]{50mm}
  1185. \hskip-1pc
  1186. \vbox to 242mm{{\vskip68pt\includegraphics{OPENSCIENCE}\vskip21pt
  1187. {\fontfamily{\sfdefault}\fontseries{m}\fontshape{n}\fontsize{13.5}{15}\selectfont\raggedright
  1188. \textcolor{jobcolor}{\@jname.royalsocietypublishing.org}}\vskip10pt
  1189. \if@citearticle@provided
  1190. \vskip11pt
  1191. {\researchfont \@citearticle\par}
  1192. \vskip16pt
  1193. \else
  1194. {\researchname}
  1195. \vskip16pt
  1196. \fi
  1197. %\if@history@provided
  1198. \@history
  1199. \vskip22pt
  1200. %\else
  1201. %\vskip22pt
  1202. %\fi
  1203. \if@subject@provided
  1204. {\subjectfont \@subject\par}
  1205. \vskip12pt
  1206. \else
  1207. \fi
  1208. \if@keywords@provided
  1209. {\keywordfont \@keywords\par}
  1210. \vskip16pt
  1211. \else
  1212. \fi
  1213. \if@corres@provided
  1214. {\keywordfont \@corres\par}
  1215. \else
  1216. \fi
  1217. \vfill
  1218. \if@others@provided
  1219. \vskip1.5pc
  1220. \@others
  1221. \vspace*{23pt}
  1222. \else
  1223. \fi
  1224. \if@esm@provided
  1225. \@esm
  1226. \vspace*{23pt}
  1227. \else
  1228. \fi
  1229. }}
  1230. \end{minipage}\hspace*{2pc}
  1231. \noindent\begin{minipage}[!t]{80mm}%
  1232. \vbox to 239mm{\vskip64pt
  1233. \let\footnote\thanks%
  1234. \parindent=0pt%
  1235. \if@supertitle@provided
  1236. \centerline{\supertitlefont{\@supertitle}}
  1237. \vskip12pt
  1238. \fi
  1239. {\titlefont\mathversion{bold}\@title \par}%
  1240. \vspace*{-11pt}
  1241. \rule{80mm}{.5pt}\vspace*{-7pt}
  1242. {{\authorfont \@author\vphantom{$^1$}\par}}\vspace*{-5pt}
  1243. \rule{80mm}{.5pt}
  1244. \ifx\@address\empty\else
  1245. {{\addressfont \leavevmode\vphantom{$^1$}\@address\par}}
  1246. \fi
  1247. \ifvoid\absbox\else
  1248. \vskip15pt%
  1249. {\colorbox{copyrightcolor}{\vbox{\hsize75mm{{\noindent\usebox\absbox}}}}}%
  1250. \fi
  1251. \ifvoid\fmtextbox\else
  1252. \vskip15pt%
  1253. {{\noindent\usebox\fmtextbox}}%
  1254. \fi
  1255. \if@classification@provided
  1256. \vskip4pt
  1257. {\leftskip\z@\parfillskip=\z@ plus1fill%
  1258. \fontsize{8}{9}\selectfont\@classification\par}%
  1259. \fi
  1260. \vspace*{\fill}
  1261. }
  1262. \end{minipage}%
  1263. \par
  1264. \thispagestyle{plain}
  1265. \vskip 14pt plus8pt minus3pt
  1266. }
  1267. \renewcommand\footnoterule{}
  1268. \renewcommand\@makefntext[1]{\fontsize{7}{10}\selectfont\noindent{\@makefnmark}#1\vskip-1pt}
  1269. \newtheorem{mythm}{mythm}[section]
  1270. \newif\if@rotate \@rotatefalse
  1271. \newif\if@rotatecenter \@rotatecenterfalse
  1272. \def\rotatecenter{\global\@rotatecentertrue}
  1273. \def\rotateendcenter{\global\@rotatecenterfalse}
  1274. \def\rotate{\global\@rotatetrue}
  1275. \def\endrotate{\global\@rotatefalse}
  1276. \newdimen\rotdimen
  1277. \def\rotstart#1{\special{ps: gsave currentpoint currentpoint translate
  1278. #1 neg exch neg exch translate}}
  1279. \def\rotfinish{\special{ps: currentpoint grestore moveto}}
  1280. \def\rotl#1{\rotdimen=\ht#1\advance\rotdimen by \dp#1
  1281. \hbox to \rotdimen{\vbox to\wd#1{\vskip \wd#1
  1282. \rotstart{270 rotate}\box #1\vss}\hss}\rotfinish}
  1283. \def\rotr#1{\rotdimen=\ht #1\advance\rotdimen by \dp#1
  1284. \hbox to \rotdimen{\vbox to \wd#1{\vskip \wd#1
  1285. \rotstart{90 rotate}\box #1\vss}\hss}\rotfinish}
  1286. \hyphenation{Table}
  1287. \hyphenation{Figure}
  1288. \hyphenation{Section}
  1289. \hyphenation{equation}
  1290. \hyphenation{Theorem}
  1291. \hyphenation{Lemma}
  1292. \hyphenation{Algorithm}
  1293. \hyphenation{Definition}
  1294. \hyphenation{Corollary}
  1295. \hyphenation{Proof}
  1296. \hyphenation{Remark}
  1297. \DeclareMathSizes{5} {5} {5} {5}
  1298. \DeclareMathSizes{6} {6} {5} {5}
  1299. \DeclareMathSizes{7} {7} {5} {5}
  1300. \DeclareMathSizes{8} {8} {6} {5}
  1301. \DeclareMathSizes{9} {9} {7} {5}
  1302. \DeclareMathSizes{10} {10} {7} {5}
  1303. \DeclareMathSizes{12} {12} {9} {7}
  1304. \setlength{\jot}{5\p@}
  1305. \skip\@mpfootins = \skip\footins
  1306. \fboxsep=6\p@
  1307. \fboxrule=.25\p@
  1308. \medmuskip=4mu
  1309. \thickmuskip=3.5mu
  1310. \vbadness=9999
  1311. \tolerance=9999
  1312. \doublehyphendemerits=10000
  1313. \doublehyphendemerits 640000
  1314. \finalhyphendemerits 1000000
  1315. \flushbottom
  1316. \frenchspacing
  1317. \onecolumn
  1318. \pagestyle{headings}
  1319. \DeclareSymbolFont{EulerExtension}{U}{euex}{m}{n}
  1320. \DeclareMathSymbol{\intop}{\mathop}{EulerExtension}{"52}
  1321. \DeclareMathSymbol{\ointop}{\mathop}{EulerExtension}{"48}
  1322. \renewenvironment{subequations}{%
  1323. \refstepcounter{equation}%
  1324. \protected@edef\theparentequation{\theequation}%
  1325. \setcounter{parentequation}{\value{equation}}%
  1326. \setcounter{equation}{0}%
  1327. \def\theequation{\theparentequation{\it\alph{equation}}}%
  1328. \ignorespaces
  1329. }{%
  1330. \setcounter{equation}{\value{parentequation}}%
  1331. \ignorespacesafterend
  1332. }
  1333. \newcommand{\sfrac}[2]{\leavevmode\kern.1em
  1334. \raise.5ex\hbox{\footnotesize #1}\kern-.1em
  1335. /\kern-.15em\lower.25ex\hbox{\footnotesize #2}}
  1336. \def\dbond{\raise0.18ex\hbox{$=$}}
  1337. \def\bond{\raise0.18ex\hbox{$-$}}
  1338. \newcolumntype{P}[1]{>{\raggedright\let\\\@arraycr\hangindent1em}p{#1}}
  1339. \def\email#1{\href{mailto:#1}{e-mail: #1}}
  1340. \def\tcontinued{({\it Continued}.)}
  1341. \def\bcontinued{\leftskip-\leftnoteskip plus1fill\rightskip-\leftnoteskip{({\it Continued}.)}}
  1342. \def\source#1{\par\rightline{#1}}
  1343. \newdimen\eqntext
  1344. \def\leftno#1#2{%
  1345. \settowidth{\eqntext}{$\displaystyle#2$}%
  1346. \advance\eqntext-\textwidth%
  1347. \divide\eqntext 2%
  1348. \llap{\hbox to -\eqntext{$#1$\hfill}}#2}
  1349. \def\l{l\kern-3pt\raisebox{3.25pt}{\rotatebox{-20}{\fontsize{4}{6}\selectfont/}\kern-.25pt}}
  1350. \def\L{L\kern-6.4pt\raisebox{3.25pt}{\rotatebox{-20}{\fontsize{4}{6}\selectfont/}\kern3.2pt}}
  1351. %%%%
  1352. \def\vdotsfor#1#2{\rlap{\vbox to 0pt{\vskip-\ht\@arstrutbox\hskip#2\vbox to #1{\hsize0pt\xleaders\vbox{%
  1353. \hbox{.}%
  1354. \vskip3.5pt%
  1355. }\vskip3.5pt plus2pt minus2pt}}}}%
  1356. \def\fmbreak{\break\vspace*{-12pt}}
  1357. \def\ack#1{{\vskip5.5pt\noindent \fontsize{8}{11}\selectfont#1}}
  1358. \def\myquery#1#2{\\{\smash{\begin{picture}(0,0)\put(420,-#1){#2}\end{picture}}\innerframe}~}
  1359. \def\ack#1{{\vskip5.5pt\noindent \fontsize{8}{11}\selectfont#1}}
  1360. \def\ethics#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Ethics.}\fontsize{8}{11}\selectfont\enskip #1}}
  1361. \def\dataccess#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Data Accessibility.}\fontsize{8}{11}\selectfont\enskip #1}}
  1362. \def\aucontribute#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Authors' Contributions.}\fontsize{8}{11}\selectfont\enskip #1}}
  1363. \def\competing#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Competing Interests.}\fontsize{8}{11}\selectfont\enskip #1}}
  1364. \def\funding#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Funding.}\fontsize{8}{11}\selectfont\enskip #1}}
  1365. \def\ack#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Acknowledgements.}\fontsize{8}{11}\selectfont\enskip #1}}
  1366. \def\disclaimer#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Disclaimer.}\fontsize{8}{11}\selectfont\enskip #1}}
  1367. \def\conflict#1{{\vskip5.5pt\noindent \textcolor{jobcolor}{\fontsize{9}{11}\selectfont Conflict of interests.}\fontsize{8}{11}\selectfont\enskip #1}}
  1368. \usepackage[sort&compress]{natbib}
  1369. \def\NAT@def@citea{\def\@citea{\NAT@separator}}
  1370. \bibpunct{[}{]}{,}{n}{}{,}
  1371. \def\@biblabel#1{#1.}
  1372. \usepackage[bookmarksnumbered,raiselinks,breaklinks]{hyperref}
  1373. \hypersetup{
  1374. colorlinks,%
  1375. citecolor=blue,%
  1376. filecolor=blue,%
  1377. linkcolor=blue,%
  1378. urlcolor=blue
  1379. }
  1380. \Year{2014}
  1381. \endinput