-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
137 lines (110 loc) · 3.36 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[# if options.two_column #]
\documentclass[twocolumn]{article}
[# else #]
\documentclass{article}
[# endif #]
\usepackage{eartharxiv}
%% Math packages
\usepackage[numbers,square]{natbib}
\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc}
\usepackage{fontenc}
\usepackage{xcolor}
\usepackage{lineno} % Line numbers
\usepackage{tikz} % ORCiD insertion
[-IMPORTS-]
% Link colors
\hypersetup{colorlinks=true, linkcolor=purple, urlcolor=blue, citecolor=cyan, anchorcolor=black}
%% Bibliography options
\bibliographystyle{agu}
%% 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}
[# if options.two_column #]
\twocolumn[\begin{@twocolumnfalse}
[# endif #]
\maketitle
[# if parts.abstract #]
\begin{abstract}
[-parts.abstract-]\\
\end{abstract}
[# endif #]
[# if doc.keywords #]
\keywords{[-doc.keywords|join(", ")-]}
[# endif #]
[# if options.two_column #]
\vspace{0.5cm}
\end{@twocolumnfalse}]
[# else #]
\vspace{0.35cm}
[# endif #]
%%%%%%%%%%%%%%% Main text %%%%%%%%%%%%%%%
[# if options.line_numbers #]\linenumbers[# endif #]
[# if options.link #]
\footnotesize
\documentnote{Available online at:\\ \href{[-options.link-]}{[-options.link-]}}
\normalsize
[# endif #]
[-CONTENT-]
[# if parts.acknowledgments #]
%%%%%%%%%%%%% Acknowledgements %%%%%%%%%%%%%
\footnotesize
\section*{Acknowledgements}
[- parts.acknowledgments -]
\normalsize
[# endif #]
[# if doc.bibliography #]
%%%%%%%%%%%%%% Bibliography %%%%%%%%%%%%%%
\bibliography{[- doc.bibliography | join(", ") -]}
[# endif #]
\end{document}