-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtemplate.tex
123 lines (99 loc) · 3.18 KB
/
template.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
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
\documentclass[twocolumn, switch]{article}
\usepackage{preprint}
\usepackage{hyperref}
\usepackage[numbers,square]{natbib}
[-IMPORTS-]
% colors for hyperlinks
\hypersetup{colorlinks=true, linkcolor=purple, urlcolor=blue, citecolor=cyan, anchorcolor=black}
\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{lineno} % Line numbers
\usepackage{tikz} % ORCiD insertion
%% Bibliography options
\bibliographystyle{unsrtnat}
%% Special figure caption options
\usepackage{newfloat}
\DeclareFloatingEnvironment[name={Supplementary Figure}]{suppfigure}
\usepackage{sidecap}
\sidecaptionvpos{figure}{c}
% Section title spacing options
\usepackage{titlesec}
\titlespacing\section{0pt}{12pt plus 3pt minus 3pt}{1pt plus 1pt minus 1pt}
\titlespacing\subsection{0pt}{10pt plus 3pt minus 3pt}{1pt plus 1pt minus 1pt}
\titlespacing\subsubsection{0pt}{8pt plus 3pt minus 3pt}{1pt plus 1pt minus 1pt}
\definecolor{lime}{HTML}{A6CE39}
\DeclareRobustCommand{\orcidicon}{
\begin{tikzpicture}
\draw[lime, fill=lime] (0,0)
circle [radius=0.16]
node[white] {{\fontfamily{qag}\selectfont \tiny ID}};
\draw[white, fill=white] (-0.0625,0.095)
circle [radius=0.007];
\end{tikzpicture}
\hspace{-2mm}
}
%%%%%%%%%%%%%%%% Title %%%%%%%%%%%%%%%%
\title{[-doc.title-]}
% Add watermark with submission status
% Awaiting watermark support
% \usepackage{xwatermark}
% % Left watermark
% \newwatermark[firstpage,color=gray!60,angle=90,scale=0.32, xpos=-4.05in,ypos=0]{\href{https://doi.org/}{\color{gray}{Publication doi}}}
% % Right watermark
% \newwatermark[firstpage,color=gray!60,angle=90,scale=0.32, xpos=3.9in,ypos=0]{\href{https://doi.org/}{\color{gray}{Preprint doi}}}
% % Bottom watermark
% \newwatermark[firstpage,color=gray!90,angle=0,scale=0.28, xpos=0in,ypos=-5in]{*correspondence: \texttt{}}
%%%%%%%%%%%%%%% Author list %%%%%%%%%%%%%%%
\usepackage{authblk}
\renewcommand*{\Authfont}{\bfseries}
[# for author in doc.authors #]
\author[
[--author.affiliations|join(', ', 'index')--]
[#-if author.email-#]
\thanks{\texttt{[-author.email-]}}
[#-endif-#]
]{
[--author.name-]
[#- if author.orcid -#]
\href{https://orcid.org/[-author.orcid-]}{\orcidicon}
[#- endif -#]
}
[# endfor #]
[# for affiliation in doc.affiliations #]
\affil[[-affiliation.index-]]{[-affiliation.value.name-]}
[# endfor #]
%%%%%%%%%%%%%% Front matter %%%%%%%%%%%%%%
\begin{document}
\twocolumn[\begin{@twocolumnfalse}
\maketitle
[# if parts.abstract #]
\begin{abstract}
[-parts.abstract-]\\
\end{abstract}
[# endif #]
[# if doc.keywords #]
\keywords{[-doc.keywords|join(", ")-]}
[# endif #]
\vspace{0.5cm}
\end{@twocolumnfalse}]
%%%%%%%%%%%%%%% Main text %%%%%%%%%%%%%%%
[-CONTENT-]
[# if parts.acknowledgments #]
%%%%%%%%%%%%% Acknowledgements %%%%%%%%%%%%%
\section*{Acknowledgements}
\footnotesize
[- parts.acknowledgments -]
\normalsize
[# endif #]
[# if options.link #]
\section*{Original article}
\footnotesize
This article is available online at the following URL: \href{[-options.link-]}{[-options.link-]}
\normalsize
[# endif #]
%%%%%%%%%%%%%% Bibliography %%%%%%%%%%%%%%
[# if doc.bibliography #]
\bibliography{[- doc.bibliography | join(", ") -]}
[# endif #]
\end{document}