-
Notifications
You must be signed in to change notification settings - Fork 0
/
credit.latex
146 lines (125 loc) · 3.44 KB
/
credit.latex
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
$if(stand-alone)$
\documentclass[a4paper,10pt]{article}
% Required packages
\usepackage[fixed]{fontawesome5}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{xcolor}
\usepackage{hyperref}
\usepackage[skip=12pt plus 2pt]{parskip}
\usepackage{lmodern}
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(lang)$
pdflang={$lang$},
$endif$
$if(subject)$
pdfsubject={$subject$},
$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$endif$
$if(colorlinks)$
colorlinks=true,
linkcolor={$if(linkcolor)$$linkcolor$$else$Maroon$endif$},
filecolor={$if(filecolor)$$filecolor$$else$Maroon$endif$},
citecolor={$if(citecolor)$$citecolor$$else$Blue$endif$},
urlcolor={$if(urlcolor)$$urlcolor$$else$Blue$endif$},
$else$
$if(boxlinks)$
$else$
hidelinks,
$endif$
$endif$
pdfcreator={LaTeX via pandoc}}
$endif$
\definecolor{green-orcid}{HTML}{A5CC39}
\definecolor{grey-roles}{gray}{0.3}
\definecolor{grey-lead}{gray}{0.3}
\definecolor{grey-equal}{gray}{0.4}
\definecolor{grey-support}{gray}{0.75}
\newcommand{\IconORCID}{{\color{green-orcid}{\faIcon{orcid}}}}
\newcommand{\IconLead}{{\color{grey-lead}{\faIcon{rocket}}}}
\newcommand{\IconEqual}{{\color{grey-equal}{\faIcon{equals}}}}
\newcommand{\IconSupporting}{{\color{grey-support}{\faIcon{hands-helping}}}}
$if(stand-alone)$
\date{$date$}
\title{$title$}
$if(subtitle)$
\usepackage{etoolbox}
\makeatletter
\providecommand{\subtitle}[1]{% add subtitle to \maketitle
\apptocmd{\@title}{\par {\large #1 \par}}{}{}
}
\makeatother
\subtitle{$subtitle$}
$endif$
\author{}
%-------------------------------------------------------------------------------
\begin{document}
%-------------------------------------------------------------------------------
\maketitle
$else$
% ========================
\section{$subtitle$}
\label{app:credit}
% ========================
$endif$
$if(stand-alone)$
This document lists the author's contributions to the following work.
$else$
This section lists the author's contributions to this work.
$endif$
The contributions are described using \href{https://credit.niso.org/}{CRediT}, the Contributor Roles Taxonomy, an \href{https://niso.org/}{ANSI/NISO} standard.
All authors agree with this declaration of contributions.
$if(stand-alone)$
\begin{tabular}{@{}>{\bf}ll}
Title & {$title$} \\[0.5ex]
DOI & \href{https://doi.org/{$doi$}}{$doi$} \\
\end{tabular}
$endif$
{\centering
$if(contributors)$%
$for(contributors)$%
\vspace{1ex plus 1em}
\noindent
$if(stand-alone)$
\begin{tabularx}{.7\linewidth}{@{}Xr@{}}
$else$
\begin{tabularx}{\linewidth}{@{}Xr@{}}
$endif$
\toprule
$contributors.name$ &%
$if(contributors.orcid)$\href{https://orcid.org/{$contributors.orcid$}}{{$contributors.orcid$} \IconORCID}$endif$%
\\
\midrule
$if(contributors.roles)$%
$for(contributors.roles)$%
{$contributors.roles.label$} &%
$if(contributors.roles.Lead)$%
Lead \IconLead%
$endif$%
$if(contributors.roles.Equal)$%
Equal \IconEqual%
$endif$%
$if(contributors.roles.Supporting)$%
Supporting \IconSupporting%
$endif$%
\\
$endfor$%
$endif$
\bottomrule
\end{tabularx}
$endfor$%
$endif$
}
$if(stand-alone)$
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
$endif$