Skip to content

Commit a0fbd04

Browse files
committed
updated article tex files
1 parent 673ce74 commit a0fbd04

File tree

3 files changed

+73
-10
lines changed

3 files changed

+73
-10
lines changed

manuscript/livecoms.cls

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
\newif\if@lessons
4646
\DeclareOption{lessons}{\@lessonstrue}
4747

48+
%Publication Information
49+
\newif\if@pubversion
50+
\DeclareOption{pubversion}{\@pubversiontrue}
51+
4852
%% Linespacing.
4953
\newif\if@onehalfspacing
5054
\newif\if@doublespacing
@@ -226,8 +230,49 @@
226230
}
227231
\fi
228232

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+
229261
% 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
231276
\preto{\footrule}{\color{LiveCoMSMediumGrey}}
232277
\renewcommand{\headrulewidth}{0pt}% % No header rule
233278
\renewcommand{\footrulewidth}{0.4pt}% % No footer rule

manuscript/manuscript.tex

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
% Use the 'onehalfspacing' option for 1.5 line spacing
88
% Use the 'doublespacing' option for 2.0 line spacing
99
% Use the 'lineno' option for adding line numbers.
10+
% Use the 'pubversion' option for adding the citation and publication information to the document footer.
1011
% The 'bestpractices' option for indicates that this is a best practices guide.
1112
% Omit the bestpractices option to remove the marking as a LiveCoMS paper.
1213
% Please note that these options may affect formatting.
@@ -45,7 +46,19 @@
4546

4647
\contrib[\authfn{1}]{These authors contributed equally to this work}
4748

48-
\blurb{This LiveCoMS document is maintained online on GitHub at \githubrepository{}; to provide feedback, suggestions, or help improve it, please visit the GitHub repository and participate via the issue tracker.}
49+
\blurb{This LiveCoMS document is maintained online on GitHub at \githubrepository; to provide feedback, suggestions, or help improve it, please visit the GitHub repository and participate via the issue tracker.}
50+
51+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52+
%%% PUBLICATION INFORMATION
53+
%%% Fill out these parameters when available
54+
%%% These are used when the "pubversion" option is invoked
55+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56+
\pubDOI{10.XXXX/YYYYYYY}
57+
\pubvolume{<volume>}
58+
\pubyear{<year>}
59+
\articlenum{<number>}
60+
\datereceived{July, 27, 2018}
61+
\dateaccepted{Month, Day, Year}
4962

5063
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5164
%%% ARTICLE START

manuscript/vancouver-livecoms.bst

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -879,12 +879,15 @@ FUNCTION {format.inventors}
879879

880880
FUNCTION {format.note}
881881
{
882-
url empty$
883-
'skip$
884-
{ "\urlprefix\url{" url * "}" * output }
885-
if$
882+
%%url empty$
883+
%% 'skip$
884+
%% { "\urlprefix\url{" url * "}" * output }
885+
%%if$
886886
doi empty$
887-
'skip$
887+
{url empty$
888+
'skip$
889+
{ "\urlprefix\url{" url * "}" * output }
890+
if$}
888891
{ "\href{https://dx.doi.org/" doi * "}{\doiprefix \detokenize{" * doi * "}}" * output }
889892
if$
890893
note empty$
@@ -1012,7 +1015,9 @@ FUNCTION {word.in}
10121015

10131016
FUNCTION {format.journal.date}
10141017
{
1015-
month "month" bibinfo.check
1018+
%month "month" bibinfo.check %% removed to suppress month
1019+
no.blank.or.punct %% added to achieve proper ordering (journal name. Year ; ...)
1020+
""
10161021
duplicate$ empty$
10171022
year "year" bibinfo.check duplicate$ empty$
10181023
{
@@ -1624,8 +1629,8 @@ FUNCTION {techreport}
16241629
format.institution.address output
16251630
format.date "year" output.check
16261631
% format.tr.number output.nonnull
1627-
% new.block
1628-
% format.note output
1632+
new.block
1633+
format.note output
16291634
% output.web.refs % urlbst
16301635
fin.entry
16311636
}

0 commit comments

Comments
 (0)