This repository has been archived by the owner on Feb 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
header.tex
91 lines (75 loc) · 3.22 KB
/
header.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
%% ----------------------------------------------------------------------------
%% ReScience article template
%% Copyright (c) 2018 N.P. Rougier,
%% Released under a Creative Commons Attribution 4.0 International license.
%% ----------------------------------------------------------------------------
%% --- Top left header --------------------------------------------------------
\begin{tikzpicture}[remember picture, overlay]
\node [shape=rectangle, draw=darkred, fill=darkred, yshift=-34mm,
anchor=north west, minimum width=3.75cm, minimum height=10mm]
at (current page.north west) {};
\node [text=white, anchor=center, yshift=-39mm, xshift=1.875cm]
at (current page.north west) {\small \SpaceRoboto RESCIENCE C};
\end{tikzpicture}
%% --- Title -------------------------------------------------------------------
{\let\newpage\relax\maketitle} \maketitle
%% --- Margin information -----------------------------------------------------
\marginnote{
\footnotesize \sffamily
\textbf{Edited by}\\
\ifdefempty{\editorNAME}{\textcolor{darkgray}{(Editor)}}
{\editorNAME\ifdefempty{\editorORCID}{}{$^{\orcid{\editorORCID}}$}}\\
~\\
%%
\textbf{Reviewed by}\\
\ifdefempty{\reviewerINAME}{\textcolor{darkgray}{(Reviewer 1)}}
{\reviewerINAME\ifdefempty{\reviewerIORCID}{}{$^{\orcid{\editorORCID}}$}}\\
\ifdefempty{\reviewerIINAME}{\textcolor{darkgray}{(Reviewer 2)}}
{\reviewerIINAME\ifdefempty{\reviewerIIORCID}{}{$^{\orcid{\editorORCID}}$}}\\
~\\
%%
\textbf{Received}\\
\ifdefempty{\dateRECEIVED}{---}{\dateRECEIVED}\\
~\\
%%
\textbf{Published}\\
\ifdefempty{\datePUBLISHED}{---}{\datePUBLISHED}\\
~\\
%%
\textbf{DOI}\\
\ifdefempty{\articleDOI}{---}{\articleDOI}
}
%% --- Bottom statement -------------------------------------------------------
\newcommand{\container}[1]{\def\@container{#1}}
\begin{container}
\afterpage {
\begin{statement}
\scriptsize \sffamily
\hrule \vskip .5em
Copyright © \articleYEAR~\authorsABBRV,
released under a Creative Commons Attribution 4.0 International license.
Correspondence should be addressed to
\contactNAME~(\href{mailto:\contactEMAIL}{\contactEMAIL})
The authors have declared that no competing interests exists.
\ifdefempty{\codeURL}{}
{Code is available at
\href{\codeURL}{\codeURL}\ifdefempty{\codeDOI}{.}{ -- DOI \doi{\codeDOI}.}}
\ifdefempty{\dataURL}{}
{Data is available at
\href{\dataURL}{\dataURL}\ifdefempty{\dataDOI}{.}{ -- DOI \doi{\dataDOI}.}}
\ifdefempty{\reviewURL}{}
{Open peer review is available at \href{\reviewURL}{\reviewURL}.}
\end{statement}
}
\end{container}
%% --- Abstract ---------------------------------------------------------------
%% \ifdefempty{\articleABSTRACT}{}{
%% {\small \sffamily \textbf{Abstract} \articleABSTRACT \par}
%% }
%% --- Replication ------------------------------------------------------------
\ifdefempty{\replicationBIB}{}{
{\small \sffamily \bfseries A replication of}
\ifdefempty{\replicationURL}
{\href{http://doi.org/\replicationDOI}{\small \sffamily \replicationBIB}}
{\href{\replicationURL}{\small \sffamily \replicationBIB}}.
\par }