-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.tex
48 lines (37 loc) · 1.15 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
\documentclass{article}
\usepackage{hyperref}
\usepackage{datetime}
\usepackage{graphicx}
\usepackage{natbib}
\bibliographystyle{abbrvnat}
[-IMPORTS-]
% colors for hyperlinks
\hypersetup{colorlinks=true, allcolors=blue}
[# if options.logo #]
\newcommand{\logo}{
\href{https://curvenote.com}{\includegraphics[width=2cm]{curvenote.png}}
}
[# endif #]
\title{[-doc.title-]}
\author{[-doc.authors|join(" \\and ", "name")-]}
\newdate{articleDate}{[-doc.date.day-]}{[-doc.date.month-]}{[-doc.date.year-]}
\date{\displaydate{articleDate}}
\begin{document}
\maketitle
[# if parts.abstract #]\begin{abstract}[-parts.abstract-]\end{abstract}[# endif #]
[# if options.logo #]
\begin{center}\logo\end{center}
[# endif #]
[# if options.link #]
% Optional footnote with a link back to the online version of your article
\newcommand{\documentnote}[1]{{%
\let\thempfn\relax% Remove footnote number printing mechanism
\footnotetext[0]{\emph{#1}}% Print footnote text
}}
\documentnote{Available online at:\\ \href{[-options.link-]}{[-options.link-]}}
[# endif #]
[-CONTENT-]
[# if doc.bibliography #]
\bibliography{[- doc.bibliography | join(", ") -]}
[# endif #]
\end{document}