forked from LaPreprint/LaPreprint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tex
138 lines (111 loc) Β· 5.42 KB
/
main.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
138
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% LaPreprint: PREPRINT TEMPLATE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Here I could talk about what one should do in this document.
% Instead I'll refer you to the explore on your own and check the Github Repo. :-)
% Line spacing is 1.2 by default (can't be smaller).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% PREAMBLE
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Declare document class
\documentclass[9pt,biorxiv,lineno]{lapreprint}
% Choose between "biorxiv", "medrxiv", "arxiv" and "chemrxiv". Otherwise defaults "Preprint".
% Choose between "blue" and "red" colour scheme. Defaults to "blue".
% Use the "onehalfspacing" option for 1.5 line spacing.
% Use the "doublespacing" option for 2.0 line spacing.
% Use the "lineno" option for line numbers.
% Use the "endfloat" option to place floats after the bibliography.
% Use the "secnum" option to have include numbers.
% Import packages
% \usepackage{lipsum} % Required to insert dummy text
\usepackage[version=4]{mhchem} % For chemical notation
\usepackage{siunitx} % For SI units
\usepackage{pdflscape} % For putting pages in landscape mode
\usepackage{rotating} % For rotating specific elements
\usepackage{textgreek} % Greek symbols
\usepackage{gensymb} % Symbols
\usepackage[misc]{ifsym} % For the \Letter symbol
\usepackage{orcidlink} % For the \orcidlink
\usepackage{listings} % For inserting code chunks
\usepackage{colortbl} % For Knitr table colouring
\usepackage{tabularx} % For making Knitr tables compatible
\usepackage{longtable} % For multi-page tables
\usepackage{subcaption}
\usepackage{multirow}
\usepackage{snotez} % For sidenote environments. enotez for endnotes
\usepackage{csquotes} % For language-based quote rules (helps BiBLaTeX)
\usepackage{annotate-equations}
% Make declarations
\DeclareSIUnit\Molar{M}
% Please note that these options may affect formatting.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% BIBLIOGRAPHY
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[ % use biblatex for bibliography
backend=biber, % use biber or bibtex backend
style=authoryear, % choose style
natbib=true, % allow natbib commands
hyperref=true, % activate hyperref support
alldates=year, % only show year (not month)
uniquename=false, % don't add firstnames when citing multiple sources by the same author
maxbibnames=99, % maximum number of author names to list in bibliography before 'et al' is used instead
]{biblatex}
% Just avoiding some rogue fields that cause issues with certain styles
\AtEveryBibitem{
\clearfield{urlyear}
\clearfield{urlmonth}
\clearlist{language}
}
% Update to your bibliography file
\addbibresource{src/bibliography.bib}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% ARTICLE SETUP
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Paper title
\title{LaPreprint: \\ A Preprint Template for \LaTeX}
% Authors - you can use \orcidlink{} and \authfn{} - see contribution note
\author[ \orcidlink{0000-0002-9998-0058} 1 \Letter]{Mikkel Roald-Arb\o l}
\author[2]{Co-author}
% Affiliations
\affil[1]{School of Life Sciences, University of Sussex}
\affil[2]{University of Somewhere}
% Other metadata. Feel free to add your own
\metadata[]{\Letter\hspace{.5ex} For correspondence}{\url{https://github.com/roaldarbol/LaPreprint/issues} (MRA)}
\metadata[\authfn{1}\authfn{2}\authfn{3}]{}{Here's a few symbols to denote contribution specifics, e.g. authors who contributed equally to the work.}
\metadata[]{Present address}{Evolution, Behaviour and Environment, School of Life Sciences, University of Sussex, Biology Road, Brighton, BN1 9RH, United Kingdom}
\metadata[]{Data availability}{Data availability statement. Preprocessed data could be available e.g. on \href{https://zenodo.org/}{Zenodo}.}
\metadata[]{Funding}{MRA was supported by funding from the Leverhulme Foundation. The funders had no role in the template design or decision to publish.}
\metadata[]{Competing interests}{The author declare no competing interests.}
% Surname of the lead author(s) for the running footer
\leadauthor{Roald-Arb\o l}
\shorttitle{A Preprint Template for \LaTeX}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% ARTICLE START
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\maketitle
\input{src/chapters/abstract}
\input{src/chapters/introduction}
\input{src/chapters/methods}
\input{src/chapters/results}
\input{src/chapters/discussion}
\input{src/chapters/formal}
\printbibliography
% DON'T EDIT. If "endfloat" option is enabled all floats appear before appendices
\if@endfloat\clearpage\processdelayedfloats\clearpage\fi
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% SUPPLEMENTARY MATERIAL / APPENDICES
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Sadly, we can't use floats in the appendix boxes. So they don't "float", but use \captionof{figure}{...} and \captionof{table}{...} to get them properly caption.
\begin{appendix}
\begin{appendixbox}\label{app:ttt}
\input{src/supplementary/appendices.tex}
\end{appendixbox}
\begin{appendixbox}
\input{src/supplementary/resources.tex}
\end{appendixbox}
\end{appendix}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% ARTICLE END
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}