-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.tex
105 lines (88 loc) · 2.61 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
\documentclass{article}
\usepackage{arxiv}
\usepackage[utf8]{inputenc} % allow utf-8 input
\usepackage[T1]{fontenc} % use 8-bit T1 fonts
\usepackage{hyperref} % hyperlinks
\usepackage{url} % simple URL typesetting
\usepackage{datetime} % show dates in the title block
\usepackage{booktabs} % professional-quality tables
\usepackage{amsfonts} % blackboard math symbols
\usepackage{nicefrac} % compact symbols for 1/2, etc.
\usepackage{microtype} % microtypography
\usepackage{graphicx}
\usepackage{natbib}
\usepackage{doi}
\usepackage{xcolor}
[- IMPORTS -]
\hypersetup{colorlinks = true,
linkcolor = purple,
urlcolor = blue,
citecolor = cyan,
anchorcolor = black}
\title{[-doc.title-]}
[# if options.show_date #]
\newdate{articleDate}{[-doc.date.day-]}{[-doc.date.month-]}{[-doc.date.year-]}
\date{\displaydate{articleDate}}
[# else #]
\date{}
[# endif #]
\makeatletter
\let\@fnsymbol\@arabic
\makeatother
\author{[# for author in doc.authors #]
[# if author.orcid #]\href{https://orcid.org/[-author.orcid-]}{\includegraphics[scale=0.06]{orcid.pdf}}\hspace{1mm}[# endif #]
[--author.name--]
[# if author.corresponding #]
\footnotemark[[-author.corresponding.index-]]
[#- endif #]\\
[# for affiliation in author.affiliations #][-affiliation.value.name-]\\[# endfor #]
[# if not loop.last #]
\AND
[# endif #]
[# endfor #]
}
% Uncomment to override the `A preprint' in the header
\renewcommand{\headeright}{[-doc.subject-]}
\renewcommand{\undertitle}{[-doc.subtitle-]}
\renewcommand{\shorttitle}{[-doc.short_title-]}
%% Add PDF metadata to help others organize their library
%% Once the PDF is generated, you can check the metadata with
%% $ pdfinfo template.pdf
\hypersetup{
pdftitle={\@title},
pdfsubject={[-doc.description-]},
pdfauthor={\@author},
pdfkeywords={[-doc.keywords-]},
addtopdfcreator={Written in Curvenote}
}
\begin{document}
\maketitle
[# for author in doc.authors #]
[# if author.corresponding #]
\footnotetext[[-author.corresponding.index-]]{Correspondence to: [-author.email-]}
[# endif #]
[# endfor #]
[# if parts.abstract #]
\begin{abstract}
[-parts.abstract-]
\end{abstract}
[# endif #]
[# if doc.keywords #]
\keywords{[-doc.keywords|join(", ")-]}
[# endif #]
[-CONTENT-]
[# if parts.acknowledgments #]
\section*{Acknowledgments}
[-parts.acknowledgments-]
[# endif #]
[# if options.link #]
\section*{Original article}
\footnotesize
This article is available online at the following URL: \href{[-options.link-]}{[-options.link-]}
\normalsize
[# endif #]
[# if doc.bibliography #]
\bibliographystyle{unsrtnat}
\bibliography{[- doc.bibliography | join(", ") -]}
[# endif #]
\end{document}