|
45 | 45 | \newif\if@lessons |
46 | 46 | \DeclareOption{lessons}{\@lessonstrue} |
47 | 47 |
|
| 48 | +%Publication Information |
| 49 | +\newif\if@pubversion |
| 50 | +\DeclareOption{pubversion}{\@pubversiontrue} |
| 51 | + |
48 | 52 | %% Linespacing. |
49 | 53 | \newif\if@onehalfspacing |
50 | 54 | \newif\if@doublespacing |
|
226 | 230 | } |
227 | 231 | \fi |
228 | 232 |
|
| 233 | +% Publication information in document footer |
| 234 | +% *ONLY INCLUDED IF "pubversion" CLASS OPTION IS INVOKED* |
| 235 | +\def\@publishedDOI{} |
| 236 | +\def\@publishedvolume{} |
| 237 | +\def\@publishedyear{} |
| 238 | +\def\@publishedarticlenum{} |
| 239 | +\def\@publisheddatereceived{} |
| 240 | +\def\@publisheddateaccepted{} |
| 241 | +\def \DOIprefix{10.XXXX} %May be able to use this later |
| 242 | +\newcommand{\pubDOI}[1]{% |
| 243 | + \appto{\@publishedDOI}{#1}{}{} |
| 244 | +} |
| 245 | +\newcommand{\pubvolume}[1]{% |
| 246 | + \appto{\@publishedvolume}{#1}{}{} |
| 247 | +} |
| 248 | +\newcommand{\pubyear}[1]{% |
| 249 | + \appto{\@publishedyear}{#1}{}{} |
| 250 | +} |
| 251 | +\newcommand{\articlenum}[1]{% |
| 252 | + \appto{\@publishedarticlenum}{#1}{}{} |
| 253 | +} |
| 254 | +\newcommand{\datereceived}[1]{% |
| 255 | + \appto{\@publisheddatereceived}{#1}{}{} |
| 256 | +} |
| 257 | +\newcommand{\dateaccepted}[1]{% |
| 258 | + \appto{\@publisheddateaccepted}{#1}{}{} |
| 259 | +} |
| 260 | + |
229 | 261 | % Footers |
230 | | -\rfoot{\small\color{LiveCoMSMediumGrey}\thepage\space of\space\pageref{LastPage}}% |
| 262 | +\if@pubversion |
| 263 | +\lfoot{\ifthenelse{\value{page}=1} |
| 264 | + {\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted} |
| 265 | + {~\\~} |
| 266 | +}% |
| 267 | +%\lfoot{\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ |
| 268 | +% Accepted: \@publisheddateaccepted}% |
| 269 | +\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}% |
| 270 | +\rfoot{\small\color{LiveCoMSMediumGrey}DOI: \href{https://dx.doi.org/\@publishedDOI}{\@publishedDOI}\\ |
| 271 | + {\it Living J. Comp. Mol. Sci.} \@publishedyear, \@publishedvolume, \@publishedarticlenum }% |
| 272 | +\else |
| 273 | +\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}% |
| 274 | +%\rfoot{\small\color{LiveCoMSMediumGrey}Page \thepage\space of\space\pageref{LastPage}}% |
| 275 | +\fi |
231 | 276 | \preto{\footrule}{\color{LiveCoMSMediumGrey}} |
232 | 277 | \renewcommand{\headrulewidth}{0pt}% % No header rule |
233 | 278 | \renewcommand{\footrulewidth}{0.4pt}% % No footer rule |
|
0 commit comments