-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tex
73 lines (57 loc) · 1.55 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
\documentclass{article}
\PassOptionsToPackage{short, nodayofweek}{datetime}
\input{curvenote.def}
[-IMPORTS-]
% colors for hyperlinks
\hypersetup{colorlinks=true, allcolors=blue}
\hypersetup{
pdftitle={\@title},
pdfsubject={[-doc.description-]},
pdfauthor={\@author},
pdfkeywords={[-doc.tags-]},
addtopdfcreator={Written in Curvenote}
}
\usepackage{curvenote}
\title{[-doc.title-]}
\newdate{articleDate}{[-doc.date.day-]}{[-doc.date.month-]}{[-doc.date.year-]}
\date{\displaydate{articleDate}}
\author{[# for author in doc.authors -#]
\bfseries [-author.name-]\mdseries\\
[#- if author.affiliations #]
[# for affiliation in author.affiliations #]
[-affiliation.value.name-][# if not loop.last #], [# endif #]
[# endfor #]\\
[#- endif -#]
[#- if not loop.last -#]
\AND
[#- endif -#]
[#- endfor -#]
}
\begin{document}
\maketitle
[# if parts.abstract -#]
\begin{abstract}
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 -#]
% 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 -#]
[# if doc.bibliography #]
\clearpage
\bibliography{[- doc.bibliography | join(", ") -]}
[# endif #]
\end{document}