Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final published version #192

Merged
merged 4 commits into from
Jan 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 54 additions & 13 deletions manuscript/livecoms.cls
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
\newif\if@pubversion
\DeclareOption{pubversion}{\@pubversiontrue}

\newif\if@ASAPversion
\DeclareOption{ASAPversion}{\@ASAPversiontrue}

%% Linespacing.
\newif\if@onehalfspacing
\newif\if@doublespacing
Expand Down Expand Up @@ -247,6 +250,9 @@
\newcommand{\pubvolume}[1]{%
\appto{\@publishedvolume}{#1}{}{}
}
\newcommand{\pubissue}[1]{%
\appto{\@publishedissue}{#1}{}{}
}
\newcommand{\pubyear}[1]{%
\appto{\@publishedyear}{#1}{}{}
}
Expand All @@ -260,24 +266,42 @@
\appto{\@publisheddateaccepted}{#1}{}{}
}

%--------------------------------------------------------
% Footers
% 1. Error Check for conflicting class options
\if@pubversion
\lfoot{\ifthenelse{\value{page}=1}
{\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted}
{~\\~}
}%
%\lfoot{\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\
% Accepted: \@publisheddateaccepted}%
\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}%
\rfoot{\small\color{LiveCoMSMediumGrey}\href{https://doi.org/\@publishedDOI}{https://doi.org/\@publishedDOI}\\
{\it Living J. Comp. Mol. Sci.} \@publishedyear, \@publishedvolume, \@publishedarticlenum }%
\else
\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}%
%\rfoot{\small\color{LiveCoMSMediumGrey}Page \thepage\space of\space\pageref{LastPage}}%
\if@ASAPversion
\ClassError{livecoms}
{Nope nope nope, you cannot invoke 'pubversion' and 'ASAPversion' simultaneously. Please correct the class options.}
\fi
\fi
% 2. Publication Version: put submission/acceptance dates in left footer and citation information in right footer
%%% DWS NOTE: would be nice if the left footer was in an if A-or-B type logical statement
\if@pubversion
\lfoot{\ifthenelse{\value{page}=1}
{\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted}
{~\\~}
}%
\rfoot{\small\color{LiveCoMSMediumGrey}\href{https://doi.org/\@publishedDOI}{https://doi.org/\@publishedDOI}\\
{\it Living J. Comp. Mol. Sci.} \@publishedyear, \@publishedvolume\nobreak\hspace{.05em}(\@publishedissue), \@publishedarticlenum
}%
\fi
% 3. ASAP Version: put submission/acceptance dates in left footer and "ASAP Version" in right footer
\if@ASAPversion
\lfoot{\ifthenelse{\value{page}=1}
{\small\color{LiveCoMSMediumGrey}Received: \@publisheddatereceived \\ Accepted: \@publisheddateaccepted}
{~\\~}
}%
\rfoot{\small\color{LiveCoMSMediumGrey}\href{https://doi.org/\@publishedDOI}{https://doi.org/\@publishedDOI}\\
{\it Living J. Comp. Mol. Sci.} ASAP Version
}%
\fi
% 4. Page Number in center of footer
\cfoot{\small\color{white} \vspace{\baselineskip} \small\color{LiveCoMSMediumGrey} \thepage\space of\space\pageref{LastPage}}%
\preto{\footrule}{\color{LiveCoMSMediumGrey}}
\renewcommand{\headrulewidth}{0pt}% % No header rule
\renewcommand{\footrulewidth}{0.4pt}% % No footer rule
%----------------------------------------------------------

%
% section/subsection/paragraph set-up
Expand Down Expand Up @@ -319,6 +343,7 @@
\def\@deceased{}
% Added blurb for LiveComs
\def\@blurb{}
\def\@orcidblock{}


\newcommand{\corr}[2]{%
Expand Down Expand Up @@ -349,6 +374,16 @@
% Added for LiveComs
\newcommand{\blurb}[1]{\def\@blurb{#1}}

\newcommand{\orcid}[2]{%
\ifx\empty\@orcidblock\else\appto{\@orcidblock}{\\}{}{}\fi
\appto{\@orcidblock}{%
#1:\space%
\ifx\empty#2\else\href{https://orcid.org/#2}{#2} \fi
}{}{}%
}



\reversemarginpar

%
Expand Down Expand Up @@ -380,7 +415,7 @@

%% Abstract outside frontmatter will throw an error!
\RenewEnviron{abstract}{%
\ClassError{livecome}
\ClassError{livecoms}
{Nope nope nope, please put the abstract inside the frontmatter environment.}
{Please put the abstract inside the frontmatter environment.}
}
Expand Down Expand Up @@ -422,6 +457,12 @@
\vskip8pt
}

\newcommand{\makeorcid}{%
% \textbf{*For correspondence:\\} \@correspondence\par
% \textbf{ORCID:\\} \@correspondence\par
\textbf{ORCID:\\} \@orcidblock\par
}

%% Insert a grey line to separate floats from main text
\newcommand{\topfigrule}{\vskip8pt\noindent{\rule{\linewidth}{1pt}}}
\newcommand{\botfigrule}{\noindent{\rule{\linewidth}{1pt}}\vskip8pt}
Expand Down
15 changes: 13 additions & 2 deletions manuscript/manuscript.tex
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@
\corr{[email protected]}{CW}
\corr{[email protected]}{FN}

\orcid{Christoph Wehmeyer}{0000-0002-9526-0328}
\orcid{Martin K. Scherer}{0000-0002-7983-4387}
\orcid{Tim Hempel}{0000-0002-0073-9353}
\orcid{Brooke E. Husic}{0000-0002-8020-3750}
\orcid{Simon Olsson}{0000-0002-3927-7897}
\orcid{Frank Noé}{0000-0003-4169-9324}

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

\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.}
Expand All @@ -57,8 +64,9 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pubDOI{10.33011/livecoms.1.1.5965}
\pubvolume{1}
\pubyear{2018}
\articlenum{1}
\pubissue{1}
\pubyear{2019}
\articlenum{5965}
\datereceived{27 July 2018}
\dateaccepted{27 November 2018}

Expand Down Expand Up @@ -686,6 +694,9 @@ \section{Funding Information}
FN and MKS acknowledge funding from Deutsche Forschungsgemeinschaft (SFB 1114, Projects A04 and C03, NO 825/2-2).
FN and BEH acknowledge funding from European Commission (ERC CoG 772230 "ScaleCell").

\section*{Author Information}
\makeorcid

\bibliography{literature}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
Binary file added releases/LiveCoMS_Article_V1.pdf
Binary file not shown.