|
49 | 49 | \newif\if@pubversion
|
50 | 50 | \DeclareOption{pubversion}{\@pubversiontrue}
|
51 | 51 |
|
| 52 | +\newif\if@ASAPversion |
| 53 | +\DeclareOption{ASAPversion}{\@ASAPversiontrue} |
| 54 | + |
52 | 55 | %% Linespacing.
|
53 | 56 | \newif\if@onehalfspacing
|
54 | 57 | \newif\if@doublespacing
|
|
247 | 250 | \newcommand{\pubvolume}[1]{%
|
248 | 251 | \appto{\@publishedvolume}{#1}{}{}
|
249 | 252 | }
|
| 253 | +\newcommand{\pubissue}[1]{% |
| 254 | + \appto{\@publishedissue}{#1}{}{} |
| 255 | +} |
250 | 256 | \newcommand{\pubyear}[1]{%
|
251 | 257 | \appto{\@publishedyear}{#1}{}{}
|
252 | 258 | }
|
|
260 | 266 | \appto{\@publisheddateaccepted}{#1}{}{}
|
261 | 267 | }
|
262 | 268 |
|
| 269 | +%-------------------------------------------------------- |
263 | 270 | % Footers
|
| 271 | +% 1. Error Check for conflicting class options |
264 | 272 | \if@pubversion
|
265 |
| -\lfoot{\ifthenelse{\value{page}=1} |
266 |
| - {\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted} |
267 |
| - {~\\~} |
268 |
| -}% |
269 |
| -%\lfoot{\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ |
270 |
| -% Accepted: \@publisheddateaccepted}% |
271 |
| -\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}% |
272 |
| -\rfoot{\small\color{LiveCoMSMediumGrey}\href{https://doi.org/\@publishedDOI}{https://doi.org/\@publishedDOI}\\ |
273 |
| - {\it Living J. Comp. Mol. Sci.} \@publishedyear, \@publishedvolume, \@publishedarticlenum }% |
274 |
| -\else |
275 |
| -\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}% |
276 |
| -%\rfoot{\small\color{LiveCoMSMediumGrey}Page \thepage\space of\space\pageref{LastPage}}% |
| 273 | + \if@ASAPversion |
| 274 | + \ClassError{livecoms} |
| 275 | + {Nope nope nope, you cannot invoke 'pubversion' and 'ASAPversion' simultaneously. Please correct the class options.} |
| 276 | + \fi |
| 277 | +\fi |
| 278 | +% 2. Publication Version: put submission/acceptance dates in left footer and citation information in right footer |
| 279 | +%%% DWS NOTE: would be nice if the left footer was in an if A-or-B type logical statement |
| 280 | +\if@pubversion |
| 281 | + \lfoot{\ifthenelse{\value{page}=1} |
| 282 | + {\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted} |
| 283 | + {~\\~} |
| 284 | + }% |
| 285 | + \rfoot{\small\color{LiveCoMSMediumGrey}\href{https://doi.org/\@publishedDOI}{https://doi.org/\@publishedDOI}\\ |
| 286 | + {\it Living J. Comp. Mol. Sci.} \@publishedyear, \@publishedvolume\nobreak\hspace{.05em}(\@publishedissue), \@publishedarticlenum |
| 287 | + }% |
| 288 | +\fi |
| 289 | +% 3. ASAP Version: put submission/acceptance dates in left footer and "ASAP Version" in right footer |
| 290 | +\if@ASAPversion |
| 291 | + \lfoot{\ifthenelse{\value{page}=1} |
| 292 | + {\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted} |
| 293 | + {~\\~} |
| 294 | + }% |
| 295 | + \rfoot{\small\color{LiveCoMSMediumGrey}\href{https://doi.org/\@publishedDOI}{https://doi.org/\@publishedDOI}\\ |
| 296 | + {\it Living J. Comp. Mol. Sci.} ASAP Version |
| 297 | + }% |
277 | 298 | \fi
|
| 299 | +% 4. Page Number in center of footer |
| 300 | +\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}% |
278 | 301 | \preto{\footrule}{\color{LiveCoMSMediumGrey}}
|
279 | 302 | \renewcommand{\headrulewidth}{0pt}% % No header rule
|
280 | 303 | \renewcommand{\footrulewidth}{0.4pt}% % No footer rule
|
| 304 | +%---------------------------------------------------------- |
281 | 305 |
|
282 | 306 | %
|
283 | 307 | % section/subsection/paragraph set-up
|
|
319 | 343 | \def\@deceased{}
|
320 | 344 | % Added blurb for LiveComs
|
321 | 345 | \def\@blurb{}
|
| 346 | +\def\@orcidblock{} |
322 | 347 |
|
323 | 348 |
|
324 | 349 | \newcommand{\corr}[2]{%
|
|
349 | 374 | % Added for LiveComs
|
350 | 375 | \newcommand{\blurb}[1]{\def\@blurb{#1}}
|
351 | 376 |
|
| 377 | +\newcommand{\orcid}[2]{% |
| 378 | + \ifx\empty\@orcidblock\else\appto{\@orcidblock}{\\}{}{}\fi |
| 379 | + \appto{\@orcidblock}{% |
| 380 | + #1:\space% |
| 381 | + \ifx\empty#2\else\href{https://orcid.org/#2}{#2} \fi |
| 382 | + }{}{}% |
| 383 | +} |
| 384 | + |
| 385 | + |
| 386 | + |
352 | 387 | \reversemarginpar
|
353 | 388 |
|
354 | 389 | %
|
|
380 | 415 |
|
381 | 416 | %% Abstract outside frontmatter will throw an error!
|
382 | 417 | \RenewEnviron{abstract}{%
|
383 |
| - \ClassError{livecome} |
| 418 | + \ClassError{livecoms} |
384 | 419 | {Nope nope nope, please put the abstract inside the frontmatter environment.}
|
385 | 420 | {Please put the abstract inside the frontmatter environment.}
|
386 | 421 | }
|
|
422 | 457 | \vskip8pt
|
423 | 458 | }
|
424 | 459 |
|
| 460 | +\newcommand{\makeorcid}{% |
| 461 | + % \textbf{*For correspondence:\\} \@correspondence\par |
| 462 | + % \textbf{ORCID:\\} \@correspondence\par |
| 463 | + \textbf{ORCID:\\} \@orcidblock\par |
| 464 | +} |
| 465 | + |
425 | 466 | %% Insert a grey line to separate floats from main text
|
426 | 467 | \newcommand{\topfigrule}{\vskip8pt\noindent{\rule{\linewidth}{1pt}}}
|
427 | 468 | \newcommand{\botfigrule}{\noindent{\rule{\linewidth}{1pt}}\vskip8pt}
|
|
0 commit comments