-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.tex
99 lines (89 loc) · 3.23 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
% \newcommand{\secondLanguage}{icelandic} % if a second language is used, add it here
% \documentclass[draft, {\secondLanguage}, english]{volcanica-template}
\documentclass[draft, english]{volcanica-template}
\nonstopmode % can toggle to see compilation warnings
% Please choose between Research article, Report, Review, or Methods.
% Details about different article types are available at:
% https://www.jvolcanica.org/ojs/index.php/volcanica/about/submissions
\newcommand{\ArticleType}{[-options.article_type-]}
[-IMPORTS-]
%------------------------------------------------------------
% Article details go here
%------------------------------------------------------------
\newcommand{\Title}{[-doc.title-]} % Manuscript title goes here.
\newcommand{\shortTitle}{[-doc.short_title-]} % Short title for header goes here, less than 60 characters.
\newcommand{\Author}{
[#- set etal=" et al." #]
[#- for author in doc.authors #]
[#- if loop.first #]
[-- author.name-]
[#- else #]
[- etal-]
[#- set etal="" #]
[#- endif #]
[#- endfor -#]
\xspace} % First author goes here.
%------------------------------------------------------------
% Author details go here
%------------------------------------------------------------
[# for author in doc.authors #]
\author[{{\affiliation{[-author.affiliations|join("}\\affiliation{", "index")-]}}}]
{[# if author.orcid #]\orcidaffil{[-author.orcid-]}~[# endif #]
[-author.name-]
[#- if author.corresponding #] \Email{[-author.email-]}[# endif #]}
[# endfor #]
%------------------------------------------------------------
% Affiliations
%------------------------------------------------------------
[# for affiliation in doc.affiliations #]
\affil[{{\affiliation{[-affiliation.index-]}}}]{[-affiliation.value.name-]}
[# endfor #]
%------------------------------------------------------------
% BIBLIOGRAPHY FILE
%------------------------------------------------------------
[# if doc.bibliography #]
\addbibresource{[- doc.bibliography | join(", ") -]}
[# else #]
% \addbibresource{bib-file.bib} % add the name of the bibliography file here
[# endif #]
%------------------------------------------------------------
% Start of Document
%------------------------------------------------------------
\begin{document}
%------------------------------------------------------------
% Abstract(s) and Keywords
%------------------------------------------------------------
% If there is a second-language abstract, it goes between the square brackets [].
% Make sure you have included the correct language in line 1, above.
% If no second abstract, ensure there is no space between the square brackets [].
\FrontMatter{[-parts.abstract-]}
[]%
{
[# if doc.keywords #]
\keywords{[-doc.keywords|join("}{")-]} % add up to six keywords in curly braces {}
[# else #]
\keywords{}
[# endif #]
}
%------------------------------------------------------------
% Maintext
%------------------------------------------------------------
[-CONTENT-]
[# if parts.author_contributions #]
\Contributions{
[-parts.author_contributions-]
}
[# endif #]
%
[# if parts.acknowledgments #]
\Acknowledgments{
[-parts.acknowledgments-]
}
[# endif #]
[# if parts.data_availability #]
\DataAvailability{
[-parts.data_availability-]
}
[# endif #]
\EndMatter
\end{document}